Buffer overflow in Linux Kernel
CVE-2021-42327
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.7 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.009, 59.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- docfate111/CVE-2021-42327 (10 stars, last pushed 2023-01-06): kernel exploit POC for vulnerability i found in amd gpu driver
Also mentioned in 22 other repositories (ARPSyndicate/cvemon, kdn111/linux-kernel-exploitation, khanhdn111/linux-kernel-exploitation, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/gpu/drm/… (Vendor Advisory)
- www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg69080.html
- FEDORA-2021-a093973910 (vendor-advisory)
- security.netapp.com/advisory/ntap-20211118-0005/ (Third Party Advisory)
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/
This CVE has public exploit evidence. See the latest CVEs with public exploits.