{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "fa43d81ad11a749bf336c0fa7c39746ebedb3762"
            },
            {
              "fixed": "76309cbe017eb1d92c91b2d65f8c1004800b542c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "9b2f33a1bfcda90b857431a764c9c8f9a412bbe5"
            },
            {
              "fixed": "3a880ae5b2af51b356ade94058e19a1311269f10"
            },
            {
              "fixed": "2d542d1332979f959e1746b93b838c9ed276a750"
            },
            {
              "fixed": "f4d507971c074cd608cf5385c7d77ddf98c04455"
            },
            {
              "fixed": "178829f1b5b259938188a10f4103fdb901b6435e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "dc44e3fdb091c157fb68cdb9be10c43798b6f16d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "adeee72f0e3bca51d1047bca014ebc7fc21f70fb"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.1.63"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.5.12"
            },
            {
              "fixed": "6.6"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.2"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139668.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - fix active_devs leak on crypto alg registration failure\n\nadf_dev_start() registered both alg sets in a single condition.\nIf qat_algs_register() succeeds but qat_asym_algs_register() fails,\nADF_STATUS_CRYPTO_ALGS_REGISTERED is left clear, so adf_dev_stop() skips\nqat_algs_unregister(): the skciphers and aeads stay registered with\nactive_devs stuck at 1, pinning the module.\n\nBoth helpers leak active_devs internally as well - they increment it and\nreturn without decrementing when a crypto_register_*() call fails, and\nthe asym path also leaves the already-registered akcipher behind.\n\nSplit the registration in adf_dev_start() so that an asym failure\nunregisters qat_algs, and unwind active_devs (and the akcipher) on the\nerror paths of both register helpers. While at it, propagate the error\ncode returned by the register helpers instead of a blanket -EFAULT.",
  "id": "CVE-2026-139668",
  "modified": "2026-12-01T20:45:51.657688072Z",
  "published": "2026-11-30T13:36:52.792Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/178829f1b5b259938188a10f4103fdb901b6435e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2d542d1332979f959e1746b93b838c9ed276a750"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3a880ae5b2af51b356ade94058e19a1311269f10"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/76309cbe017eb1d92c91b2d65f8c1004800b542c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f4d507971c074cd608cf5385c7d77ddf98c04455"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139668.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139668"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "crypto: qat - fix active_devs leak on crypto alg registration failure"
}