# 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 shmge…

- Severity: Medium 4.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-03T21:42:47.000Z
- Modified: 2026-06-17T04:18:53.070Z
- Weaknesses: CWE-401, CWE-459
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- kernel: affects kernel v3.6 and later through v5.15.5.
- linux linux_kernel: before 5.16; 5.16
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 35
- oracle communications_cloud_native_core_binding_support_function: 22.1.3
- oracle communications_cloud_native_core_network_exposure_function: 22.1.1
- oracle communications_cloud_native_core_policy: 22.2.0

## Every score

- NVD: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.6 Low `AV:L/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://www.openwall.com/lists/oss-security/2021/11/25/1> (exploit, mailing-list, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2025726> (issue-tracking, third-party-advisory)
- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=13e4ad2ce8df6e058ef482a31fdd81c725b0f7ea> (patch, vendor-advisory)
- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4a118f2eead1d6c49e00765de89878288d4b890> (patch, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5096> (third-party-advisory, vendor-advisory)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-4002](https://www.cve.org/CVERecord?id=CVE-2021-4002), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-4002](https://nvd.nist.gov/vuln/detail/CVE-2021-4002), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4002 · Whole record: https://cve.day/CVE-2021-4002.json · Rebuilt by cve.day 2026-11-25T22:58:07.115Z
