Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2023-52746
HistoryMay 21, 2024 - 4:15 p.m.

CVE-2023-52746

2024-05-2116:15:14
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
28
linux
kernel
xfrm/compat
vulnerability
cve-2023-52746
resolved
spectre v1
gadget
array index_nospec
nvd

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

In the Linux kernel, the following vulnerability has been resolved:

xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()

int type = nla_type(nla);

if (type > XFRMA_MAX) {
return -EOPNOTSUPP;
}

@type is then used as an array index and can be used
as a Spectre v1 gadget.

if (nla_len(nla) < compat_policy[type].len) {

array_index_nospec() can be used to prevent leaking
content of kernel memory to malicious users.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.105.10.168
OR
linuxlinux_kernelRange5.11.05.15.94
OR
linuxlinux_kernelRange5.16.06.1.12
OR
linuxlinux_kernelRange6.2.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/xfrm/xfrm_compat.c"
    ],
    "versions": [
      {
        "version": "5106f4a8acff",
        "lessThan": "a893cc644812",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5106f4a8acff",
        "lessThan": "5dc688fae6b7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5106f4a8acff",
        "lessThan": "419674224390",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "5106f4a8acff",
        "lessThan": "b6ee89638538",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/xfrm/xfrm_compat.c"
    ],
    "versions": [
      {
        "version": "5.10",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.10",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.168",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.94",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.12",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.2",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%