CVE-2026-138921

HighCVSS 7.8/10Last modified Dec 1, 2026

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138922In the Linux kernel, the following vulnerability has been resolved: crypto: sa2ul - Fix HMAC key preparation sa_prepare_iopads() has multiCVE-2026-138923In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix NULL deref on events for uninitialized controls ACVE-2026-138924In the Linux kernel, the following vulnerability has been resolved: pps: generators: stop the generator on unregister Both generator driveCVE-2026-138925In the Linux kernel, the following vulnerability has been resolved: dm-writecache: fix REQ_FUA processing REQ_FUA did not flush metadata iCVE-2026-1389267.1In the Linux kernel, the following vulnerability has been resolved: dm: fix a bug in dm_accept_partial_bio dm-writecache doesn't work in pCVE-2026-138927In the Linux kernel, the following vulnerability has been resolved: media: rtl28xxu: fix SDR platform device leak rtl2832u_tuner_attach() CVE-2026-1389287.0In the Linux kernel, the following vulnerability has been resolved: media: tw686x: fix V4L2 device lifetime on probe failure tw686x_video_CVE-2026-138929In the Linux kernel, the following vulnerability has been resolved: media: mali-c55: Check the parameters buffer address before copying maCVE-2026-138936.5Insufficient validation of untrusted input in WebUI in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to leak cross-origin dCVE-2026-138930In the Linux kernel, the following vulnerability has been resolved: media: mali-c55: Free the ISP control handler on unregister mali_c55_iCVE-2026-138931In the Linux kernel, the following vulnerability has been resolved: media: v4l2-isp: reject zero-sized parameter blocks v4l2_isp_params_vaCVE-2026-138932In the Linux kernel, the following vulnerability has been resolved: staging: rtl8723bs: fix RX buffer OOB write from device-reported length
CVE-2026-138921: High severity, CVSS 7.8 | Vulnix