Bug 2016692 (CVE-2021-42327) - CVE-2021-42327 kernel: heap-based buffer overflow in dp_link_settings_write() in drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
Summary: CVE-2021-42327 kernel: heap-based buffer overflow in dp_link_settings_write()...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2021-42327
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2016695
Blocks: 2016694
TreeView+ depends on / blocked
 
Reported: 2021-10-22 17:30 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-11-14 18:13 UTC (History)
45 users (show)

Fixed In Version: kernel 5.10 rc1
Doc Type: If docs needed, set a value
Doc Text:
A flaw heap buffer overflow in the Linux kernel's AMD Radeon graphics card driver was found in the way user writes some malicious data to the AMD GPU Display Driver Debug Filesystem (to the VGA sub-directory of the /sys/kernel/debug/ directory). A local user could use this flaw to crash the system or escalate their privileges on the system.
Clone Of:
Environment:
Last Closed: 2021-10-28 14:07:51 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-10-22 17:30:18 UTC
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.

Reference:
https://www.mail-archive.com/amd-gfx@lists.freedesktop.org/msg69080.html

Comment 1 Guilherme de Almeida Suckevicz 2021-10-22 17:33:03 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2016695]

Comment 4 Product Security DevOps Team 2021-10-28 14:07:51 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-42327


Note You need to log in before you can comment on or make changes to this bug.