In the Linux kernel, the following vulnerability has been resolved:
x86/mce: use is_copy_from_user() to determine copy-from-user context
Patch series "mm/hwpoison: Fix regressions in memory failure handling", v4.
## 1. What am I trying to do:
This patchset resolves two critical regressions related to memory failure handling that have appeared in the upstream kernel since version 5.17, as compared to 5.10 LTS.
- copyin case: poison found in user page while kernel copying from user space - instr case: poison found while instruction fetching in user space
## 2. What is the expected outcome and why
- For copyin case:
Kernel can recover from poison found where kernel is doing get_user() or copy_from_user() if those places get an error return and the kernel return -EFAULT to the process instead of crashing. More specifily, MCE handler checks the fixup handler type to decide whether an in kernel #MC can be recovered. When EX_TYPE_UACCESS is found, the PC jumps to recovery code specified in _ASM_EXTABLE_FAULT() and return a -EFAULT to user space.
- For instr case:
If a poison found while instruction fetching in user space, full recovery is possible. User process takes #PF, Linux allocates a new page and fills by reading from storage.
## 3. What actually happens and why
- For copyin case: kernel panic since v5.17
Commit 4c132d1d844a ("x86/futex: Remove .fixup usage") introduced a new extable fixup type, EX_TYPE_EFAULT_REG, and later patches updated the extable fixup type for copy-from-user operations, changing it from EX_TYPE_UACCESS to EX_TYPE_EFAULT_REG. It breaks previous EX_TYPE_UACCESS handling when posion found in get_user() or copy_from_user().
- For instr case: user process is killed by a SIGBUS signal due to #CMCI and #MCE race
When an uncorrected memory error is consumed there is a race between the CMCI from the memory controller reporting an uncorrected error with a UCNA signature, and the core reporting and SRAR signature machine check when the data is about to be consumed.
### Background: why *UN*corrected errors tied to *C*MCI in Intel platform [1]
Prior to Icelake memory controllers reported patrol scrub events that detected a previously unseen uncorrected error in memory by signaling a broadcast machine check with an SRAO (Software Recoverable Action Optional) signature in the machine check bank. This was overkill because it's not an urgent problem that no core is on the verge of consuming that bad data. It's also found that multi SRAO UCE may cause nested MCE interrupts and finally become an IERR.
Hence, Intel downgrades the machine check bank signature of patrol scrub from SRAO to UCNA (Uncorrected, No Action required), and signal changed to #CMCI. Just to add to the confusion, Linux does take an action (in uc_decode_notifier()) to try to offline the page despite the UC*NA* signature name.
### Background: why #CMCI and #MCE race when poison is consuming in Intel platform [1]
Having decided that CMCI/UCNA is the best action for patrol scrub errors, the memory controller uses it for reads too. But the memory controller is executing asynchronously from the core, and can't tell the difference between a "real" read and a speculative read. So it will do CMCI/UCNA if an error is found in any read.
Thus:
1) Core is clever and thinks address A is needed soon, issues a speculative read.
2) Core finds it is going to use address A soon after sending the read request
3) The CMCI from the memory controller is in a race with MCE from the core that will soon try to retire the load from address A.
Quite often (because speculation has got better) the CMCI from the memory controller is delivered before the core is committed to the instruction reading address A, so the interrupt is taken, and Linux offlines the page (marking it as poison).
## Why user process is killed for instr case
Commit 046545a661af ("mm/hwpoison: fix error page recovered but reported "not ---truncated---
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel-libbpf-debuginfoUpgrade python3-perf6.12-debuginfoUpgrade kernel-modules-extra-commonUpgrade perf6.12-debuginfoUpgrade kernel-develUpgrade bpftoolUpgrade kernel-toolsUpgrade bpftool-debuginfoUpgrade kernel-tools-develUpgrade kernel6.12-debuginfo-common-aarch64Upgrade python3-perf6.12Upgrade kernel-headersUpgrade kernel-tools-debuginfoUpgrade kernel-libbpf-staticUpgrade kernel-livepatch-6.12.23-29.97Upgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel-libbpfUpgrade kernel6.12-modules-extraUpgrade kernel6.12Upgrade kernel-libbpf-develUpgrade perf6.12Upgrade kernel6.12-debuginfo | Aug 5, 2025 | Apr 18, 2025 |
| Debian | — | Upgrade linuxNo solution exists | May 15, 2025 | Apr 18, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Apr 18, 2025 |
| Suse | — | Upgrade kernel-devel-azureUpgrade kernel-sourceUpgrade kernel-kvmsmall-vdsoUpgrade kernel-azure-vdsoUpgrade kernel-source-vanillaUpgrade kernel-defaultUpgrade kernel-64kb-extraUpgrade kernel-docsUpgrade kernel-azure-develUpgrade kernel-azureUpgrade kernel-default-vdsoUpgrade kernel-default-livepatchUpgrade kernel-default-extraUpgrade kernel-source-azureUpgrade kernel-zfcpdumpUpgrade kernel-symsUpgrade kernel-docs-htmlUpgrade kernel-obs-qaUpgrade kernel-macrosUpgrade kernel-kvmsmallUpgrade kernel-64kbUpgrade kernel-default-develUpgrade kernel-azure-extraUpgrade kernel-kvmsmall-develUpgrade kernel-develUpgrade kernel-64kb-devel | Dec 5, 2025 | Dec 5, 2025 |
| Ubuntu | — | Upgrade linux-image-azureUpgrade linux-image-6.8.0-1044-ibmUpgrade linux-image-6.14.0-1007-raspiUpgrade linux-image-xilinx-zynqmpUpgrade linux-image-6.14.0-1007-oracleUpgrade linux-image-6.14.0-1008-gcpUpgrade linux-image-6.8.0-1047-gcpUpgrade linux-image-raspi-6.8Upgrade linux-image-6.8.0-100-generic-64kUpgrade linux-image-6.8.1-1041-realtimeUpgrade linux-image-aws-6.8Upgrade linux-image-6.8.0-1023-xilinxUpgrade linux-image-aws-fipsUpgrade linux-image-nvidia-lowlatencyUpgrade linux-image-gcp-fipsUpgrade linux-image-6.14.0-1007-azureUpgrade linux-image-6.8.0-1043-gke-64kUpgrade linux-image-oem-22.04dUpgrade linux-image-gke-64kUpgrade linux-image-gcp-64kUpgrade linux-image-xilinx-6.8Upgrade linux-image-6.8.0-1051-azureUpgrade linux-image-6.8.0-1046-awsUpgrade linux-image-lowlatency-64kUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-genericUpgrade linux-image-oem-22.04Upgrade linux-image-6.11.0-1017-oracleUpgrade linux-image-gkeopUpgrade linux-image-fipsUpgrade linux-image-6.11.0-1014-raspiUpgrade linux-image-6.8.0-1046-nvidia-lowlatencyUpgrade linux-image-6.14.0-22-generic-64kUpgrade linux-image-6.14.0-1007-aws-64kUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-lowlatency-6.8Upgrade linux-image-6.11.0-1015-awsUpgrade linux-image-6.14.0-1007-oracle-64kUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-6.14.0-22-genericUpgrade linux-image-oracle-6.8Upgrade linux-image-aws-64k-lts-24.04Upgrade linux-image-aws-lts-24.04Upgrade linux-image-gke-64k-6.8Upgrade linux-image-gcp-lts-24.04Upgrade linux-image-nvidia-lowlatency-64k-6.8Upgrade linux-image-6.8.0-1047-gcp-64kUpgrade linux-image-6.11.0-1024-oemUpgrade linux-image-nvidia-6.8Upgrade linux-image-6.8.0-100-lowlatencyUpgrade linux-image-virtual-6.8Upgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-gcp-64k-6.8Upgrade linux-image-realtime-6.8.1Upgrade linux-image-realtimeUpgrade linux-image-6.14.0-1007-azure-fdeUpgrade linux-image-nvidia-lowlatency-6.8Upgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-lowlatency-64k-6.8Upgrade linux-image-raspiUpgrade linux-image-azure-fdeUpgrade linux-image-6.8.0-1046-azureUpgrade linux-image-6.11.0-1011-realtimeUpgrade linux-image-6.14.0-1008-gcp-64kUpgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-gkeop-6.8Upgrade linux-image-6.11.0-1018-azureUpgrade linux-image-nvidia-64kUpgrade linux-image-6.8.0-1030-gkeopUpgrade linux-image-azure-fde-edgeUpgrade linux-image-oracle-64k-6.8Upgrade linux-image-ibm-classicUpgrade linux-image-6.11.0-1018-azure-fdeUpgrade linux-image-gke-6.8Upgrade linux-image-6.11.0-1015-lowlatency-64kUpgrade linux-image-generic-64kUpgrade linux-image-azure-fde-6.11Upgrade linux-image-aws-64kUpgrade linux-image-awsUpgrade linux-image-6.8.0-1046-nvidia-lowlatency-64kUpgrade linux-image-6.8.0-1046-aws-fipsUpgrade linux-image-6.14.0-1004-realtimeUpgrade linux-image-6.11.0-28-generic-64kUpgrade linux-image-6.11.0-28-genericUpgrade linux-image-xilinxUpgrade linux-image-virtualUpgrade linux-image-raspi-realtimeUpgrade linux-image-intel-iotgUpgrade linux-image-intel-iot-realtimeUpgrade linux-image-gkeUpgrade linux-image-gcp-6.8Upgrade linux-image-6.8.0-2037-raspi-realtimeUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-generic-hwe-22.04Upgrade linux-image-generic-6.8Upgrade linux-image-gcp-fips-6.8Upgrade linux-image-fips-6.8Upgrade linux-image-azure-fipsUpgrade linux-image-6.8.0-1043-oracleUpgrade linux-image-6.8.0-100-lowlatency-64kUpgrade linux-image-oracle-64kUpgrade linux-image-oem-22.04cUpgrade linux-image-lowlatencyUpgrade linux-image-generic-lpaeUpgrade linux-image-lowlatency-6.11Upgrade linux-image-kvmUpgrade linux-image-nvidiaUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-azure-lts-24.04Upgrade linux-image-6.8.0-1047-gcp-fipsUpgrade linux-image-6.8.0-100-fipsUpgrade linux-image-realtime-hwe-22.04Upgrade linux-image-6.8.0-1046-azure-fipsUpgrade linux-image-azure-6.8Upgrade linux-image-oem-22.04bUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-lowlatency-hwe-24.04Upgrade linux-image-ibmUpgrade linux-image-ibm-6.8Upgrade linux-image-6.8.0-100-genericUpgrade linux-image-aws-64k-6.8Upgrade linux-image-raspi-realtime-6.8Upgrade linux-image-oem-22.04aUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-oem-24.04bUpgrade linux-image-lowlatency-64k-6.11Upgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-aws-fips-6.8Upgrade linux-image-6.8.0-1043-oracle-64kUpgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-6.11.0-1017-oracle-64kUpgrade linux-image-6.11.0-1015-lowlatencyUpgrade linux-image-generic-64k-6.8Upgrade linux-image-6.8.0-1046-nvidia-64kUpgrade linux-image-6.8.0-1046-nvidiaUpgrade linux-image-azure-6.11Upgrade linux-image-6.8.0-1047-raspiUpgrade linux-image-6.8.0-1046-aws-64kUpgrade linux-image-6.8.0-1043-gkeUpgrade linux-image-6.11.0-1016-gcp-64kUpgrade linux-image-6.11.0-1016-gcpUpgrade linux-image-oracleUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-ibm-lts-24.04Upgrade linux-image-6.14.0-1007-awsUpgrade linux-image-lowlatency-64k-hwe-24.04Upgrade linux-image-gcpUpgrade linux-image-azure-fips-6.8 | Jun 26, 2025 | Apr 18, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub