CVE-2022-48939 bpf: Add schedule points in batch ops

Low 3.3 Published Updated

Attackers can cause system soft lockups and hangs by triggering BPF batch operations on large datasets, requiring kernel patches to add schedule points.

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-48939?

CVE-2022-48939 is a low-severity denial of service vulnerability in Linux kernel, published on 22 Aug 2024. 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: Add schedule points in batch ops

syzbot reported various soft lockups caused by bpf batch operations.

INFO: task kworker/1:1:27 blocked for more than 140 seconds. INFO: task hung in rcu_barrier

Nothing prevents batch ops to process huge amount of data, we need to add schedule points in them.

Note that maybe_wait_bpf_programs(map) calls from generic_map_delete_batch() can be factorized by moving the call after the loop.

This will be done later in -next tree once we get this fix merged, unless there is strong opinion doing this optimization sooner.

Weakness: CWE-834

Which versions are affected by CVE-2022-48939?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-48939?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-48939 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-48939, GHSA-pmwj-r76w-m8f7, UBUNTU-CVE-2022-48939.

Is CVE-2022-48939 in your software?

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

Check your SBOMs for free