crypto: rsassa-pkcs1 - reject undersized keys when verifying
Summary
| CVE | CVE-2026-142928 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 04:18:33 UTC |
| Updated | 2026-12-03 04:18:33 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
crypto: rsassa-pkcs1 - reject undersized keys when verifying
rsassa_pkcs1_verify() accepts any nonzero key size.
With a one-byte key and a zero RSA result, the leading-zero handling
decrements dst_len to zero and advances out_buf past the allocation.
The next out_buf[0] access reads out of bounds.
KASAN reports:
BUG: KASAN: slab-out-of-bounds in rsassa_pkcs1_verify+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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6 59d6120af151abbab94f674f8bfb0292ed822ff2 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6 9c35f7d27ef103ce8f3ec60bcfc39a138cca7ea7 git |
Not specified |
| CNA |
Linux |
Linux |
affected 3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6 364e520095b26fa551a8e92f52119d0f38a4177b git |
Not specified |
| CNA |
Linux |
Linux |
affected 4.5 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 4.5 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.65 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.6 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/364e520095b26fa551a8e92f52119d0f38a4177b |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/59d6120af151abbab94f674f8bfb0292ed822ff2 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/9c35f7d27ef103ce8f3ec60bcfc39a138cca7ea7 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.