Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-138921

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

No exploitation reported by the sources we read.

  • Published2026-11-30
  • Fixed in7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-11-3013:26CVE publishedCNA

Versions per branch

OSV
Linux kernel
BranchAffectedFixed in
7.3≥ 6.19.0, < 7.3.47.3.4
6.x≥ 6.13.0, < 6.18.636.18.63
6.x≥ 6.7.0, < 6.12.1176.12.117
6.x≥ 6.2.0, < 6.6.1636.6.163
6.1≥ 5.16.0, < 6.1.1936.1.193
5.x≥ 5.11.0, < 5.15.2265.15.226
5.10≥ 4.13.0, < 5.10.2755.10.275

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Linuxother versions: not affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < 068e85ed81838a9d98c3018d532402dbd360fd1ffixed in 068e85ed81838a9d98c3018d532402dbd360fd1fgit
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < 35b3176839fa1842ae1a6e3b2bbbc37d34237614fixed in 35b3176839fa1842ae1a6e3b2bbbc37d34237614git
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < a5e1e36dace783c8d1688a299a3919f4d624217dfixed in a5e1e36dace783c8d1688a299a3919f4d624217dgit
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < ad78e2cd8b4dde0b8c52bb5227e09faf3f49b939fixed in ad78e2cd8b4dde0b8c52bb5227e09faf3f49b939git
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < e7a5cea8804f1210fe45c3a0281b11943c58553ffixed in e7a5cea8804f1210fe45c3a0281b11943c58553fgit
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < f3e503a31d3cfdc8fae1baeb0ad5ba8471ceea9dfixed in f3e503a31d3cfdc8fae1baeb0ad5ba8471ceea9dgit
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < 523eb58df5c11531a99f2e75d08e10f20cc28565fixed in 523eb58df5c11531a99f2e75d08e10f20cc28565git
    • ≥ 52e26d77b8b3de2e9ed6c7126f68e04cad5fe852, < a91d9346a70b68f77884cba9d9ec3b70f96bf9d2fixed in a91d9346a70b68f77884cba9d9ec3b70f96bf9d2git
  • Linuxother versions: affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • = 4.13no fix stated

    Not affected < 4.13 · ≥ 5.10.275, ≤ 5.10.* · ≥ 5.15.226, ≤ 5.15.* · ≥ 6.1.193, ≤ 6.1.* · ≥ 6.6.163, ≤ 6.6.* · ≥ 6.12.117, ≤ 6.12.* · ≥ 6.18.63, ≤ 6.18.*

    2 more version lines in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-30

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • linuxDebian:14all versions · fixed in 7.3.4-1
  • linuxDebian:13all versions · fixed in 6.12.117-1
  • linuxDebian:12all versions · no fixed version listed

Full record on NVD

Fix

  1. Update Linux kernel to 7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226 · 5.10.275

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-11-30
  • CNACVSS 3.17.82026-12-01
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2026-11-30
Last modified
2026-11-30
NVD status
Received

Frequently asked questions

What is CVE-2026-138921?

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.

Is CVE-2026-138921 actively exploited?

Active exploitation of CVE-2026-138921 has not been confirmed.

What is the CVSS score for CVE-2026-138921?

CVE-2026-138921 has a CVSS v3 base score of 7.8 (High severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record