{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-142850","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.333Z","datePublished":"2026-12-03T03:20:57.496Z","dateUpdated":"2026-12-04T03:25:23.116Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:25:23.116Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: nx - validate 'ignore' before subtracting in decompress\n\nThe decompress() function subtracts the header-supplied `ignore` value\n(a u16 from the compressed stream) from `dlen` (the number of bytes\nproduced by the decompressor) without checking that ignore <= dlen.\n\nIf a caller decompresses a crafted buffer where `hdr->ignore` exceeds\nthe actual decompressed length, the subtraction wraps around to a\nnear-UINT_MAX value.  The subsequent memcpy() then copies gigabytes of\ndata past the destination buffer, causing an out-of-bounds kernel write.\n\nAdd a bounds check before the subtraction and return -EINVAL if the\nvalue is inconsistent."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - decompress() in nx-842.c is reached from nx842_crypto_decompress(), the scomp handler for \"842\"/\"842-nx\", which zswap_decompress() calls via crypto_acomp_decompress() on a stored zswap entry. IPComp's calg_list is deflate/lzs/lzjh, AF_ALG has no acomp type, and /dev/crypto/nx-gzip does not call this function, so no remote protocol carries hdr->ignore.\nAC:H - The wrap fires only when the NX header u16 ignore exceeds the length sw842_decompress() or the NX coprocessor returns in dlen. The only in-tree caller replays blobs from nx842_crypto_compress(), which sets ignore to input padding (at most the round-up to multiple 8) and uncompressed_length to that same padded size, so ignore <= dlen. No ioctl, AF_ALG, netlink or debugfs write can replace that blob.\nPR:L - On a host already using the 842 zswap compressor, any local user reaches zswap_compress() and zswap_decompress() by reclaiming their own pages. Those paths check no capability. Enabling zswap.compressor is a root-only module parameter and a deployment precondition, not a privilege required on the call itself.\nUI:N - Reclaim of the attacker's own pages enters zswap_decompress() and then decompress() with no other user mounting media, opening a file, or accepting a device.\nS:U - The overflowing memcpy() in decompress() copies from ctx->dbounce into the caller's kernel output, a zswap folio. The corruption stays in the host kernel and does not cross a guest/host, IOMMU or sandbox boundary.\nC:H - If ignore > dlen, dlen -= ignore wraps modulo 2^32 and, when dst is ctx->dbounce, memcpy(p->out, ctx->dbounce, dlen) reads past the order-2 bounce allocation. That unbounded kernel read is a runaway copy.\nI:H - The same memcpy() writes the wrapped length at p->out. zswap passes a single folio page as the destination, so the copy continues into adjacent kernel memory: an unbounded out-of-bounds write.\nA:H - The wrapped length is just under 4GiB, so that memcpy() runs off the mapped order-2 ctx->dbounce inside decompress() and oopses the kernel, including under panic_on_oops, on every decompress of such a stream."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/nx/nx-842.c"],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"0daad5ac74ea629cb5911b57749ea22ed5b030d5","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"13a505bc02f9c31532a2aac8d89cfccfb996c32a","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"a838c89ad33e40ebf802218551174dafe3ebefde","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"fa054bb88efeadd0aec875b0e6cb8fea961ddbf8","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"51f478985b6466952635c9c6fd7531ebbfde8b54","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"5ecd94581c322d6998f50c32e4fa00f935847059","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"043e094c5550a8b0d4073d4f531f5f403a423e2c","status":"affected","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","lessThan":"b5c2df42977390a71f1940def5be9bd5c69ac2e0","status":"affected","versionType":"git"},{"version":"0","lessThan":"5.10.275","status":"affected","versionType":"semver"},{"version":"0","lessThan":"5.15.226","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.1.193","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.6.163","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.12.117","status":"affected","versionType":"semver"},{"version":"0","lessThan":"6.18.63","status":"affected","versionType":"semver"},{"version":"0","lessThan":"7.3.4","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/crypto/nx/nx-842.c"],"versions":[{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/0daad5ac74ea629cb5911b57749ea22ed5b030d5"},{"url":"https://git.kernel.org/stable/c/13a505bc02f9c31532a2aac8d89cfccfb996c32a"},{"url":"https://git.kernel.org/stable/c/a838c89ad33e40ebf802218551174dafe3ebefde"},{"url":"https://git.kernel.org/stable/c/fa054bb88efeadd0aec875b0e6cb8fea961ddbf8"},{"url":"https://git.kernel.org/stable/c/51f478985b6466952635c9c6fd7531ebbfde8b54"},{"url":"https://git.kernel.org/stable/c/5ecd94581c322d6998f50c32e4fa00f935847059"},{"url":"https://git.kernel.org/stable/c/043e094c5550a8b0d4073d4f531f5f403a423e2c"},{"url":"https://git.kernel.org/stable/c/b5c2df42977390a71f1940def5be9bd5c69ac2e0"}],"title":"crypto: nx - validate 'ignore' before subtracting in decompress","x_generator":{"engine":"bippy-1.2.0"}}}}