CVE-2026-143113 (GCVE-0-2026-143113)

Vulnerability from cvelistv5 – Published: 2026-12-03 09:19 – Updated: 2026-12-04 03:29
VLAI
Title
crypto: caam - reject overlong RSA CRT parameters
Summary
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.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 , < 433f6e7377f62a16287a2720a76e70f56b31b5ba (git)
Affected: 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 , < c1bb0e19f4a96d26f3bc5033defd4934ef5c4521 (git)
Affected: 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 , < 49915365ba3f6bb99f79bf81052166ea3b1e1cf6 (git)
Affected: 4a651b122adb8d3a9cb1c5dddfd63e708ee9bdd2 , < 828c3b265b6df877dced3dde56ea41daa2e6181e (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.13
Unaffected: 0 , < 4.13 (semver)
Unaffected: 6.12.120 , ≤ 6.12.* (semver)
Unaffected: 6.18.66 , ≤ 6.18.* (semver)
Unaffected: 7.3.7 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc3 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "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() -\u003e software_key_query() -\u003e caam_rsa_set_priv_key() -\u003e 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 \u003e 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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-04T03:29:20.424Z",
        "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-04T03:29:20.424Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-143113",
      "date": "2026-12-04",
      "epss": "0.00165",
      "percentile": "0.0591"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-04T01:13:20.000Z",
      "cve": "CVE-2026-143113",
      "id": "msrc_CVE-2026-143113",
      "initial_release_date": "2026-12-03T18:51:52.000Z",
      "product_status:known_affected": "1",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "crypto: caam - reject overlong RSA CRT parameters",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-143113.json",
      "version": "2"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "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"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "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."
          }
        ],
        "id": "CVE-2026-143113",
        "lastModified": "2026-12-04T04:17:37.400",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "HIGH",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.0,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.0,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-12-03T10:17:43.583",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/433f6e7377f62a16287a2720a76e70f56b31b5ba"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/49915365ba3f6bb99f79bf81052166ea3b1e1cf6"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/828c3b265b6df877dced3dde56ea41daa2e6181e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c1bb0e19f4a96d26f3bc5033defd4934ef5c4521"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-12-04T03:57:00+00:00",
      "cve": "CVE-2026-143113",
      "id": "CVE-2026-143113",
      "initial_release_date": "2026-12-03T09:19:27.623000+00:00",
      "product_status:known_affected": "189",
      "product_status:known_not_affected": "91",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Out-of-bounds write via malformed RSA CRT key parameters in CAAM driver",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-143113.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.