Bug 2373633 (CVE-2022-50167) - CVE-2022-50167 kernel: bpf: fix potential 32-bit overflow when accessing ARRAY map element
Summary: CVE-2022-50167 kernel: bpf: fix potential 32-bit overflow when accessing ARRA...
Keywords:
Status: NEW
Alias: CVE-2022-50167
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:11 UTC by OSIDB Bzimport
Modified: 2025-06-19 00:43 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:11:33 UTC
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.

Comment 1 Avinash Hanwate 2025-06-19 00:33:54 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061827-CVE-2022-50167-e4bf@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.