Linux kernel stack corruption in ELF build ID parsing
- Exploited
- No known exploitation
- Fix
- No fix listed
- Who is exposed
- Specific setups only
Summary
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.
Who should check
Teams running 32-bit Linux kernels, including those using perf build IDs or BPF build-id stack maps.
“On a 32-bit kernel, parsing the build ID of a crafted ELF file can copy”
What to do
Check whether your setup matches what the bug needs.
Linux kernel running as a 32-bit kernel A perf event with build_id enabled is open while the file is mappedWorkaround: 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.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
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"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux6.12
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7.8/10CVSS 7.8
- No patch5/5No patch listed yet
What would change the score
- Would score about 88 if added to CISA KEV
- Would score about 83 if CISA's SSVC rates exploitation active
- Would score about 48 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-100027 |
| Record | NVD · CVE-2026-100027 |
| Other links 4 | |
| Link | git.kernel.org · stable/c/3e385811176cd7968b0ad687a4118e90632018f4 |
| Link | git.kernel.org · stable/c/78b8738d6656acec8a0d812bf826a9a412f16971 |
| Link | git.kernel.org · stable/c/34bd3e5f44a327e15c1a6513bae8267bda19b43f |
| Link | git.kernel.org · stable/c/0007654a7bf13ef2a19afd398bbc6507087f19fd |
Questions about CVE-2026-100027
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: cve.now feed data
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: git.kernel.org
Which versions are affected by CVE-2026-100027?
Linux: version 6.12.
Source: cve.now feed data
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: git.kernel.org
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: git.kernel.org
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: git.kernel.org
Related
- CVE-2026-139801KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
- CVE-2026-139799mm/shmem: hold off eviction in shmem_writeout()
- CVE-2026-139792ALSA: pcm: Prevent O_APPEND open on OSS streams
- CVE-2026-139788cipso: stop modifying live ip_options_rcu
- CVE-2026-139786mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
- CVE-2026-1398009p/xen: drain response work after unbinding IRQ
No corrections so far. Something wrong on this page? Report an error.