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

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-30T13:37:13.374Z
- Modified: 2026-12-01T06:17:47.630Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6 before 6b3a96beef8097450fefe645cfb2c6163ad52041; from 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6 before ec2a9b7252fce1d140445d24ac4557ba34bea244; from 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6 before 4cf50332b5384ea13f6f896d5cf84e05b5b6484a; 4.5 (not affected: before 4.5; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/6b3a96beef8097450fefe645cfb2c6163ad52041>
- <https://git.kernel.org/stable/c/ec2a9b7252fce1d140445d24ac4557ba34bea244>
- <https://git.kernel.org/stable/c/4cf50332b5384ea13f6f896d5cf84e05b5b6484a>

## Sources

- CVE List: [CVE-2026-139706](https://www.cve.org/CVERecord?id=CVE-2026-139706), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-139706](https://nvd.nist.gov/vuln/detail/CVE-2026-139706), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-139706 · Whole record: https://cve.day/CVE-2026-139706.json · Rebuilt by cve.day 2026-12-01T06:32:24.637Z
