CVE-2024-26950

wireguard: netlink: access device through ctx instead of peer

State
Published
Severity
7.8 High
Published
May 1, 2024
Updated
Oct 15, 2026
Reserved
Feb 19, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e7096c131e5161fa3b8e52a650d7719d2857adfd to before 493aa6bdcffd90a4f82aa614fe4f4db0641b4068Affected
  • e7096c131e5161fa3b8e52a650d7719d2857adfd to before 4be453271a882c8ebc28df3dbf9e4d95e6ac42f5Affected
  • e7096c131e5161fa3b8e52a650d7719d2857adfd to before 09c3fa70f65175861ca948cb2f0f791e666c90e5Affected
  • e7096c131e5161fa3b8e52a650d7719d2857adfd to before c991567e6c638079304cc15dff28748e4a3c4a37Affected
  • e7096c131e5161fa3b8e52a650d7719d2857adfd to before 93bcc1752c69bb309f4d8cfaf960ef1faeb34996Affected
  • e7096c131e5161fa3b8e52a650d7719d2857adfd to before d44bd323d8bb8031eef4bdc44547925998a11e47Affected
  • e7096c131e5161fa3b8e52a650d7719d2857adfd to before 71cbd32e3db82ea4a74e3ef9aeeaa6971969c86fAffected
LinuxLinux
  • 5.6Affected
  • before 5.6Not affected
  • 5.10.215 through 5.10.*Not affected
  • 5.15.154 through 5.15.*Not affected
  • 6.1.84 through 6.1.*Not affected
  • 6.6.24 through 6.6.*Not affected
  • 6.7.12 through 6.7.*Not affected
  • 6.8.3 through 6.8.*Not affected
  • 6.9 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.