{"api_version":"1","generated_at":"2026-12-01T13:53:47+00:00","cve":"CVE-2026-139668","urls":{"html":"https://cve.report/CVE-2026-139668","api":"https://cve.report/api/cve/CVE-2026-139668.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139668","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139668"},"summary":{"title":"crypto: qat - fix active_devs leak on crypto alg registration failure","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:52","updated_at":"2026-11-30 14:19:52"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/76309cbe017eb1d92c91b2d65f8c1004800b542c","name":"https://git.kernel.org/stable/c/76309cbe017eb1d92c91b2d65f8c1004800b542c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f4d507971c074cd608cf5385c7d77ddf98c04455","name":"https://git.kernel.org/stable/c/f4d507971c074cd608cf5385c7d77ddf98c04455","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2d542d1332979f959e1746b93b838c9ed276a750","name":"https://git.kernel.org/stable/c/2d542d1332979f959e1746b93b838c9ed276a750","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3a880ae5b2af51b356ade94058e19a1311269f10","name":"https://git.kernel.org/stable/c/3a880ae5b2af51b356ade94058e19a1311269f10","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/178829f1b5b259938188a10f4103fdb901b6435e","name":"https://git.kernel.org/stable/c/178829f1b5b259938188a10f4103fdb901b6435e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139668","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139668","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fa43d81ad11a749bf336c0fa7c39746ebedb3762 76309cbe017eb1d92c91b2d65f8c1004800b542c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 3a880ae5b2af51b356ade94058e19a1311269f10 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 2d542d1332979f959e1746b93b838c9ed276a750 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 f4d507971c074cd608cf5385c7d77ddf98c04455 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 178829f1b5b259938188a10f4103fdb901b6435e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected dc44e3fdb091c157fb68cdb9be10c43798b6f16d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected adeee72f0e3bca51d1047bca014ebc7fc21f70fb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.2 6.6.163 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.63 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.5.12 6.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/crypto/intel/qat/qat_common/adf_init.c","drivers/crypto/intel/qat/qat_common/qat_algs.c","drivers/crypto/intel/qat/qat_common/qat_asym_algs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"76309cbe017eb1d92c91b2d65f8c1004800b542c","status":"affected","version":"fa43d81ad11a749bf336c0fa7c39746ebedb3762","versionType":"git"},{"lessThan":"3a880ae5b2af51b356ade94058e19a1311269f10","status":"affected","version":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","versionType":"git"},{"lessThan":"2d542d1332979f959e1746b93b838c9ed276a750","status":"affected","version":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","versionType":"git"},{"lessThan":"f4d507971c074cd608cf5385c7d77ddf98c04455","status":"affected","version":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","versionType":"git"},{"lessThan":"178829f1b5b259938188a10f4103fdb901b6435e","status":"affected","version":"9b2f33a1bfcda90b857431a764c9c8f9a412bbe5","versionType":"git"},{"status":"affected","version":"dc44e3fdb091c157fb68cdb9be10c43798b6f16d","versionType":"git"},{"status":"affected","version":"adeee72f0e3bca51d1047bca014ebc7fc21f70fb","versionType":"git"},{"lessThan":"6.6.163","status":"affected","version":"6.6.2","versionType":"semver"},{"lessThan":"6.2","status":"affected","version":"6.1.63","versionType":"semver"},{"lessThan":"6.6","status":"affected","version":"6.5.12","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/crypto/intel/qat/qat_common/adf_init.c","drivers/crypto/intel/qat/qat_common/qat_algs.c","drivers/crypto/intel/qat/qat_common/qat_asym_algs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.7"},{"lessThan":"6.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.63","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:36:52.792Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/76309cbe017eb1d92c91b2d65f8c1004800b542c"},{"url":"https://git.kernel.org/stable/c/3a880ae5b2af51b356ade94058e19a1311269f10"},{"url":"https://git.kernel.org/stable/c/2d542d1332979f959e1746b93b838c9ed276a750"},{"url":"https://git.kernel.org/stable/c/f4d507971c074cd608cf5385c7d77ddf98c04455"},{"url":"https://git.kernel.org/stable/c/178829f1b5b259938188a10f4103fdb901b6435e"}],"title":"crypto: qat - fix active_devs leak on crypto alg registration failure","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139668","datePublished":"2026-11-30T13:36:52.792Z","dateReserved":"2026-11-30T13:22:15.946Z","dateUpdated":"2026-11-30T13:36:52.792Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:52","lastModifiedDate":"2026-11-30 14:19:52","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139668","Ordinal":"1","Title":"crypto: qat - fix active_devs leak on crypto alg registration fa","CVE":"CVE-2026-139668","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139668","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"crypto: qat - fix active_devs leak on crypto alg registration fa"}]}}}