Linux Kernelのcaam暗号処理で二重解放の脆弱性
Summary
Linux KernelのCAAM暗号ドライバーでRSA秘密鍵の設定時に二重解放が起きる脆弱性で、CVSSは7.8です。影響を受けるのは5.10.275より前、5.15.226より前、6.1.193より前、6.6.163より前、6.12.117より前、6.18.63より前、7.3.4より前などの各系統です。各系統の修正版を適用してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Linux KernelのCAAM暗号ドライバーでRSA秘密鍵の設定時に二重解放が起きる脆弱性で、CVSSは7.8です。影響を受けるのは5.10.275より前、5.15.226より前、6.1.193より前、6.6.163より前、6.12.117より前、6.18.63より前、7.3.4より前などの各系統です。各系統の修正版を適用してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 4.13.0, < 5.10.275→ 5.10.275 ≥ 5.11.0, < 5.15.226→ 5.15.226 ≥ 5.16.0, < 6.1.193→ 6.1.193 ≥ 6.2.0, < 6.6.163→ 6.6.163 ≥ 6.7.0, < 6.12.117→ 6.12.117 ≥ 6.13.0, < 6.18.63→ 6.18.63 ≥ 6.19.0, < 7.3.4→ 7.3.4 |
5.10.275 5.15.226 6.1.193 6.6.163 6.12.117 6.18.63 7.3.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-138921 linux-lts Fix available
- Debian DEBIAN-CVE-2026-138921 linux Fix available
- Ubuntu UBUNTU-CVE-2026-138921 linux-xilinx-zynqmp, linux-xilinx, linux-vmware +166 more No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com