CVE-2024-50123 bpf: Add the missing BPF_LINK_TYPE invocation for sockmap
An out-of-bounds read in the Linux kernel's BPF sockmap link handling allows attackers to disclose sensitive memory contents.
- 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-50123?
CVE-2024-50123 is a high-severity vulnerability in Linux kernel, published on 5 Nov 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 the missing BPF_LINK_TYPE invocation for sockmap
There is an out-of-bounds read in bpf_link_show_fdinfo() for the sockmap link fd. Fix it by adding the missing BPF_LINK_TYPE invocation for sockmap link
Also add comments for bpf_link_type to prevent missing updates in the future.
Weakness: CWE-125
Which versions are affected by CVE-2024-50123?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50123?
Apply the vendor's patch.
Is CVE-2024-50123 being exploited?
There is no known exploitation of CVE-2024-50123 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-50123, DEBIAN-CVE-2024-50123, GHSA-m9gh-794q-vjjj, UBUNTU-CVE-2024-50123.