Lucene search

K
cvelistLinuxCVELIST:CVE-2024-26789
HistoryApr 04, 2024 - 8:20 a.m.

CVE-2024-26789 crypto: arm64/neonbs - fix out-of-bounds access on short input

2024-04-0408:20:21
Linux
www.cve.org
1
linux kernel
vulnerability resolved
aes-ctr
neon version
memory accesses
out-of-bounds
temp buffer

8 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.8%

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

crypto: arm64/neonbs - fix out-of-bounds access on short input

The bit-sliced implementation of AES-CTR operates on blocks of 128
bytes, and will fall back to the plain NEON version for tail blocks or
inputs that are shorter than 128 bytes to begin with.

It will call straight into the plain NEON asm helper, which performs all
memory accesses in granules of 16 bytes (the size of a NEON register).
For this reason, the associated plain NEON glue code will copy inputs
shorter than 16 bytes into a temporary buffer, given that this is a rare
occurrence and it is not worth the effort to work around this in the asm
code.

The fallback from the bit-sliced NEON version fails to take this into
account, potentially resulting in out-of-bounds accesses. So clone the
same workaround, and use a temp buffer for short in/outputs.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/arm64/crypto/aes-neonbs-glue.c"
    ],
    "versions": [
      {
        "version": "fc074e130051",
        "lessThan": "034e2d70b5c7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fc074e130051",
        "lessThan": "1291d278b557",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fc074e130051",
        "lessThan": "9e8ecd4908b5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fc074e130051",
        "lessThan": "1c0cf6d19690",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/arm64/crypto/aes-neonbs-glue.c"
    ],
    "versions": [
      {
        "version": "5.18",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.18",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.81",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.21",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.9",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

8 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.8%