wireguard: netlink: access device through ctx instead of peer (Linux Linux)

CVE-2024-26950
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e7096c131e5161fa3b8e52a650d7719d2857adfd < 493aa6bdcffd90a4f82aa614fe4f4db0641b4068 ; affected e7096c131e5161fa3b8e52a650d7719d2857adfd < 4be453271a882c8ebc28df3dbf9e4d95e6ac42f5 ; affected e7096c131e5161fa3b8e52a650d7719d2857adfd < 09c3fa70f65175861ca948cb2f0f791e666c90e5 ; affected e7096c131e5161fa3b8e52a650d7719d2857adfd < c991567e6c638079304cc15dff28748e4a3c4a37 ; affected e7096c131e5161fa3b8e52a650d7719d2857adfd < 93bcc1752c69bb309f4d8cfaf960ef1faeb34996 ; affected e7096c131e5161fa3b8e52a650d7719d2857adfd < d44bd323d8bb8031eef4bdc44547925998a11e47
Linux · Linuxaffected 5.6 ; unaffected 0 < 5.6 ; unaffected 5.10.215 ≤ 5.10.* ; unaffected 5.15.154 ≤ 5.15.* ; unaffected 6.1.84 ≤ 6.1.* ; unaffected 6.6.24 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD