{"api_version":"1","generated_at":"2026-12-03T13:40:16+00:00","cve":"CVE-2026-143113","urls":{"html":"https://cve.report/CVE-2026-143113","api":"https://cve.report/api/cve/CVE-2026-143113.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143113","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143113"},"summary":{"title":"crypto: caam - reject overlong RSA CRT parameters","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: caam - reject overlong RSA CRT parameters\n\ncaam_read_rsa_crt() right-aligns dP, dQ, and qInv in buffers sized\nfrom the corresponding prime. rsa_parse_priv_key() only bounds these\nintegers against n, so a malformed key can provide, for example, a\ntwo-byte dP with a one-byte p. dstlen - nbytes then underflows and\nmemcpy() writes outside the allocation during set_priv_key(). KASAN\nreports a slab-out-of-bounds write in caam_read_rsa_crt().\n\nReject empty or overlong CRT parameters after stripping leading zeros.\nqInv is consumed by CAAM as a p-sized value, so size it from p rather\nthan q to match the DMA mapping in set_rsa_priv_f3_pdb(). Let the\ntop-level key cleanup handle partial form-3 allocations and return the\nspecific error to the caller.\n\nAlso test nbytes before dereferencing it while stripping zeros, so an\nall-zero integer does not read one byte beyond its input.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:17:43","updated_at":"2026-12-03 10:17:43"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/433f6e7377f62a16287a2720a76e70f56b31b5ba","name":"https://git.kernel.org/stable/c/433f6e7377f62a16287a2720a76e70f56b31b5ba","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c1bb0e19f4a96d26f3bc5033defd4934ef5c4521","name":"https://git.kernel.org/stable/c/c1bb0e19f4a96d26f3bc5033defd4934ef5c4521","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/828c3b265b6df877dced3dde56ea41daa2e6181e","name":"https://git.kernel.org/stable/c/828c3b265b6df877dced3dde56ea41daa2e6181e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/49915365ba3f6bb99f79bf81052166ea3b1e1cf6","name":"https://git.kernel.org/stable/c/49915365ba3f6bb99f79bf81052166ea3b1e1cf6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143113","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143113","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 433f6e7377f62a16287a2720a76e70f56b31b5ba git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 c1bb0e19f4a96d26f3bc5033defd4934ef5c4521 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 49915365ba3f6bb99f79bf81052166ea3b1e1cf6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 828c3b265b6df877dced3dde56ea41daa2e6181e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.13","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/crypto/caam/caampkc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"433f6e7377f62a16287a2720a76e70f56b31b5ba","status":"affected","version":"4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2","versionType":"git"},{"lessThan":"c1bb0e19f4a96d26f3bc5033defd4934ef5c4521","status":"affected","version":"4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2","versionType":"git"},{"lessThan":"49915365ba3f6bb99f79bf81052166ea3b1e1cf6","status":"affected","version":"4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2","versionType":"git"},{"lessThan":"828c3b265b6df877dced3dde56ea41daa2e6181e","status":"affected","version":"4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/crypto/caam/caampkc.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.13"},{"lessThan":"4.13","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.120","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"4.13","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"4.13","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: caam - reject overlong RSA CRT parameters\n\ncaam_read_rsa_crt() right-aligns dP, dQ, and qInv in buffers sized\nfrom the corresponding prime. rsa_parse_priv_key() only bounds these\nintegers against n, so a malformed key can provide, for example, a\ntwo-byte dP with a one-byte p. dstlen - nbytes then underflows and\nmemcpy() writes outside the allocation during set_priv_key(). KASAN\nreports a slab-out-of-bounds write in caam_read_rsa_crt().\n\nReject empty or overlong CRT parameters after stripping leading zeros.\nqInv is consumed by CAAM as a p-sized value, so size it from p rather\nthan q to match the DMA mapping in set_rsa_priv_f3_pdb(). Let the\ntop-level key cleanup handle partial form-3 allocations and return the\nspecific error to the caller.\n\nAlso test nbytes before dereferencing it while stripping zeros, so an\nall-zero integer does not read one byte beyond its input."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:19:27.623Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/433f6e7377f62a16287a2720a76e70f56b31b5ba"},{"url":"https://git.kernel.org/stable/c/c1bb0e19f4a96d26f3bc5033defd4934ef5c4521"},{"url":"https://git.kernel.org/stable/c/49915365ba3f6bb99f79bf81052166ea3b1e1cf6"},{"url":"https://git.kernel.org/stable/c/828c3b265b6df877dced3dde56ea41daa2e6181e"}],"title":"crypto: caam - reject overlong RSA CRT parameters","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143113","datePublished":"2026-12-03T09:19:27.623Z","dateReserved":"2026-12-03T03:10:28.350Z","dateUpdated":"2026-12-03T09:19:27.623Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:17:43","lastModifiedDate":"2026-12-03 10:17:43","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143113","Ordinal":"1","Title":"crypto: caam - reject overlong RSA CRT parameters","CVE":"CVE-2026-143113","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143113","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: caam - reject overlong RSA CRT parameters\n\ncaam_read_rsa_crt() right-aligns dP, dQ, and qInv in buffers sized\nfrom the corresponding prime. rsa_parse_priv_key() only bounds these\nintegers against n, so a malformed key can provide, for example, a\ntwo-byte dP with a one-byte p. dstlen - nbytes then underflows and\nmemcpy() writes outside the allocation during set_priv_key(). KASAN\nreports a slab-out-of-bounds write in caam_read_rsa_crt().\n\nReject empty or overlong CRT parameters after stripping leading zeros.\nqInv is consumed by CAAM as a p-sized value, so size it from p rather\nthan q to match the DMA mapping in set_rsa_priv_f3_pdb(). Let the\ntop-level key cleanup handle partial form-3 allocations and return the\nspecific error to the caller.\n\nAlso test nbytes before dereferencing it while stripping zeros, so an\nall-zero integer does not read one byte beyond its input.","Type":"Description","Title":"crypto: caam - reject overlong RSA CRT parameters"}]}}}