CVE-2021-4002
Vulnerability Summary
Timeline
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 Metrics
- v3.1•MEDIUM•Score: 4.4CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- v2.0•LOW•Score: 3.6AV:L/AC:L/Au:N/C:P/I:P/A:N
EPSS Trends
Current EPSS score: 0.52%• Percentile: 43%
Techniques & Countermeasures
- CWE-459•Incomplete Cleanup
The product does not properly "clean up" and remove temporary or supporting resources after they have been used.
- CWE-401•Missing Release of Memory after Effective Lifetime
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.
Affected Systems
- debian•linux
< 5.10.84-1 | < 5.15.5-1 | < 5.15.5-1 | < 5.15.5-1
- ubuntu•linux
< 3.13.0-189.240 | < 4.4.0-218.251 | < 4.15.0-166.174 | < 5.4.0-92.103
- ubuntu•linux-aws
< 4.4.0-1098.103 | < 4.4.0-1134.148 | < 4.15.0-1118.125 | < 5.4.0-1061.64
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
< 5.11.0-1023.24~20.04.1
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1061.64~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-fips
< 4.15.0-2059.61 | all | < 5.4.0-1069.73+fips2
- ubuntu•linux-aws-hwe
< 4.15.0-1118.125~16.04.1
- ubuntu•linux-azure
< 4.15.0-1129.142~14.04.1 | < 4.15.0-1129.142~16.04.1 | all | < 5.4.0-1065.68
- ubuntu•linux-azure-4.15
< 4.15.0-1129.142
- ubuntu•linux-azure-5.11
< 5.11.0-1023.24~20.04.1
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1065.68~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fips
< 4.15.0-2041.45 | all | < 5.4.0-1073.76+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1023.26
- ubuntu•linux-dell300x
< 4.15.0-1033.38
- ubuntu•linux-fips
< 4.4.0-1068.74 | all | < 4.15.0-1075.84 | < 5.4.0-1038.44
- ubuntu•linux-gcp
< 4.15.0-1114.128~16.04.1 | all | < 5.4.0-1059.63
- ubuntu•linux-gcp-4.15
< 4.15.0-1114.128
- ubuntu•linux-gcp-5.11
< 5.11.0-1024.26~20.04.1
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1059.63~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-fips
< 4.15.0-2024.26 | all | < 5.4.0-1067.71~20.04.1
- ubuntu•linux-gke
< 5.4.0-1057.60
- ubuntu•linux-gke-4.15
all
- ubuntu•linux-gke-5.4
< 5.4.0-1057.60~18.04.1
- ubuntu•linux-gkeop
< 5.4.0-1029.30
- ubuntu•linux-gkeop-5.4
< 5.4.0-1029.30~18.04.2
- ubuntu•linux-hwe
< 4.15.0-166.174~16.04.1 | all
- ubuntu•linux-hwe-5.11
< 5.11.0-44.48~20.04.2
- ubuntu•linux-hwe-5.13
< 5.13.0-23.23~20.04.2
- ubuntu•linux-hwe-5.4
< 5.4.0-92.103~18.04.2
- ubuntu•linux-hwe-5.8
all
- ubuntu•linux-hwe-edge
all | all
- ubuntu•linux-ibm
< 5.4.0-1010.11
- ubuntu•linux-intel-5.13
all
- ubuntu•linux-intel-iot-realtime
all
- ubuntu•linux-kvm
< 4.4.0-1099.108 | < 4.15.0-1105.107 | < 5.4.0-1051.53
- ubuntu•linux-lts-xenial
< 4.4.0-218.251~14.04.1
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.10
< 5.10.0-1053.55
- ubuntu•linux-oem-5.13
< 5.13.0-1026.32
- ubuntu•linux-oem-5.14
< 5.14.0-1013.13
- ubuntu•linux-oem-5.6
all
- ubuntu•linux-oracle
< 4.15.0-1085.93~16.04.1 | < 4.15.0-1085.93 | < 5.4.0-1059.63
Showing first 50 affected entries in server-rendered view.
References (19)
- https://bugzilla.redhat.com/show_bug.cgi?id=2025726
- https://www.openwall.com/lists/oss-security/2021/11/25/1
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=13e4ad2ce8df6e058ef482a31fdd81c725b0f7ea
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4a118f2eead1d6c49e00765de89878288d4b890
- https://lists.debian.org/debian-lts-announce/2022/03/msg00011.html
- https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html
- https://www.debian.org/security/2022/dsa-5096
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://ubuntu.com/security/CVE-2021-4002
- https://git.kernel.org/linus/a4a118f2eead1d6c49e00765de89878288d4b890
- https://ubuntu.com/security/notices/USN-5206-1
- https://ubuntu.com/security/notices/USN-5207-1
- https://ubuntu.com/security/notices/USN-5208-1
- https://ubuntu.com/security/notices/USN-5209-1
- https://ubuntu.com/security/notices/USN-5210-1
- https://ubuntu.com/security/notices/USN-5211-1
- https://ubuntu.com/security/notices/USN-5218-1
- https://www.cve.org/CVERecord?id=CVE-2021-4002
- https://security-tracker.debian.org/tracker/CVE-2021-4002