{"id":"CVE-2026-139668","aliases":["CVE-2026-139668"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: qat - fix active_devs leak on crypto alg registration failure","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:36:52.792Z","modified":"2026-11-30T14:19:52.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fa43d81ad11a749bf336c0fa7c39746ebedb3762","fixed":"76309cbe017eb1d92c91b2d65f8c1004800b542c","status":"affected"},{"type":"git","introduced":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","fixed":"3a880ae5b2af51b356ade94058e19a1311269f10","status":"affected"},{"type":"git","introduced":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","fixed":"2d542d1332979f959e1746b93b838c9ed276a750","status":"affected"},{"type":"git","introduced":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","fixed":"f4d507971c074cd608cf5385c7d77ddf98c04455","status":"affected"},{"type":"git","introduced":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","fixed":"178829f1b5b259938188a10f4103fdb901b6435e","status":"affected"},{"type":"git","version":"dc44e3fdb091c157fb68cdb9be10c43798b6f16d","status":"affected"},{"type":"git","version":"adeee72f0e3bca51d1047bca014ebc7fc21f70fb","status":"affected"},{"type":"semver","introduced":"6.6.2","fixed":"6.6.163","status":"affected"},{"type":"semver","introduced":"6.1.63","fixed":"6.2","status":"affected"},{"type":"semver","introduced":"6.5.12","fixed":"6.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/76309cbe017eb1d92c91b2d65f8c1004800b542c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a880ae5b2af51b356ade94058e19a1311269f10","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d542d1332979f959e1746b93b838c9ed276a750","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4d507971c074cd608cf5385c7d77ddf98c04455","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/178829f1b5b259938188a10f4103fdb901b6435e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139668","url":"https://www.cve.org/CVERecord?id=CVE-2026-139668","licence":"CVE Terms of Use","modified":"2026-11-30T13:36:52.792Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139668","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139668","licence":"Public domain","modified":"2026-11-30T14:19:52.177Z"}],"updatedAt":"2026-11-30T14:33:37.891Z","epss":{"score":0.002,"percentile":0.10335,"date":"2026-12-01T12:00:22.000Z"}}