CVE-2021-42327
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-42327 is a heap-based buffer overflow vulnerability discovered in the Linux kernel through version 5.14.14. The vulnerability exists in the dplinksettingswrite function within drivers/gpu/drm/amd/display/amdgpudm/amdgpudmdebugfs.c of the AMD GPU display drivers debug filesystem. The issue was disclosed in October 2021 and affects systems running the Linux kernel with AMD GPU display drivers (NVD, Ubuntu).

Technical details

The vulnerability occurs due to insufficient size validation in the parsewritebufferintoparams function when copying data from userspace into a 40-byte heap buffer. The function uses the size parameter from copyfromuser without proper bounds checking, allowing an attacker to potentially write beyond the buffer's boundaries. The vulnerability has been assigned a CVSS v3.1 base score of 6.7 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability requires local access and high privileges to exploit, but could potentially allow an attacker to execute arbitrary code or cause system crashes (NetApp Advisory).

Mitigation and workarounds

The vulnerability was fixed in the Linux kernel with commit f23750b5b3d98653b31d4469592935ef6364ad67, which corrects the buffer size validation in the affected code. Various Linux distributions have released patches to address this vulnerability, including Fedora 35 with kernel version 5.14.16-301.fc35 (Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management