PT-2026-162609

CVE-2026-100027

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾