CVE-2022-50167CWE-190

CVE-2022-50167

High · published June 18, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
17.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00263 · 17.1th percentile
Weakness
CWE-190 · Integer Overflow or Wraparound
Published
2025-06-18T15:15Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel≥ 5.3, < 5.18.185.18.18
linux/linux_kernel≥ 5.19, < 5.19.25.19.2
References (3)
EPSS history
Timeline
  • 18 JUN 11:03Z
    bpf: fix potential 32-bit overflow when accessing ARRAY map element
    cvelistv5