Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2023-52746
HistoryMay 21, 2024 - 3:23 p.m.

CVE-2023-52746 xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()

2024-05-2115:23:07
Linux
github.com
2
linux kernel
xfrm/compat
spectre v1
xfrm_xlate32_attr
array_index_nospec
cve-2023-52746

6.6 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.

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.6 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

Related for VULNRICHMENT:CVE-2023-52746