{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-143113",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.350Z",
        "datePublished": "2026-12-03T09:19:27.623Z",
        "dateUpdated": "2026-12-04T03:29:20.424Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-04T03:29:20.424Z"
            },
            "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."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The overlong dP/dQ/qInv bytes are the PKCS#8 blob passed to add_key(); keyctl_pkey_query() then calls query_asymmetric_key() -> software_key_query() -> caam_rsa_set_priv_key() -> caam_read_rsa_crt(). No remote protocol message carries those integers, and AF_ALG has no akcipher socket.\nAC:H - caam_read_rsa_crt() underflows on every key whose stripped dP exceeds stripped p, but that key is only installed by pkcs8_key_preparse(), the sole writer of key_is_private. CONFIG_PKCS8_PRIVATE_KEY_PARSER defaults off, is not in upstream defconfigs, and pkcs8_key_parser.ko has no alias, so the attacker cannot load it.\nPR:L - Once the parser is present, add_key() to KEY_SPEC_SESSION_KEYRING needs only KEY_NEED_WRITE, and keyctl_pkey_params_get() looks the new key up with KEY_NEED_SEARCH. key_create_or_update() grants the possessor KEY_POS_SEARCH; no CAP_SYS_ADMIN check is on this path.\nUI:N - The same process calls add_key() with the malformed RSAPrivateKey and keyctl_pkey_query(), which reaches software_key_query(). No other user has to mount, open, or approve anything.\nS:U - The bad memcpy in caam_read_rsa_crt() corrupts the kernel slab of the same kernel that handled the keyctl. It does not cross a guest/host or IOMMU boundary; CAAM is only selected later as the rsa provider.\nC:H - When nbytes > dstlen, memcpy writes the attacker-chosen CRT integer for (nbytes-dstlen) bytes immediately before the kzalloc(dstlen) object. That controlled slab underflow can overwrite a neighboring object or freelist pointer and be turned into an arbitrary read.\nI:H - caam_read_rsa_crt() does memcpy(dst + (dstlen - nbytes), ptr, nbytes) with dstlen equal to stripped p (or q) and nbytes equal to stripped dP/dQ/qInv. rsa_get_dp() only bounds those integers by n, so the caller chooses both the offset and the bytes written.\nA:H - The commit records a KASAN slab-out-of-bounds write in caam_read_rsa_crt(). A write that leaves the slab page faults immediately, and a shorter one corrupts the freelist so a later caam_rsa_free_key() or allocation oopses the kernel."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/crypto/caam/caampkc.c"
                    ],
                    "versions": [
                        {
                            "version": "4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2",
                            "lessThan": "433f6e7377f62a16287a2720a76e70f56b31b5ba",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2",
                            "lessThan": "c1bb0e19f4a96d26f3bc5033defd4934ef5c4521",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2",
                            "lessThan": "49915365ba3f6bb99f79bf81052166ea3b1e1cf6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2",
                            "lessThan": "828c3b265b6df877dced3dde56ea41daa2e6181e",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/crypto/caam/caampkc.c"
                    ],
                    "versions": [
                        {
                            "version": "4.13",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.13",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc3",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.4-rc3"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}