# CVE-2025-39989: x86/mce: use is\_copy\_from\_user() to determine copy-from-user context

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-04-18T07:01:39.321Z
- **Modified:** 2026-11-05T22:17:35.990Z

## Who should check

- Anyone running Linux \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 7a1168257e81954fa1b5b1ce86f47d2567e734ab; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 5724654a084f701dc64b08d34a0e800f22f0e6e4; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 3e3d8169c0950a0b3cd5105f6403a78350dcac80; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 449413da90a337f343cc5a73070cbd68e92e8a54; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 0b8388e97ba6a8c033f9a8b5565af41af07f9345; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 1a15bb8303b6b104e78028b6c68f76a0d4562134; 88eded8104d2ca0429703755dd250f8cbecc1447; \>= 5.15.58, \< 5.16
- Anyone running Linux 5.17

## Description

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---

## Affected and fixed versions

- Linux: \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 7a1168257e81954fa1b5b1ce86f47d2567e734ab; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 5724654a084f701dc64b08d34a0e800f22f0e6e4; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 3e3d8169c0950a0b3cd5105f6403a78350dcac80; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 449413da90a337f343cc5a73070cbd68e92e8a54; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 0b8388e97ba6a8c033f9a8b5565af41af07f9345; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 1a15bb8303b6b104e78028b6c68f76a0d4562134; 88eded8104d2ca0429703755dd250f8cbecc1447; \>= 5.15.58, \< 5.16 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 5.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39989. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39989.md
Affected: Linux >= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, < 7a1168257e81954fa1b5b1ce86f47d2567e734ab; >= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, < 5724654a084f701dc64b08d34a0e800f22f0e6e4; >= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, < 3e3d8169c0950a0b3cd5105f6403a78350dcac80; >= 4c132d1d844a53fc4e4b5c3…
Fixed in: Linux 7a1168257e81954fa1b5b1ce86f47d2567e734ab, Linux 5724654a084f701dc64b08d34a0e800f22f0e6e4, Linux 3e3d8169c0950a0b3cd5105f6403a78350dcac80, Linux 449413da90a337f343cc5a73070cbd68e92e8a54, Linux 0b8388e97ba6a8c033f9a8b5565af41af07f9345, Linux 1a15bb8303b6b104e78028b6c68f76a0d4562134, Linux 5.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39989 being exploited?

There is no confirmed exploitation: CVE-2025-39989 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39989?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39989?

Linux \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 7a1168257e81954fa1b5b1ce86f47d2567e734ab; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 5724654a084f701dc64b08d34a0e800f22f0e6e4; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 3e3d8169c0950a0b3cd5105f6403a78350dcac80; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 449413da90a337f343cc5a73070cbd68e92e8a54; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 0b8388e97ba6a8c033f9a8b5565af41af07f9345; \>= 4c132d1d844a53fc4e4b5c34e36ef10d6124b783, \< 1a15bb8303b6b104e78028b6c68f76a0d4562134; 88eded8104d2ca0429703755dd250f8cbecc1447; \>= 5.15.58, \< 5.16; Linux 5.17.

### Is there a fix for CVE-2025-39989?

Yes. Fixed in Linux 7a1168257e81954fa1b5b1ce86f47d2567e734ab, Linux 5724654a084f701dc64b08d34a0e800f22f0e6e4, Linux 3e3d8169c0950a0b3cd5105f6403a78350dcac80, Linux 449413da90a337f343cc5a73070cbd68e92e8a54, Linux 0b8388e97ba6a8c033f9a8b5565af41af07f9345, Linux 1a15bb8303b6b104e78028b6c68f76a0d4562134, Linux 5.16. Upgrade Linux to 5.16 or later.

### How do I check if I'm affected by CVE-2025-39989?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5724654a084f701dc64b08d34a0e800f22f0e6e4>
- patch: <https://git.kernel.org/stable/c/3e3d8169c0950a0b3cd5105f6403a78350dcac80>
- patch: <https://git.kernel.org/stable/c/449413da90a337f343cc5a73070cbd68e92e8a54>
- patch: <https://git.kernel.org/stable/c/0b8388e97ba6a8c033f9a8b5565af41af07f9345>
- patch: <https://git.kernel.org/stable/c/1a15bb8303b6b104e78028b6c68f76a0d4562134>
- other: <https://git.kernel.org/stable/c/7a1168257e81954fa1b5b1ce86f47d2567e734ab>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39989>

HTML: <https://flawdb.com/CVE-2025-39989> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39989>
