CVE-2026-138921

crypto: caam - fix double-free in caam_rsa_set_priv_key_form()

7.8 high EPSS 0.19%

Published 30 Nov 2026 Updated 1 Dec 2026 CNA: Linux

Check your servers for CVE-2026-138921

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138921 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: caam - fix double-free in caam_rsa_set_priv_key_form()

caam_rsa_set_priv_key_form() frees the partially allocated key components (p, q, tmp1, tmp2, dp, dq) with kfree_sensitive() on its error path, but does not set those pointers to NULL afterward.

When the function returns an error, caam_rsa_set_priv_key() jumps to its err label and calls caam_rsa_free_key(), which frees all of those same pointers again, resulting in a double-free.

This is reachable when the allocation of q, tmp1, tmp2, dp, dq or qinv fails, e.g. under memory pressure, or for a malformed key whose CRT members decode to zero length and make caam_read_rsa_crt() return NULL.

Set each pointer to NULL right after freeing it so that the subsequent caam_rsa_free_key() call becomes a no-op for the already-freed fields.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.29% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before 068e85ed81838a9d98c3018d532402dbd360fd1f
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before 35b3176839fa1842ae1a6e3b2bbbc37d34237614
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before a5e1e36dace783c8d1688a299a3919f4d624217d
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before ad78e2cd8b4dde0b8c52bb5227e09faf3f49b939
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before e7a5cea8804f1210fe45c3a0281b11943c58553f
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before f3e503a31d3cfdc8fae1baeb0ad5ba8471ceea9d
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before 523eb58df5c11531a99f2e75d08e10f20cc28565
affected from 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, before a91d9346a70b68f77884cba9d9ec3b70f96bf9d2
Other versions: unaffected
Linux
affected 4.13
unaffected before 4.13
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138921 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138921

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-138921
trivy image --scanners vuln IMAGE | grep CVE-2026-138921

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-138921 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.