crypto: nx - validate 'ignore' before subtracting in decompress
- CVE-2026-142850
- GHSA-3p3g-6g4w-9fq9
- EUVD-2026-142100
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.
Text from the CVE.org record.
Recommendation
Linux
- If you run a version before 7.3.4update to 7.3.4 or later
- If you run a version before 6.18.63update to 6.18.63 or later
- If you run a version before 6.12.117update to 6.12.117 or later
- If you run a version before 6.6.163update to 6.6.163 or later
- If you run a version before 6.1.193update to 6.1.193 or later
- If you run a version before 5.15.226update to 5.15.226 or later
- If you run a version before 5.10.275update to 5.10.275 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in before 7.3.4 7.3.4 before 6.18.63 6.18.63 before 6.12.117 6.12.117 before 6.6.163 6.6.163 before 6.1.193 6.1.193 before 5.15.226 5.15.226 before 5.10.275 5.10.275 from 5.10.275 up to 5.10.*: not affected none stated and 7 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.