CVE-2026-100027

HighCVSS 7.8/10Last modified Dec 1, 2026

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Dec 1, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-100028In the Linux kernel, the following vulnerability has been resolved: hwmon: (corsair-cpro) Make wait_input_report_lock IRQ safe ccp_raw_eveCVE-2026-100029In the Linux kernel, the following vulnerability has been resolved: hwmon: (sht4x) Fix jiffies wraparound in heater-ready check sht4x storCVE-2026-100037.5Use after free in Views in Google Chrome prior to 148.0.7778.216 allowed a remote attacker who convinced a user to engage in specific UI gesCVE-2026-1000307.8In the Linux kernel, the following vulnerability has been resolved: spi: ch341: handle transfers without a TX or RX buffer ch341_transfer_CVE-2026-1000317.0In the Linux kernel, the following vulnerability has been resolved: RDMA/uverbs: Fix uobject leak in DMABUF release uverbs_dmabuf_release(CVE-2026-1000327.0In the Linux kernel, the following vulnerability has been resolved: alpha: do not skip TLB shootdown IPIs for kthread-borrowed mms flush_tCVE-2026-1000337.8In the Linux kernel, the following vulnerability has been resolved: alpha: invalidate the local context in flush_tlb_mm() flush_tlb_mm() hCVE-2026-1000347.8In the Linux kernel, the following vulnerability has been resolved: alpha: fix the local TLB invalidate in the UP flush_tlb_page() The uniCVE-2026-1000357.0In the Linux kernel, the following vulnerability has been resolved: alpha: fix the local TLB invalidate in flush_tlb_page() flush_tlb_pageCVE-2026-1000367.8In the Linux kernel, the following vulnerability has been resolved: alpha: invalidate the local context in flush_tlb_page() When the targeCVE-2026-1000377.8In the Linux kernel, the following vulnerability has been resolved: alpha: only use a targeted tbi() when the target mm is really current CVE-2026-1000387.8In the Linux kernel, the following vulnerability has been resolved: alpha: run check_mmu_context() from finish_arch_post_lock_switch() che
CVE-2026-100027: High severity, CVSS 7.8 | Vulnix