CVE-2024-26950: wireguard: netlink: access device through ctx instead of peer
In the Linux kernel, the following vulnerability has been resolved:
wireguard: netlink: access device through ctx instead of peer
The Linux kernel CVE team has assigned CVE-2024-26950 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024050127-CVE-2024-26950-4424@gregkh/T
Other sources
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->peerallowedips.seq is compared with ctx->allowedipsseq, basing them both in ctx. This also acts as a defence in depth provision against freed peers.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.10.215 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.15.154 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.84 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.24 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.7.12 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8.3 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.9
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26950?
CVE-2024-26950 is categorized as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-26950?
To fix CVE-2024-26950, upgrade your Linux kernel to the recommended versions which are 5.10.215, 5.15.154, 6.1.84, 6.6.24, 6.7.12, 6.8.3, or 6.9.
Which Linux kernel versions are affected by CVE-2024-26950?
CVE-2024-26950 affects Linux kernel versions prior to 5.10.215, 5.15.154, 6.1.84, 6.6.24, 6.7.12, 6.8.3, and 6.9.
What component of the Linux kernel is impacted by CVE-2024-26950?
CVE-2024-26950 impacts the WireGuard netlink interface in the Linux kernel.
Is CVE-2024-26950 related to security vulnerabilities in network protocols?
Yes, CVE-2024-26950 pertains to a vulnerability in the WireGuard networking protocol implementation in the Linux kernel.