Vulnerabilities · 2021 · Linux
CVE-2021-4002
Linux Kernel vulnerability
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.
Affected products
Linux Kernel, Debian Linux, Fedora, Communications Cloud Native Core Binding Support Function, Communications Cloud Native Core Network Exposure Function, Communications Cloud Native Core Policy. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=13e4ad2ce8df6e058ef4 · Patch
- git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4a118f2eead1d6c49e0 · Patch
- www.oracle.com/security-alerts/cpujul2022.html · Patch
- bugzilla.redhat.com/show_bug.cgi?id=2025726 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/03/msg00011.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/03/msg00012.html · Third Party Advisory
- www.debian.org/security/2022/dsa-5096 · Third Party Advisory
- www.openwall.com/lists/oss-security/2021/11/25/1 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2021-4002
- cve.org/CVERecord?id=CVE-2021-4002
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.