Medium severity · published Mar 3, 2022
CVE-2021-4002
A memory leak flaw in the Linux kernel's hugetlbfs memory usage was found in the way the user maps some regions of memory twice using shmget() which are aligned to PUD alignment…
4.4
CVSS
0.5%
EPSS
No
On KEV
Description
A memory leak flaw in the Linux kernel's hugetlbfs memory usage was found in the way the user maps some regions of memory twice using shmget() which are aligned to PUD alignment with the fault of some of the memory pages. A local user could use this flaw to get unauthorized access to some data.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 44% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
before 5.16; 5.16; 5.16; 5.16 · source: NVD
CC
Communications Cloud Native Core Binding Support Function · Oracle
22.1.3 · source: NVD
CC
Communications Cloud Native Core Network Exposure Function · Oracle
22.1.1 · source: NVD
CC
Communications Cloud Native Core Policy · Oracle
22.2.0 · source: NVD
DL
Debian Linux · Debian
9.0; 10.0 · source: NVD
FE
Fedora · Fedoraproject
35 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-4002
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-4002
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2025726
Patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=13e4ad2ce8df6e058ef482a31fdd81c725b0f7ea
Patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4a118f2eead1d6c49e00765de89878288d4b890
Mailing List
https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html
Mailing List
https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html
Third Party Advisory
https://www.debian.org/security/2022/dsa-5096
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
