CVE-2024-56768 bpf: Fix bpf_get_smp_processor_id() on !CONFIG_SMP

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel BPF subsystem causes a system crash when running on non-SMP configurations.

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

CVE-2024-56768 is a medium-severity vulnerability in Linux kernel, published on 6 Jan 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: Fix bpf_get_smp_processor_id() on !CONFIG_SMP

On x86-64 calling bpf_get_smp_processor_id() in a kernel with CONFIG_SMP disabled can trigger the following bug, as pcpu_hot is unavailable:

[ 8.471774] BUG: unable to handle page fault for address: 00000000936a290c [ 8.471849] #PF: supervisor read access in kernel mode [ 8.471881] #PF: error_code(0x0000) - not-present page

Fix by inlining a return 0 in the !CONFIG_SMP case.

Which versions are affected by CVE-2024-56768?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-56768?

Apply the vendor's patch.

Is CVE-2024-56768 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-56768, DEBIAN-CVE-2024-56768, GHSA-73m7-qfq5-gqj4, UBUNTU-CVE-2024-56768.

Is CVE-2024-56768 in your software?

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

Check your SBOMs for free