# CVE-2026-138921

- Bağlantı: https://www.allsafe.com.tr/cve-2026-138921/
- Yayımlanma: 2026-11-30T17:17:51+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-138921)
