Security mailing lists by PureSourceCode

CVE-2026-143113

HIGH 7.0CVSS 3.1

crypto: caam - reject overlong RSA CRT parameters

In the Linux kernel, the following vulnerability has been resolved:

crypto: caam - reject overlong RSA CRT parameters

caam_read_rsa_crt() right-aligns dP, dQ, and qInv in buffers sized
from the corresponding prime. rsa_parse_priv_key() only bounds these
integers against n, so a malformed key can provide, for example, a
two-byte dP with a one-byte p. dstlen - nbytes then underflows and
memcpy() writes outside the allocation during set_priv_key(). KASAN
reports a slab-out-of-bounds write in caam_read_rsa_crt().

Reject empty or overlong CRT parameters after stripping leading zeros.
qInv is consumed by CAAM as a p-sized value, so size it from p rather
than q to match the DMA mapping in set_rsa_priv_f3_pdb(). Let the
top-level key cleanup handle partial form-3 allocations and return the
specific error to the caller.

Also test nbytes before dereferencing it while stripping zeros, so an
all-zero integer does not read one byte beyond its input.

Published
3 Dec 2026
Last modified
4 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
CVE List Linux 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 >= 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2, < 433f6e7377f62a16287a2720a76e70f56b31b5ba; >= 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2, < c1bb0e19f4a96d26f3bc5033defd4934ef5c4521; >= 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2, < 49915365ba3f6bb99f79bf81052166ea3b1e1cf6; >= 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2, < 828c3b265b6df877dced3dde56ea41daa2e6181e 433f6e7377f62a16287a2720a76e70f56b31b5ba, c1bb0e19f4a96d26f3bc5033defd4934ef5c4521, 49915365ba3f6bb99f79bf81052166ea3b1e1cf6, 828c3b265b6df877dced3dde56ea41daa2e6181e
CVE List Linux Linux = 4.13

References

History

  • 4 Dec 2026 05:56 UTC · NVD: scored 7.0
  • 4 Dec 2026 03:56 UTC · CVE List: scored 7.0
  • 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 10:07 UTC · CVE List: first stored (published 3 Dec 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.