cve.bz

CVE-2021-42327 Out-of-bounds Write

6.7 mediumEPSS 0.9%

Medium (6.7). EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.1

6.7 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 60th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-42327 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42327?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42327?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-42327 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelthrough 5.14.14
fedoraproject:fedora35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.14.16-1DEBIAN-CVE-2021-42327
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-42327
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2021-42327
Ubuntu20.04:LTSlinux-aws-5.11, linux-oracle-5.115.11.0-1028.31~20.04.1UBUNTU-CVE-2021-42327 USN-5265-1
Ubuntu20.04:LTSlinux-aws-5.135.13.0-1012.13~20.04.1UBUNTU-CVE-2021-42327 USN-5265-1
Ubuntu20.04:LTSlinux-azure-5.115.11.0-1028.31~20.04.2UBUNTU-CVE-2021-42327 USN-5265-1
Ubuntu20.04:LTSlinux-azure-5.135.13.0-1013.15~20.04.1UBUNTU-CVE-2021-42327
Ubuntu20.04:LTSlinux-gcp-5.115.11.0-1029.33~20.04.3UBUNTU-CVE-2021-42327 USN-5265-1
Ubuntu20.04:LTSlinux-gcp-5.135.13.0-1013.16~20.04.1UBUNTU-CVE-2021-42327
Ubuntu20.04:LTSlinux-hwe-5.135.13.0-28.31~20.04.1UBUNTU-CVE-2021-42327 USN-5265-1
Ubuntu20.04:LTSlinux-intel-5.135.13.0-1010.10UBUNTU-CVE-2021-42327 USN-5362-1
Ubuntu20.04:LTSlinux-oem-5.135.13.0-1029.36UBUNTU-CVE-2021-42327 USN-5265-1
Ubuntu20.04:LTSlinux-oem-5.145.14.0-1008.8UBUNTU-CVE-2021-42327 USN-5165-1
2 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_161-150500.11.3.1SUSE-SU-2024:2008-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4kernel-rt, kernel-source-rt5.14.21-150400.15.106.1SUSE-SU-2025:0231-1
SUSELinux Enterprise Micro 5.5kernel-rt, kernel-source-rt5.14.21-150500.13.58.1SUSE-SU-2024:2008-1
SUSEReal Time Module 15 SP5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.58.1SUSE-SU-2024:2008-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.58.1SUSE-SU-2024:2008-1
Azure Linux2kernel5.10.78.1-1AZL-6600

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is rated as having Moderate impact because only local users with privileges to write access the DebugFS can trigger it.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-42327.

References

Check your stackJSON