7.8high
wireguard: netlink: access device through ctx instead of peer
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from e7096c131e5161fa3b8e52a650d7719d2857adfd before 493aa6bdcffd90a4f82aa614fe4f4db0641b4068, from e7096c131e5161fa3b8e52a650d7719d2857adfd before 4be453271a882c8ebc28df3dbf9e4d95e6ac42f5, from e7096c131e5161fa3b8e52a650d7719d2857adfd before 09c3fa70f65175861ca948cb2f0f791e666c90e5, from e7096c131e5161fa3b8e52a650d7719d2857adfd before c991567e6c638079304cc15dff28748e4a3c4a37, from e7096c131e5161fa3b8e52a650d7719d2857adfd before 93bcc1752c69bb309f4d8cfaf960ef1faeb34996, from e7096c131e5161fa3b8e52a650d7719d2857adfd before d44bd323d8bb8031eef4bdc44547925998a11e47, from e7096c131e5161fa3b8e52a650d7719d2857adfd before 71cbd32e3db82ea4a74e3ef9aeeaa6971969c86f, 5.6 Not affected: before 5.6, from 5.10.215 up to 5.10.*, from 5.15.154 up to 5.15.*, from 6.1.84 up to 6.1.*, from 6.6.24 up to 6.6.*, from 6.7.12 up to 6.7.* | CVE List |
| linux linux_kernel | from 5.6 before 5.10.215, from 5.11 before 5.15.154, from 5.16 before 6.1.84, from 6.2 before 6.6.24, from 6.7 before 6.7.12, from 6.8 before 6.8.3 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: wireguard: netlink: acceda al dispositivo a través de ctx en lugar de peer. el commit anterior solucionó un error que provocaba que se desreferenciara un dispositivo NULL peer->. En realidad, es más fácil y rápido en cuanto a rendimiento obtener el dispositivo desde ctx->wg. Esto también tiene más sentido semánticamente, ya que ctx->wg->peer_allowedips.seq se compara con ctx->allowedips_seq, basándose ambos en ctx. Esto también actúa como una defensa en profundidad contra los pares liberados.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26950 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2024-26950 changed 2026-10-15 | Public domain |