CVE-2022-48770 bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()
A null pointer dereference in the Linux kernel BPF subsystem can cause a kernel oops, leading to denial of service.
- 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-48770?
CVE-2022-48770 is a medium-severity vulnerability in Linux kernel, published on 20 Jun 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: Guard against accessing NULL pt_regs in bpf_get_task_stack()
task_pt_regs() can return NULL on powerpc for kernel threads. This is then used in __bpf_get_stack() to check for user mode, resulting in a kernel oops. Guard against this by checking return value of task_pt_regs() before trying to obtain the call chain.
Weakness: CWE-476
Which versions are affected by CVE-2022-48770?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-48770?
Apply the vendor's patch.
Is CVE-2022-48770 being exploited?
There is no known exploitation of CVE-2022-48770 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-48770, GHSA-qx5f-76wj-2xm5, UBUNTU-CVE-2022-48770.