x86/mce: use is_copy_from_user() to determine copy-from-user context
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4c132d1d844a53fc4e4b5c34e36ef10d6124b783 · < 1a15bb8303b6b104e78028b6c68f76a0d4562134| No fix yet |
| Linux Linux |
|
|
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:
From the CVE record · Linux
The Linux kernel's x86 machine-check handling can fail to recover when it encounters a poisoned user page during a copy-from-user operation. This can cause a kernel panic instead of returning an error to the process; the described condition requires a memory error, not a network request.
Engineers running Linux kernels affected by the memory-failure handling regressions described as present since version 5.17 should check their systems.