CVE-2022-50167
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50167 is a vulnerability discovered in the Linux kernel's BPF subsystem. The issue involves a potential 32-bit overflow when accessing BPF array map elements, specifically when BPF array maps larger than 4GB are accessed. The vulnerability occurs because both index and elem_size variables are 32-bit unsigned integers (u32), which can lead to overflow in element pointer calculations (NVD, Debian Tracker).

Technical details

The vulnerability stems from a calculation issue in the Linux kernel's BPF subsystem. When handling BPF array maps exceeding 4GB in size, the element pointer calculation can overflow due to both the index and elem_size being 32-bit unsigned integers (u32). The fix involves forcing 64-bit multiplication and implementing a consistent formula across various places in the code. Additionally, explicit u64 casts were added to the speculative-preventing formula that utilizes the index_mask trick (Wiz).

Impact

If exploited, this vulnerability could lead to memory corruption or system crashes due to incorrect memory access calculations when dealing with large BPF array maps. The impact is particularly relevant for systems utilizing BPF array maps larger than 4GB (Wiz).

Mitigation and workarounds

The vulnerability has been fixed in various Linux distributions. Debian has addressed this in multiple versions: fixed in bookworm (6.1.137-1), bookworm security (6.1.140-1), trixie security (6.12.31-1), and sid/trixie (6.12.32-1). However, it remains vulnerable in bullseye (5.10.223-1) and bullseye security (5.10.237-1) (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-doc
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-abi-stablelists
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management