CVE-2026-139706: crypto: rsassa-pkcs1 - reject undersized keys when signing

Published Nov 30, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Before PKCS#1 v1.5 signing, reject requests when `slen + hash_prefix->size > ctx->key_size - 11` and return `-EOVERFLOW`.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:37 PM
Data Sourced
via MITRE·01:37 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the out-of-bounds write?

An RSA signing operation must use rsassa_pkcs1_sign() with an RSA modulus shorter than 11 bytes. The described proof of trigger uses a one-byte key with hash=none, causing the PKCS#1 v1.5 padding write to exceed the one-byte output buffer.

2

How can I determine whether a system is exposed?

Systems are exposed if their Linux kernel contains the vulnerable rsassa_pkcs1_sign() logic and can be made to sign using an RSA key whose modulus is shorter than the minimum PKCS#1 v1.5 encoded-message size. The issue is fixed by rejecting such undersized keys before the padding-length calculation.

3

What is the impact of successful exploitation?

Successful triggering causes a slab out-of-bounds write in the kernel during RSA PKCS#1 v1.5 signing. The reported example attempts a very large write beyond a one-byte allocated region.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203