CVE-2026-143113

Source
https://cve.org/CVERecord?id=CVE-2026-143113
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143113.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143113
Downstream
Published
2026-12-03T09:19:27Z
Modified
2026-12-03T11:01:18Z
Summary
crypto: caam - reject overlong RSA CRT parameters
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143113.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2
Fixed
433f6e7377f62a16287a2720a76e70f56b31b5ba
Fixed
c1bb0e19f4a96d26f3bc5033defd4934ef5c4521
Fixed
49915365ba3f6bb99f79bf81052166ea3b1e1cf6
Fixed
828c3b265b6df877dced3dde56ea41daa2e6181e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143113.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.13.0
Fixed
6.12.120
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.66
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143113.json"