{"id":"CVE-2022-50167","summary":"bpf: fix potential 32-bit overflow when accessing ARRAY map element","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix potential 32-bit overflow when accessing ARRAY map element\n\nIf BPF array map is bigger than 4GB, element pointer calculation can\noverflow because both index and elem_size are u32. Fix this everywhere\nby forcing 64-bit multiplication. Extract this formula into separate\nsmall helper and use it consistently in various places.\n\nSpeculative-preventing formula utilizing index_mask trick is left as is,\nbut explicit u64 casts are added in both places.","modified":"2026-04-02T08:28:16.989859Z","published":"2025-06-18T11:03:20.997Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50167.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/063e092534d4c6785228e5b1eb6e9329f66ccbe4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c7256b880b3a5aa1895fd169a34aa4224a11862"},{"type":"WEB","url":"https://git.kernel.org/stable/c/87ac0d600943994444e24382a87aa19acc4cd3d4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50167.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50167"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c85d69135a9175c50a823d04d62d932312d037b3"},{"fixed":"063e092534d4c6785228e5b1eb6e9329f66ccbe4"},{"fixed":"3c7256b880b3a5aa1895fd169a34aa4224a11862"},{"fixed":"87ac0d600943994444e24382a87aa19acc4cd3d4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50167.json"}}],"schema_version":"1.7.5"}