CVE-2024-26950 wireguard: netlink: access device through ctx instead of peer
A null pointer dereference in the Linux kernel's WireGuard netlink implementation can cause a system crash, requiring a kernel patch.
- 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-26950?
CVE-2024-26950 is a high-severity vulnerability in Debian Debian Linux, published on 1 May 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:
wireguard: netlink: access device through ctx instead of peer
The previous commit fixed a bug that led to a NULL peer->device being dereferenced. It's actually easier and faster performance-wise to instead get the device from ctx->wg. This semantically makes more sense too, since ctx->wg->peer_allowedips.seq is compared with ctx->allowedips_seq, basing them both in ctx. This also acts as a defence in depth provision against freed peers.
Weakness: CWE-476
Which versions are affected by CVE-2024-26950?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-26950?
Apply the vendor's patch.
Is CVE-2024-26950 being exploited?
There is no known exploitation of CVE-2024-26950 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2024-26950, DEBIAN-CVE-2024-26950, GHSA-265f-v3vf-6m77, UBUNTU-CVE-2024-26950.