CVE-2022-50167 json
bpf: fix potential 32-bit overflow when accessing ARRAY map element
published 2025-06-18 16 mo ago modified 2026-10-30 10 d ago also EUVD-2022-55432
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 18%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.10.273, 5.15.224, 5.18.18, 5.19.2, 6.0
- linux Debian 14, Debian 13, Debian 12 5.19.6-1
debian advisories DEBIAN-CVE-2022-50167
- git.kernel.org/stable/c/2157ac13db8d5763835f1663bdabda6de744cba8 commit
- git.kernel.org/stable/c/f665c56e6836933335e5a4513fc9b0bf47cdf81f commit
- git.kernel.org/stable/c/063e092534d4c6785228e5b1eb6e9329f66ccbe4 commit
- git.kernel.org/stable/c/3c7256b880b3a5aa1895fd169a34aa4224a11862 commit
- git.kernel.org/stable/c/87ac0d600943994444e24382a87aa19acc4cd3d4 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50167 updated cvss 4.7
kernel: bpf: fix potential 32-bit overflow when accessing ARRAY map element
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 24 d ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 18% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
- Technology feeds
References
- git.kernel.org /stable/c/2157ac13db8d5763835f1663bdabda6de744cba8
- git.kernel.org /stable/c/f665c56e6836933335e5a4513fc9b0bf47cdf81f
-
git.kernel.org
/stable/c/063e092534d4c6785228e5b1eb6e9329f66ccbe4
patch
-
git.kernel.org
/stable/c/3c7256b880b3a5aa1895fd169a34aa4224a11862
patch
-
git.kernel.org
/stable/c/87ac0d600943994444e24382a87aa19acc4cd3d4
patch
Sources
- CVE List CVE-2022-50167
- NVD CVE-2022-50167
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.