1. Archivio CVE
  2. 2026
  3. CVE-2026-138921

CVE-2026-138921

7.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 – Alta

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel >= 4.13 < 6.6.163 –
linux linux kernel >= 4.13 < 6.12.117 –
linux linux kernel >= 4.13 < 6.18.63 –
linux linux kernel >= 4.13 < 7.3.4 –
linux linux kernel >= 4.13 < 7.4-rc1 –
linux linux kernel >= 4.13 < 5.10.275 –
linux linux kernel >= 4.13 < 5.15.226 –
linux linux kernel >= 4.13 < 6.1.193 –
Tutte le 24.148 vulnerabilità di Linux Kernel