CVE-2026-142928: crypto: rsassa-pkcs1 - reject undersized keys when verifying
In the Linux kernel, the following vulnerability has been resolved:
crypto: rsassa-pkcs1 - reject undersized keys when verifying
rsassapkcs1verify() accepts any nonzero key size.
With a one-byte key and a zero RSA result, the leading-zero handling decrements dstlen to zero and advances outbuf past the allocation. The next outbuf[0] access reads out of bounds.
KASAN reports:
BUG: KASAN: slab-out-of-bounds in rsassapkcs1verify+0x79d/0x900 Read of size 1 at addr ... The buggy address is located 0 bytes to the right of allocated 73-byte region [...]
Reject keys shorter than the minimum PKCS#1 v1.5 encoded message size.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
During RSASSA-PKCS1-v1.5 verification, reject keys shorter than the minimum encoded-message size.