CVE-2026-139668

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

Published Nov 30, 2026 CVSS 3.1 · 1.9 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel QAT crypto driver was found to increment an internal counter and register a cipher during algorithm registration without decrementing or unregistering when the asymmetric registration path failed. This left the active device count permanently raised and the driver’s module pinned in memory. The leak of the counter does not directly reveal sensitive data, but it represents a resource management flaw that can prevent the driver from being unloaded and may eventually exhaust crypto subsystem resources, degrading system performance.

Affected Systems

All Linux kernel builds that include the QAT crypto driver prior to the fix are potentially affected. The affected product is the Linux kernel; specific kernel versions are not listed in the available data.

Risk and Exploitability

The flaw is triggered during the loading of the QAT crypto driver or when the kernel attempts to register crypto algorithms. It requires local kernel execution privileges; this inference is based on the need to load the driver or invoke crypto registration. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, so the current risk level cannot be quantified precisely. The CVSS score of 1.9 indicates low severity. The vulnerability could allow an attacker with sufficient privileges to cause a resource leak and possibly impede module removal, leading to degraded system availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that splits crypto algorithm registration and correctly decrements the active device counter.
  • If the patch has not been applied, unload or disable the QAT crypto driver to prevent further counter leaks.
  • Monitor system logs for crypto algorithm registration failures and verify that the active device count returns to zero after a reboot.

Generated by OpenCVE AI on December 1, 2026 at 17:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-775
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 1.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-775
Type Values Removed Values Added
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.
Title crypto: qat - fix active_devs leak on crypto alg registration failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Low
Public date
Nov 30, 2026, 1:36 PM