crypto: qat - fix active_devs leak on crypto alg registration failure

Summary

CVECVE-2026-139668
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:52 UTC
Updated2026-11-30 14:19:52 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: crypto: qat - fix active_devs leak on crypto alg registration failure adf_dev_start() registered both alg sets in a single condition. If qat_algs_register() succeeds but qat_asym_algs_register() fails, ADF_STATUS_CRYPTO_ALGS_REGISTERED is left clear, so adf_dev_stop() skips qat_algs_unregister(): the skciphers and aeads stay registered with active_devs stuck at 1, pinning the module. Both helpers leak active_devs internally as well - they increment it and return without decrementing when a crypto_register_*() call fails, and the asym path also leaves the already-registered akcipher behind. Split the registration in adf_dev_start() so that an asym failure unregisters qat_algs, and unwind active_devs (and the akcipher) on the error paths of both register helpers. While at it, propagate the error code returned by the register helpers instead of a blanket -EFAULT.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected fa43d81ad11a749bf336c0fa7c39746ebedb3762 76309cbe017eb1d92c91b2d65f8c1004800b542c git Not specified
CNA Linux Linux affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 3a880ae5b2af51b356ade94058e19a1311269f10 git Not specified
CNA Linux Linux affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 2d542d1332979f959e1746b93b838c9ed276a750 git Not specified
CNA Linux Linux affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 f4d507971c074cd608cf5385c7d77ddf98c04455 git Not specified
CNA Linux Linux affected 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 178829f1b5b259938188a10f4103fdb901b6435e git Not specified
CNA Linux Linux affected dc44e3fdb091c157fb68cdb9be10c43798b6f16d git Not specified
CNA Linux Linux affected adeee72f0e3bca51d1047bca014ebc7fc21f70fb git Not specified
CNA Linux Linux affected 6.6.2 6.6.163 semver Not specified
CNA Linux Linux affected 6.1.63 6.2 semver Not specified
CNA Linux Linux affected 6.5.12 6.6 semver Not specified
CNA Linux Linux affected 6.7 Not specified
CNA Linux Linux unaffected 6.7 semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/76309cbe017eb1d92c91b2d65f8c1004800b542c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f4d507971c074cd608cf5385c7d77ddf98c04455 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2d542d1332979f959e1746b93b838c9ed276a750 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3a880ae5b2af51b356ade94058e19a1311269f10 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/178829f1b5b259938188a10f4103fdb901b6435e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report