CVE-2026-138921
CVE-2026-138921 — crypto: caam - fix double-free in caam_rsa_set_priv_key_form()
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.
Published Updated Sources: cvelistV5, Linux
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
7.8
HIGH
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.8 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
References
8 on the record
- git.kernel.org/stable/c/068e85ed81838a9d98c3018d532402dbd360fd1f
reference
- git.kernel.org/stable/c/35b3176839fa1842ae1a6e3b2bbbc37d34237614
reference
- git.kernel.org/stable/c/a5e1e36dace783c8d1688a299a3919f4d624217d
reference
- git.kernel.org/stable/c/ad78e2cd8b4dde0b8c52bb5227e09faf3f49b939
reference
- git.kernel.org/stable/c/e7a5cea8804f1210fe45c3a0281b11943c58553f
reference
- git.kernel.org/stable/c/f3e503a31d3cfdc8fae1baeb0ad5ba8471ceea9d
reference
- git.kernel.org/stable/c/523eb58df5c11531a99f2e75d08e10f20cc28565
reference
- git.kernel.org/stable/c/a91d9346a70b68f77884cba9d9ec3b70f96bf9d2
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-39682 tls: fix handling of zero-length records on the rx_listCVSS 9.8 · CISA KEV
- CVE-2016-3427 Oracle Java SE and JRockit Unspecified VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-53266 netfilter: bridge: make ebt_snat ARP rewrite writableCVSS 8.8 · CISA KEV
- CVE-2026-46300 net: skbuff: preserve shared-frag marker during coalescingCVSS 7.8 · CISA KEV
- CVE-2026-31431 crypto: algif_aead - Revert to operating out-of-placeCVSS 7.8 · CISA KEV
- CVE-2014-3153 Linux Kernel Privilege Escalation VulnerabilityCVSS 7.8 · CISA KEV
Elsewhere on this site
- Linuxevery CVE for this vendor
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.