GHSA-XX6R-WV2Q-R74C
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-12-01 06:31In the Linux kernel, the following vulnerability has been resolved:
lib/buildid: reject file offsets that do not fit in pgoff_t
On a 32-bit kernel, parsing the build ID of a crafted ELF file can copy far more than the intended bytes into a 64-byte on-stack buffer in __build_id_parse(), corrupting the stack of whatever context fetches the build ID. This might be reachable without privilege: perf records a build ID for PERF_RECORD_MMAP2 on the no-fault path when a process mmaps its own file (build_id_parse_nofault() from perf_event_mmap()), and BPF build-id stack maps do the same.
freader_get_folio() turns a 64-bit file offset into a page cache index with file_off >> PAGE_SHIFT and passes it to filemap_get_folio(). pgoff_t is unsigned long, 32-bit on a 32-bit kernel, so an ELF64 e_phoff of 2^44 + k * PAGE_SIZE truncates to index k. filemap_get_folio() returns the cached folio at index k, whose folio_pos() is far below the requested file_off. In freader_fetch() the folio does not contain file_off, so the "crossing folio boundaries" path computes part_sz = folio_off + folio_sz - file_off as a large u64 (file_off is much larger), and the following memcpy() truncates it to size_t and copies a page into the 64-byte buffer. On a 64-bit kernel the index is not truncated, the folio is not cached and the fetch returns -EFAULT, so only 32-bit kernels are affected.
Reject a file offset that cannot be represented as a page cache index before the lookup, so such a file fails the build ID parse cleanly as it already does on 64-bit.
Reproduced on i386 under QEMU with CONFIG_STACKPROTECTOR_STRONG: mmapping a crafted ELF (ELFCLASS64, e_phoff = 2^44) while a perf event with attr.build_id is open panics with "stack-protector: Kernel stack is corrupted in: __build_id_parse"; with this patch the parse returns -EFAULT and the mmap completes cleanly. Built for i386 with W=1, no new warnings.
{
"affected": [],
"aliases": [
"CVE-2026-100027"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:17:18Z",
"severity": "HIGH"
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nlib/buildid: reject file offsets that do not fit in pgoff_t\n\nOn a 32-bit kernel, parsing the build ID of a crafted ELF file can copy\nfar more than the intended bytes into a 64-byte on-stack buffer in\n__build_id_parse(), corrupting the stack of whatever context fetches the\nbuild ID. This might be reachable without privilege: perf records a build ID\nfor PERF_RECORD_MMAP2 on the no-fault path when a process mmaps its own file\n(build_id_parse_nofault() from perf_event_mmap()), and BPF build-id stack\nmaps do the same.\n\nfreader_get_folio() turns a 64-bit file offset into a page cache index\nwith file_off \u003e\u003e PAGE_SHIFT and passes it to filemap_get_folio().\npgoff_t is unsigned long, 32-bit on a 32-bit kernel, so an ELF64 e_phoff\nof 2^44 + k * PAGE_SIZE truncates to index k. filemap_get_folio()\nreturns the cached folio at index k, whose folio_pos() is far below the\nrequested file_off. In freader_fetch() the folio does not contain\nfile_off, so the \"crossing folio boundaries\" path computes\npart_sz = folio_off + folio_sz - file_off as a large u64 (file_off is\nmuch larger), and the following memcpy() truncates it to size_t and\ncopies a page into the 64-byte buffer. On a 64-bit kernel the index is\nnot truncated, the folio is not cached and the fetch returns -EFAULT, so\nonly 32-bit kernels are affected.\n\nReject a file offset that cannot be represented as a page cache index\nbefore the lookup, so such a file fails the build ID parse cleanly as it\nalready does on 64-bit.\n\nReproduced on i386 under QEMU with CONFIG_STACKPROTECTOR_STRONG: mmapping\na crafted ELF (ELFCLASS64, e_phoff = 2^44) while a perf event with\nattr.build_id is open panics with \"stack-protector: Kernel stack is\ncorrupted in: __build_id_parse\"; with this patch the parse returns\n-EFAULT and the mmap completes cleanly. Built for i386 with W=1, no new\nwarnings.",
"id": "GHSA-xx6r-wv2q-r74c",
"modified": "2026-12-01T06:31:09Z",
"published": "2026-11-30T15:32:01Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-100027"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/0007654a7bf13ef2a19afd398bbc6507087f19fd"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/34bd3e5f44a327e15c1a6513bae8267bda19b43f"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/3e385811176cd7968b0ad687a4118e90632018f4"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/78b8738d6656acec8a0d812bf826a9a412f16971"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
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.
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
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.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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.