FKIE_CVE-2026-139337

Vulnerability from fkie_nvd - Published: 2026-11-30 14:18 - Updated: 2026-11-30 14:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: ima: reject a kexec buffer whose declared size exceeds the buffer ima_restore_measurement_list() parses the measurement list persisted across kexec. It computes the parse end directly from the blob: bufendp = buf + khdr->buffer_size; khdr->buffer_size is a u64 read straight from the persisted buffer. The only length checks in the function are size >= sizeof(*khdr), version == 1 and count -- none relates buffer_size to size, the actual buffer size the caller (ima_load_kexec_buffer()) obtained from the ima-kexec-buffer region. ima_parse_buf() bounds every field read to bufendp, so a blob whose internal buffer_size exceeds the real size makes the parse loop read past the end of the buffer (CWE-125). The buffer's memory range is validated against addressable RAM by commit cbf9c4b9617b ("of: check previous kernel's ima-kexec-buffer against memory bounds") and commit c5489d04337b ("x86/kexec: add a sanity check on previous kernel's ima kexec buffer"), but the blob's own declared size is never clamped to it. Reject a buffer_size larger than size before the loop. This is on the boot-time kexec-restore path (__init) and the buffer comes from the previous kernel, so triggering it requires control of the persisted buffer; it is an out-of-bounds read only.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "security/integrity/ima/ima_template.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "86d5ca8cd79fec82865b9b32a06f0c28e19062cf",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            },
            {
              "lessThan": "3d1660732042d4c2ae7795255141185372bce6e2",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            },
            {
              "lessThan": "afacba62cd4a6d5fbf1a2b44a8e201e6bc69401e",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            },
            {
              "lessThan": "3343fc0c5d3e6df67f7d09b5bb59982db03a5c1d",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            },
            {
              "lessThan": "9f867274b208d0830232f01ac26ef5a92f4ec0e4",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            },
            {
              "lessThan": "6d76d153afa3ac90701a23f5715bdb3648be2f7b",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            },
            {
              "lessThan": "0f33ef07be4121c87df3d5b2fa05609d743a4570",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            },
            {
              "lessThan": "ceb24c7052cc4649e3b52a51a7cca7dfe4896cec",
              "status": "affected",
              "version": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "security/integrity/ima/ima_template.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.10"
            },
            {
              "lessThan": "4.10",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.275",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "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\nima: reject a kexec buffer whose declared size exceeds the buffer\n\nima_restore_measurement_list() parses the measurement list persisted across\nkexec.  It computes the parse end directly from the blob:\n\n\tbufendp = buf + khdr-\u003ebuffer_size;\n\nkhdr-\u003ebuffer_size is a u64 read straight from the persisted buffer.  The\nonly length checks in the function are size \u003e= sizeof(*khdr), version == 1\nand count -- none relates buffer_size to size, the actual buffer size the\ncaller (ima_load_kexec_buffer()) obtained from the ima-kexec-buffer region.\nima_parse_buf() bounds every field read to bufendp, so a blob whose\ninternal buffer_size exceeds the real size makes the parse loop read past\nthe end of the buffer (CWE-125).\n\nThe buffer\u0027s memory range is validated against addressable RAM by\ncommit cbf9c4b9617b (\"of: check previous kernel\u0027s ima-kexec-buffer\nagainst memory bounds\") and commit c5489d04337b (\"x86/kexec: add a\nsanity check on previous kernel\u0027s ima kexec buffer\"), but the blob\u0027s\nown declared size is never clamped to it.  Reject a buffer_size larger\nthan size before the loop.\n\nThis is on the boot-time kexec-restore path (__init) and the buffer comes\nfrom the previous kernel, so triggering it requires control of the\npersisted buffer; it is an out-of-bounds read only."
    }
  ],
  "id": "CVE-2026-139337",
  "lastModified": "2026-11-30T14:18:58.590",
  "metrics": {},
  "published": "2026-11-30T14:18:58.590",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/0f33ef07be4121c87df3d5b2fa05609d743a4570"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/3343fc0c5d3e6df67f7d09b5bb59982db03a5c1d"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/3d1660732042d4c2ae7795255141185372bce6e2"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/6d76d153afa3ac90701a23f5715bdb3648be2f7b"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/86d5ca8cd79fec82865b9b32a06f0c28e19062cf"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/9f867274b208d0830232f01ac26ef5a92f4ec0e4"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/afacba62cd4a6d5fbf1a2b44a8e201e6bc69401e"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/ceb24c7052cc4649e3b52a51a7cca7dfe4896cec"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



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.