CVE-2024-47708 netkit: Assign missing bpf_net_context
A missing context assignment in the Linux kernel netkit driver causes a null pointer dereference, leading to a system crash.
- 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-47708?
CVE-2024-47708 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 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:
netkit: Assign missing bpf_net_context
During the introduction of struct bpf_net_context handling for XDP-redirect, the netkit driver has been missed, which also requires it because NETKIT_REDIRECT invokes skb_do_redirect() which is accessing the per-CPU variables. Otherwise we see the following crash:
BUG: kernel NULL pointer dereference, address: 0000000000000038 bpf_redirect() netkit_xmit() dev_hard_start_xmit()
Set the bpf_net_context before invoking netkit_xmit() program within the netkit driver.
Weakness: CWE-476
Which versions are affected by CVE-2024-47708?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-47708?
Apply the vendor's patch.
Is CVE-2024-47708 being exploited?
There is no known exploitation of CVE-2024-47708 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-47708, GHSA-mcrm-9h74-fxh7, UBUNTU-CVE-2024-47708.