CVE-2024-26789 crypto: arm64/neonbs - fix out-of-bounds access on short input
A local attacker can trigger an out-of-bounds memory access in the Linux kernel's ARM64 AES-CTR implementation, potentially causing a crash or arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-26789?
CVE-2024-26789 is a high-severity memory corruption vulnerability in Linux kernel, published on 4 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2024-26789?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-26789?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-26789 being exploited?
There is no known exploitation of CVE-2024-26789 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-59490, BELL-CVE-2024-26789, DEBIAN-CVE-2024-26789, GHSA-4q8v-gqw7-8xpx, UBUNTU-CVE-2024-26789.