GHSA-XMW7-C8H8-F595

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

crypto: asymmetric_keys - fix OOB read in pefile_parse_binary

pefile_parse_binary() reads the size field of the certificate table's data-directory entry, which sits at fixed index 4 of the PE optional header's data directory:

ctx->certs_size = ddir->certs.size;

but nothing ensures index 4 is present. n_data_dirents (the untrusted NumberOfRvaAndSizes) is only upper-bounded against header_size and may be 0, and header_size need only satisfy cursor < header_size < datalen. A crafted PE with n_data_dirents = 0 and a tiny header_size therefore causes the ddir->certs.size read to land past the end of the image (CWE-125). The chkaddr() that bounds the certificate blob runs only after this read.

verify_pefile_signature() is reached from kexec_file_load() (the lockdown/secure-boot enforced PE-image signature path), and the image is parsed before its signature is checked. The trigger needs CAP_SYS_BOOT and the access is out-of-bounds read only (no write).

Require the certificate table's data-directory entry (index 4) to be present; the existing upper-bound check then keeps ddir->certs within [cursor, header_size).

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139757"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:08Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: asymmetric_keys - fix OOB read in pefile_parse_binary\n\npefile_parse_binary() reads the size field of the certificate table\u0027s\ndata-directory entry, which sits at fixed index 4 of the PE optional\nheader\u0027s data directory:\n\n\tctx-\u003ecerts_size = ddir-\u003ecerts.size;\n\nbut nothing ensures index 4 is present. n_data_dirents (the untrusted\nNumberOfRvaAndSizes) is only upper-bounded against header_size and may be\n0, and header_size need only satisfy cursor \u003c header_size \u003c datalen. A\ncrafted PE with n_data_dirents = 0 and a tiny header_size therefore causes\nthe ddir-\u003ecerts.size read to land past the end of the image (CWE-125). The\nchkaddr() that bounds the certificate blob runs only after this read.\n\nverify_pefile_signature() is reached from kexec_file_load() (the\nlockdown/secure-boot enforced PE-image signature path), and the image is\nparsed before its signature is checked. The trigger needs CAP_SYS_BOOT and\nthe access is out-of-bounds read only (no write).\n\nRequire the certificate table\u0027s data-directory entry (index 4) to be\npresent; the existing upper-bound check then keeps ddir-\u003ecerts within\n[cursor, header_size).",
  "id": "GHSA-xmw7-c8h8-f595",
  "modified": "2026-11-30T15:32:43Z",
  "published": "2026-11-30T15:32:43Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139757"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/27adcebae626ba3c0a7cc9b6491ff78346517acb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/37d550172c2d3cdb3a5ace3e6cb0625967d86349"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3937b14049f4117c152a4b0e86fb39a3737489bf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7bece4f231578ea5214c27026f383681bee57d4c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8d2dd81b8591953e6defb28f5bd914feeaf2761b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a6ecef48786cd4e21854ff431cb2a1432240c0c3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c1dedf447161ab4942c25b1e099e1986fe49791a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c77c0001457161d8ff4f9b457bbfe841ebb38cc2"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



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.