Linux kernelのRSA署名処理に脆弱性、メモリ範囲外への書き込みのおそれ
Summary
Linux kernelのRSA署名処理(rsassa-pkcs1)で、極端に短い鍵を使った署名時にメモリの範囲外へ書き込まれるおそれがあります。影響を受けるのは4.5.0以降6.18.65より前、および6.19.0以降7.3.6より前のカーネルで、修正版は6.18.65と7.3.6です。修正版への更新を優先してください。
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のRSA署名処理(rsassa-pkcs1)で、極端に短い鍵を使った署名時にメモリの範囲外へ書き込まれるおそれがあります。影響を受けるのは4.5.0以降6.18.65より前、および6.19.0以降7.3.6より前のカーネルで、修正版は6.18.65と7.3.6です。修正版への更新を優先してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 4.5.0, < 6.18.65→ 6.18.65 ≥ 6.19.0, < 7.3.6→ 7.3.6 |
6.18.65 7.3.6 |
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-139706 linux-lts No fixed version in this record
- Debian DEBIAN-CVE-2026-139706 linux Fix available
- Ubuntu UBUNTU-CVE-2026-139706 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: rsassa-pkcs1 - reject undersized keys when signing
rsassa_pkcs1_sign() subtracts 11 from the unsigned key size before
checking that the key is large enough for PKCS#1 v1.5 padding:
if (slen + hash_prefix->size > ctx->key_size - 11)
return -EOVERFLOW;
If the RSA modulus is shorter than 11 bytes, the subtraction wraps.
With a one-byte key and hash=none, the padding memset() writes past
the output buffer.
KASAN reports:
BUG: KASAN: slab-out-of-bounds in rsassa_pkcs1_sign+0x1ad/0x3b0
Write of size 4294967294 at addr ...
The buggy address is located 0 bytes to the right of
allocated 1-byte region [...]
Reject keys shorter than the minimum encoded message size.
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 github.com