All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-100040: alpha: handle VM_FAULT_HWPOISON in do_page_fault()
@ 2026-11-30 13:23 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-30 13:23 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

alpha: handle VM_FAULT_HWPOISON in do_page_fault()

do_page_fault() handles VM_FAULT_OOM, VM_FAULT_SIGSEGV and
VM_FAULT_SIGBUS and then falls into BUG() for anything else in
VM_FAULT_ERROR. VM_FAULT_HWPOISON and VM_FAULT_HWPOISON_LARGE are in
that set, so a fault on a poisoned page takes down the kernel instead of
delivering a signal.

Alpha does not select ARCH_SUPPORTS_MEMORY_FAILURE, so the machine check
paths cannot produce these. UFFDIO_POISON can: it installs a poison PTE
marker without any memory failure support, and a subsequent access
returns VM_FAULT_HWPOISON. Registering an anonymous range with
userfaultfd, poisoning it and reading it back reliably hits the BUG():

  Kernel bug at arch/alpha/mm/fault.c:188
  poison(50809): Kernel Bug 1
  pc is at do_page_fault+0x4e8/0x550
  ra is at do_page_fault+0xfc/0x550

The BUG() fires with mmap_read_lock() still held, so the faulting task
is left unkillable in D state holding the lock, and shutdown stalls
behind it. A UFFD_USER_MODE_ONLY userfaultfd is always allowed, so any
local user can do this.

Deliver SIGBUS with BUS_MCEERR_AR instead, reporting the size of the
poisoned area, as the other architectures do. That is the huge page size
for VM_FAULT_HWPOISON_LARGE, which becomes reachable once alpha
implements huge pages.

Tested on an UP1500 (EV68AL): the reproducer above now takes a SIGBUS
and the kernel logs

  poison[373]: hardware memory error at 0000020000030000 pc 00000200010007ec

with no oops, no wedged task and no taint.

A backport needs the show_signal_msg() call dropped, since alpha only
has it since commit 9ca6af1aac40 ("alpha: select
SYSCTL_EXCEPTION_TRACE").

The Linux kernel CVE team has assigned CVE-2026-100040 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.6 with commit fc71884a5f599a603fcc3c2b28b3872c09d19c18 and fixed in 6.6.163 with commit c97972297b3b086d02de80c44696cac98db86b05
	Issue introduced in 6.6 with commit fc71884a5f599a603fcc3c2b28b3872c09d19c18 and fixed in 6.12.117 with commit c2ba5464ab93186f62128a6b77e0570f50253b7d
	Issue introduced in 6.6 with commit fc71884a5f599a603fcc3c2b28b3872c09d19c18 and fixed in 6.18.63 with commit 11452dc2e6bb4f42f700eb052dbc700f11b6764f
	Issue introduced in 6.6 with commit fc71884a5f599a603fcc3c2b28b3872c09d19c18 and fixed in 7.3.4 with commit 8685a6e72d1f9171e652673fa12c4c413eb1ff02
	Issue introduced in 6.6 with commit fc71884a5f599a603fcc3c2b28b3872c09d19c18 and fixed in 7.4-rc1 with commit 4bef20bbb9e02568a009efa4d404ce2621289be5

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-100040
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	arch/alpha/mm/fault.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/c97972297b3b086d02de80c44696cac98db86b05
	https://git.kernel.org/stable/c/c2ba5464ab93186f62128a6b77e0570f50253b7d
	https://git.kernel.org/stable/c/11452dc2e6bb4f42f700eb052dbc700f11b6764f
	https://git.kernel.org/stable/c/8685a6e72d1f9171e652673fa12c4c413eb1ff02
	https://git.kernel.org/stable/c/4bef20bbb9e02568a009efa4d404ce2621289be5

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:23 CVE-2026-100040: alpha: handle VM_FAULT_HWPOISON in do_page_fault() Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.