AZL-117298: CVE-2026-139706 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
crypto: rsassa-pkcs1 - reject undersized keys when signing
rsassapkcs1sign() subtracts 11 from the unsigned key size before checking that the key is large enough for PKCS#1 v1.5 padding:
if (slen + hashprefix->size > ctx->keysize - 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 rsassapkcs1sign+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.
Affected Software
Event History
Frequently Asked Questions
What must an attacker control to trigger the out-of-bounds write?
They need to cause rsassa_pkcs1_sign() to sign using an RSA modulus shorter than 11 bytes. The reported trigger uses a one-byte key with hash=none, causing unsigned arithmetic to wrap and padding to write beyond the output buffer.
What is the impact of using an undersized RSA key for signing?
The signing operation can perform a slab out-of-bounds write. KASAN reports a write extending past a one-byte allocated region.
What mitigation is available if the fixed kernel package cannot be deployed immediately?
Do not permit RSA signing with keys shorter than the minimum encoded message size, and in particular reject RSA moduli shorter than 11 bytes before invoking rsassa_pkcs1_sign().