CVE-2024-40908 bpf: Set run context for rawtp test_run callback

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel BPF subsystem allows local attackers to cause a system crash via the test_run interface.

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-2024-40908?

CVE-2024-40908 is a medium-severity vulnerability in Linux kernel, published on 12 Jul 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: Set run context for rawtp test_run callback

syzbot reported crash when rawtp program executed through the test_run interface calls bpf_get_attach_cookie helper or any other helper that touches task->bpf_ctx pointer.

Setting the run context (task->bpf_ctx pointer) for test_run callback.

Which versions are affected by CVE-2024-40908?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-40908?

Apply the vendor's patch.

Is CVE-2024-40908 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-40908, DEBIAN-CVE-2024-40908, GHSA-7rc6-qw7r-j2x9, UBUNTU-CVE-2024-40908.

Is CVE-2024-40908 in your software?

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

Check your SBOMs for free