{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "0daad5ac74ea629cb5911b57749ea22ed5b030d5"
            },
            {
              "fixed": "13a505bc02f9c31532a2aac8d89cfccfb996c32a"
            },
            {
              "fixed": "a838c89ad33e40ebf802218551174dafe3ebefde"
            },
            {
              "fixed": "fa054bb88efeadd0aec875b0e6cb8fea961ddbf8"
            },
            {
              "fixed": "51f478985b6466952635c9c6fd7531ebbfde8b54"
            },
            {
              "fixed": "5ecd94581c322d6998f50c32e4fa00f935847059"
            },
            {
              "fixed": "043e094c5550a8b0d4073d4f531f5f403a423e2c"
            },
            {
              "fixed": "b5c2df42977390a71f1940def5be9bd5c69ac2e0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142850.json"
  },
  "details": "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 \u003c= dlen.\n\nIf a caller decompresses a crafted buffer where `hdr-\u003eignore` 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.",
  "id": "CVE-2026-142850",
  "modified": "2026-12-03T04:45:36.632979656Z",
  "published": "2026-12-03T03:20:57.496Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/043e094c5550a8b0d4073d4f531f5f403a423e2c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0daad5ac74ea629cb5911b57749ea22ed5b030d5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/13a505bc02f9c31532a2aac8d89cfccfb996c32a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/51f478985b6466952635c9c6fd7531ebbfde8b54"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5ecd94581c322d6998f50c32e4fa00f935847059"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a838c89ad33e40ebf802218551174dafe3ebefde"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b5c2df42977390a71f1940def5be9bd5c69ac2e0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fa054bb88efeadd0aec875b0e6cb8fea961ddbf8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142850.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142850"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "crypto: nx - validate 'ignore' before subtracting in decompress"
}