Lucene search

K
cvelistLinuxCVELIST:CVE-2024-26950
HistoryMay 01, 2024 - 5:18 a.m.

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

2024-05-0105:18:29
Linux
www.cve.org
linux kernel
wireguard
netlink
ctx
peer
null dereferenced
performance
defence in depth

7.7 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.2%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/wireguard/netlink.c"
    ],
    "versions": [
      {
        "version": "e7096c131e51",
        "lessThan": "493aa6bdcffd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e7096c131e51",
        "lessThan": "4be453271a88",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e7096c131e51",
        "lessThan": "09c3fa70f651",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e7096c131e51",
        "lessThan": "c991567e6c63",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e7096c131e51",
        "lessThan": "93bcc1752c69",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e7096c131e51",
        "lessThan": "d44bd323d8bb",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e7096c131e51",
        "lessThan": "71cbd32e3db8",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/wireguard/netlink.c"
    ],
    "versions": [
      {
        "version": "5.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.215",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.154",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.84",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.24",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.12",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.3",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.7 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

13.2%