CVE-2022-50167
published high CVSS 3.1 · 7.8bpf: fix potential 32-bit overflow when accessing ARRAY map element
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxc85d69135a9175c50a823d04d62d932312d037b3 to < 2157ac13db8d5763835f1663bdabda6de744cba8 · c85d69135a9175c50a823d04d62d932312d037b3 to < f665c56e6836933335e5a4513fc9b0bf47cdf81f · c85d69135a9175c50a823d04d62d932312d037b3 to < 063e092534d4c6785228e5b1eb6e9329f66ccbe4 · c85d69135a9175c50a823d04d62d932312d037b3 to < 3c7256b880b3a5aa1895fd169a34aa4224a11862 · c85d69135a9175c50a823d04d62d932312d037b3 to < 87ac0d600943994444e24382a87aa19acc4cd3d4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.3 (affected) · 0 to < 5.3 (unaffected · semver) · 5.10.273 through 5.10.* (unaffected · semver) · 5.15.224 through 5.15.* (unaffected · semver) · 5.18.18 through 5.18.* (unaffected · semver) · 5.19.2 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1121 | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1121 | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1121 | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1127 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1127 | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15-cloud-tools-5.15.0-1126 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15-headers-5.15.0-1126 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-azure-fde-5.15-tools-5.15.0-1126 | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1072-nvidia-tegra | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1072-nvidia-tegra-rt | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1121-aws | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-199-lowlatency | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-199-lowlatency-64k | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-204-generic-64k | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-204-generic-lpae | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1121-aws | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-199-lowlatency | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1122 | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1122 | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-headers-5.15.0-1072-nvidia-tegra | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-headers-5.15.0-1072-nvidia-tegra-rt | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-headers-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-headers-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-headers-5.15.0-1121-aws | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-headers-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-headers-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-headers-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-headers-5.15.0-199-lowlatency | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-headers-5.15.0-199-lowlatency-64k | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-headers-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-headers-5.15.0-204-generic-64k | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-headers-5.15.0-204-generic-lpae | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-204 | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-204 | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-204 | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1115 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1115 | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-image-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-image-5.15.0-204-generic-lpae | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1072-nvidia-tegra | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1072-nvidia-tegra-rt | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1121-aws | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-199-lowlatency | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-199-lowlatency-64k | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-204-generic-64k | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-199 | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-199 | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-199 | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-5.15.0-1072-nvidia-tegra | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-5.15.0-1072-nvidia-tegra-rt | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-modules-5.15.0-1121-aws | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-modules-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-5.15.0-199-lowlatency | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-5.15.0-199-lowlatency-64k | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-5.15.0-204-generic-64k | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-5.15.0-204-generic-lpae | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1072-nvidia-tegra | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1115-ibm | Advisory build | 5.15.0-1115.119~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1118-oracle | Advisory build | 5.15.0-1118.124~20.04.1 | USN-9167-2 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1121-aws | Advisory build | 5.15.0-1121.128~20.04.1 | USN-9169-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1122-gcp | Advisory build | 5.15.0-1122.132~20.04.1 | USN-9167-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-extra-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-involflt-5.15.0-1126-azure-fde | Advisory build | 5.15.0-1126.135~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-involflt-5.15.0-1127-azure | Advisory build | 5.15.0-1127.136~20.04.1 | USN-9167-3 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-199-lowlatency | Advisory build | 5.15.0-199.209~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-204-generic | Advisory build | 5.15.0-204.214~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-nvidia-tegra-5.15 | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-nvidia-tegra-5.15-headers-5.15.0-1072 | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
| Ubuntu | focal | linux-nvidia-tegra-5.15-tools-5.15.0-1072 | Advisory build | 5.15.0-1072.74~20.04.1 | USN-9169-2 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: fix potential 32-bit overflow when accessing ARRAY map element If BPF array map is bigger than 4GB, element pointer calculation can overflow because both index and elem_size are u32. Fix this everywhere by forcing 64-bit multiplication. Extract this formula into separate small helper and use it consistently in various places. Speculative-preventing formula utilizing index_mask trick is left as is, but explicit u64 casts are added in both places.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is in BPF ARRAY map element pointer math in kernel/bpf/arraymap.c, reached only via the local bpf(2) syscall (map create/lookup/update and map FD release), not via network packet processing. AC:L - An attacker who can create a >4GB ARRAY map fully controls map size, indices, timer arming, and FD close, so the 32-bit overflow and resulting bad pointer/timer mishandling are reliably triggerable with no conditions outside their control. PR:L - BPF ARRAY map create/use is available to an unprivileged local user when unprivileged BPF is enabled, and the higher-impact timer path needs only CAP_BPF (not full root); when uncertain, the lower privilege requirement is scored. UI:N - Exploitation requires only attacker-controlled bpf(2) operations and closing their own map FD; no victim user action is needed. S:U - Impact stays within the host kernel’s authority (local memory corruption / privilege escalation); there is no VM, IOMMU, or other security-authority boundary crossed. C:H - On map uref drop, array_map_free_timers skips high-index timers due to the overflow, leaving live hrtimers into map memory that is later freed—a use-after-free that can be leveraged for arbitrary kernel read. I:H - The same timer use-after-free (and wrong-element update/free of kernel-managed map fields) yields a corruptible kernel object and is exploitable for arbitrary write / control-flow hijacking. A:H - A use-after-free in a softirq hrtimer callback can oops/panic the kernel, and guidance treats any UAF as high availability impact even when not fully exploited.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | c85d69135a9175c50a823d04d62d932312d037b3 to < 2157ac13db8d5763835f1663bdabda6de744cba8 (affected · git)c85d69135a9175c50a823d04d62d932312d037b3 to < f665c56e6836933335e5a4513fc9b0bf47cdf81f (affected · git)c85d69135a9175c50a823d04d62d932312d037b3 to < 063e092534d4c6785228e5b1eb6e9329f66ccbe4 (affected · git)c85d69135a9175c50a823d04d62d932312d037b3 to < 3c7256b880b3a5aa1895fd169a34aa4224a11862 (affected · git)c85d69135a9175c50a823d04d62d932312d037b3 to < 87ac0d600943994444e24382a87aa19acc4cd3d4 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.3 (affected)0 to < 5.3 (unaffected · semver)5.10.273 through 5.10.* (unaffected · semver)5.15.224 through 5.15.* (unaffected · semver)5.18.18 through 5.18.* (unaffected · semver)5.19.2 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/063e092534d4c6785228e5b1eb6e9329f66ccbe4
- https://git.kernel.org/stable/c/2157ac13db8d5763835f1663bdabda6de744cba8
- https://git.kernel.org/stable/c/3c7256b880b3a5aa1895fd169a34aa4224a11862
- https://git.kernel.org/stable/c/87ac0d600943994444e24382a87aa19acc4cd3d4
- https://git.kernel.org/stable/c/f665c56e6836933335e5a4513fc9b0bf47cdf81f
Provider assertions
2Linux · cna
bpf: fix potential 32-bit overflow when accessing ARRAY map element
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0353034c7b60c37213f58a27be9dda099c2d919f76fb7f98fa250c5acb35bce5
- Ingested
- 30 Oct 2026, 12:31:36 UTC
- Source record
- Official CVE record