# CVE-2026-139668: crypto: qat - fix active_devs leak on crypto alg registration failure

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:52.792Z
- Modified: 2026-11-30T14:19:52.177Z
- Assigned by: Linux

## Description

In 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.

(As written by CVE List.)

## Affected

- Linux Linux: from fa43d81ad11a749bf336c0fa7c39746ebedb3762 before 76309cbe017eb1d92c91b2d65f8c1004800b542c; from 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 before 3a880ae5b2af51b356ade94058e19a1311269f10; from 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 before 2d542d1332979f959e1746b93b838c9ed276a750; from 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 before f4d507971c074cd608cf5385c7d77ddf98c04455; from 9b2f33a1bfcda90b857431a764c9c8f9a412bbe5 before 178829f1b5b259938188a10f4103fdb901b6435e; dc44e3fdb091c157fb68cdb9be10c43798b6f16d; adeee72f0e3bca51d1047bca014ebc7fc21f70fb; from 6.6.2 before 6.6.163; from 6.1.63 before 6.2; from 6.5.12 before 6.6; 6.7 (not affected: before 6.7; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/76309cbe017eb1d92c91b2d65f8c1004800b542c>
- <https://git.kernel.org/stable/c/3a880ae5b2af51b356ade94058e19a1311269f10>
- <https://git.kernel.org/stable/c/2d542d1332979f959e1746b93b838c9ed276a750>
- <https://git.kernel.org/stable/c/f4d507971c074cd608cf5385c7d77ddf98c04455>
- <https://git.kernel.org/stable/c/178829f1b5b259938188a10f4103fdb901b6435e>

## Sources

- CVE List: [CVE-2026-139668](https://www.cve.org/CVERecord?id=CVE-2026-139668), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139668](https://nvd.nist.gov/vuln/detail/CVE-2026-139668), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139668 · Whole record: https://cve.day/CVE-2026-139668.json · Rebuilt by cve.day 2026-11-30T14:33:37.891Z
