CVE-2021-41864
Vulnerability Summary
Timeline
Description
prealloc_elems_and_freelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multiplication integer overflow with a resultant out-of-bounds write.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- v2.0•MEDIUM•Score: 4.6AV:L/AC:L/Au:N/C:P/I:P/A:P
EPSS Trends
Current EPSS score: 0.41%• Percentile: 35%
Techniques & Countermeasures
- CWE-190•Integer Overflow or Wraparound
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Affected Systems
- debian•linux
< 5.10.84-1 | < 5.14.12-1 | < 5.14.12-1 | < 5.14.12-1
- ubuntu•linux
< 4.15.0-166.174 | < 5.4.0-92.103
- ubuntu•linux-aws
< 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.15.0-1075.84 | all | < 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-edge
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.15.0-1105.107 | < 5.4.0-1051.53
- ubuntu•linux-oem
all
- ubuntu•linux-oem-5.10
< 5.10.0-1051.53
- ubuntu•linux-oem-5.13
< 5.13.0-1026.32
- ubuntu•linux-oem-5.14
< 5.14.0-1007.7
- 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://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=30e29a9a2bc6a4888335a6ede968b75cd329657a
- https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SYKURLXBB2555ASWMPDNMBUPD6AG2JKQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7BLLVKYAIETEORUPTFO3TR3C33ZPFXQM/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LAT3RERO6QBKSPJBNNRWY3D4NCGTFOS7/
- https://security.netapp.com/advisory/ntap-20211029-0004/
- https://lists.debian.org/debian-lts-announce/2021/12/msg00012.html
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.14.12
- https://lists.debian.org/debian-lts-announce/2022/03/msg00012.html
- https://www.debian.org/security/2022/dsa-5096
- https://ubuntu.com/security/CVE-2021-41864
- https://ubuntu.com/security/notices/USN-5139-1
- https://ubuntu.com/security/notices/USN-5140-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-5218-1
- https://www.cve.org/CVERecord?id=CVE-2021-41864
- https://security-tracker.debian.org/tracker/CVE-2021-41864