CVE-2022-50490 bpf: Propagate error from htab_lock_bucket() to userspace

High 7.1 Published Updated

A flaw in the Linux kernel BPF subsystem allows attackers to read kernel memory via out-of-bounds access during batch operations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-50490?

CVE-2022-50490 is a high-severity vulnerability in Linux kernel, published on 4 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Propagate error from htab_lock_bucket() to userspace

In __htab_map_lookup_and_delete_batch() if htab_lock_bucket() returns -EBUSY, it will go to next bucket. Going to next bucket may not only skip the elements in current bucket silently, but also incur out-of-bound memory access or expose kernel memory to userspace if current bucket_cnt is greater than bucket_size or zero.

Fixing it by stopping batch operation and returning -EBUSY when htab_lock_bucket() fails, and the application can retry or skip the busy batch as needed.

Weakness: CWE-125

Which versions are affected by CVE-2022-50490?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-50490?

Apply the vendor's patch.

Is CVE-2022-50490 being exploited?

There is no known exploitation of CVE-2022-50490 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-50490, GHSA-49r4-jvjj-q7x6, UBUNTU-CVE-2022-50490.

Is CVE-2022-50490 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free