Advisory
UBUNTU-CVE-2021-42327
Also known as: CVE-2021-42327
Summary
The record has no summary.
Details
dp_link_settings_write in drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c in the Linux kernel through 5.14.14 allows a heap-based buffer overflow by an attacker who can write a string to the AMD GPU display drivers debug filesystem. There are no checks on size within parse_write_buffer_into_params when it uses the size of copy_from_user to copy a userspace buffer into a 40-byte heap buffer.
Severity
Medium Basis: CVSS v3 score 6.7, vector CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Dates
- Published
- 2021-10-21 17:15 UTC
- Modified
- 2026-02-04 02:17 UTC
Affected packages and fixes
| Package | System | Affected | Fix |
|---|---|---|---|
| linux-hwe-edge | Debian packages (deb) · Ubuntu 16.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.0 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-azure | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-azure-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-azure-edge | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gcp | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-gke-4.15 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-hwe | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-edge | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-oem | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.0 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.3 | Debian packages (deb) · Ubuntu 18.04 | introduced 0 | No fixed version is listed. |
| linux-aws-5.11 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-aws-5.13 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-5.11 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-azure-5.13 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp-5.11 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-gcp-5.13 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-hwe-5.13 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-intel-5.13 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oem-5.13 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oem-5.14 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oracle-5.11 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-oracle-5.13 | Debian packages (deb) · Ubuntu 20.04 | Earlier versions | sudo apt-get update && sudo apt-get upgrade |
| linux-aws-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-azure-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-gcp-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-hwe-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oem-5.10 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oem-5.6 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-oracle-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-raspi2 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-riscv | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-riscv-5.11 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
| linux-riscv-5.8 | Debian packages (deb) · Ubuntu 20.04 | introduced 0 | No fixed version is listed. |
Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Links
- https://ubuntu.com/security/CVE-2021-42327
- https://lists.freedesktop.org/archives/amd-gfx/2021-October/070170.html
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
- https://www.mail-archive.com/[email protected]/msg69080.html
- https://ubuntu.com/security/notices/USN-5165-1
- https://ubuntu.com/security/notices/USN-5265-1
- https://ubuntu.com/security/notices/USN-5362-1
- https://www.cve.org/CVERecord?id=CVE-2021-42327
Source
Source: Ubuntu Security Notices · CC BY-SA 4.0