Security mailing lists by PureSourceCode

CVE-2026-139706

HIGH 7.0CVSS 3.1

crypto: rsassa-pkcs1 - reject undersized keys when signing

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.

Published
30 Nov 2026
Last modified
1 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) CVSS 3.1 HIGH 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6, < 6b3a96beef8097450fefe645cfb2c6163ad52041; >= 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6, < ec2a9b7252fce1d140445d24ac4557ba34bea244; >= 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6, < 4cf50332b5384ea13f6f896d5cf84e05b5b6484a 6b3a96beef8097450fefe645cfb2c6163ad52041, ec2a9b7252fce1d140445d24ac4557ba34bea244, 4cf50332b5384ea13f6f896d5cf84e05b5b6484a
CVE List Linux Linux = 4.5

References

History

  • 1 Dec 2026 06:48 UTC · NVD: scored 7.0
  • 30 Nov 2026 14:45 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 13:58 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.