PT-2026-162781

CVE-2026-138921

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

CVSS 3.1
7.8
High
MetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Exploitability
Fix
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾