CVE-2024-26789
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom fc074e130051015e39245a4241956ff122e2f465 before 034e2d70b5c7f578200ad09955aeb2aa65d1164a, from fc074e130051015e39245a4241956ff122e2f465 before 1291d278b5574819a7266568ce4c28bce9438705, from fc074e130051015e39245a4241956ff122e2f465 before 9e8ecd4908b53941ab6f0f51584ab80c6c6606c4, from fc074e130051015e39245a4241956ff122e2f465 before 1c0cf6d19690141002889d72622b90fc01562ce4, 5.18
Not affected: before 5.18, from 6.1.81 up to 6.1.*, from 6.6.21 up to 6.6.*, from 6.7.9 up to 6.7.*, from 6.8 up to *
CVE List
linux linux_kernelfrom 5.18 up to 6.1.81, from 6.2 up to 6.6.21, from 6.2 up to 6.7.9, 6.8NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-125

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: crypto: arm64/neonbs: corrige el acceso fuera de los límites en entradas cortas. La implementación de bits de AES-CTR opera en bloques de 128 bytes y recurrirá al Versión NEON simple para bloques finales o entradas que, para empezar, tienen menos de 128 bytes. Llamará directamente al asistente simple NEON asm, que realiza todos los accesos a la memoria en gránulos de 16 bytes (el tamaño de un registro NEON). Por esta razón, el código de pegamento NEON simple asociado copiará las entradas de menos de 16 bytes en un búfer temporal, dado que esto es algo poco común y no vale la pena el esfuerzo de solucionarlo en el código ASM. El respaldo de la versión NEON dividida en bits no tiene esto en cuenta, lo que podría provocar accesos fuera de los límites. Así que clone la misma solución y use un búfer temporal para entradas/salidas cortas.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26789 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-26789 changed 2026-08-04Public domain