CVE-2026-142850
Description
In the Linux kernel, the following vulnerability has been resolved:
crypto: nx - validate 'ignore' before subtracting in decompress
The decompress() function subtracts the header-supplied ignore value (a u16 from the compressed stream) from dlen (the number of bytes produced by the decompressor) without checking that ignore <= dlen.
If a caller decompresses a crafted buffer where hdr->ignore exceeds the actual decompressed length, the subtraction wraps around to a near-UINT_MAX value. The subsequent memcpy() then copies gigabytes of data past the destination buffer, causing an out-of-bounds kernel write.
Add a bounds check before the subtraction and return -EINVAL if the value is inconsistent.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
References
8- git.kernel.org/stable/c/043e094c5550a8b0d4073d4f531f5f403a423e2cnvd
- git.kernel.org/stable/c/0daad5ac74ea629cb5911b57749ea22ed5b030d5nvd
- git.kernel.org/stable/c/13a505bc02f9c31532a2aac8d89cfccfb996c32anvd
- git.kernel.org/stable/c/51f478985b6466952635c9c6fd7531ebbfde8b54nvd
- git.kernel.org/stable/c/5ecd94581c322d6998f50c32e4fa00f935847059nvd
- git.kernel.org/stable/c/a838c89ad33e40ebf802218551174dafe3ebefdenvd
- git.kernel.org/stable/c/b5c2df42977390a71f1940def5be9bd5c69ac2e0nvd
- git.kernel.org/stable/c/fa054bb88efeadd0aec875b0e6cb8fea961ddbf8nvd
News mentions
0No linked articles in our index yet.