# CVE-2024-41021: s390/mm: Fix VM\_FAULT\_HWPOISON handling in do\_exception()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-29 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-41021, DEBIAN-CVE-2024-41021
- Record: https://cvemate.com/vulnerability/CVE-2024-41021 · JSON: https://cvemate.com/vulnerability/CVE-2024-41021/json

## Description

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

s390/mm: Fix VM_FAULT_HWPOISON handling in do_exception()

There is no support for HWPOISON, MEMORY_FAILURE, or ARCH_HAS_COPY_MC on
s390. Therefore we do not expect to see VM_FAULT_HWPOISON in
do_exception().

However, since commit af19487f00f3 ("mm: make PTE_MARKER_SWAPIN_ERROR more
general"), it is possible to see VM_FAULT_HWPOISON in combination with
PTE_MARKER_POISONED, even on architectures that do not support HWPOISON
otherwise. In this case, we will end up on the BUG() in do_exception().

Fix this by treating VM_FAULT_HWPOISON the same as VM_FAULT_SIGBUS, similar
to x86 when MEMORY_FAILURE is not configured. Also print unexpected fault
flags, for easier debugging.

Note that VM_FAULT_HWPOISON_LARGE is not expected, because s390 cannot
support swap entries on other levels than PTE level.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.222%, percentile 13.681%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 95)

- debian linux (Debian): \< 6.9.12-1
- ubuntu linux (Ubuntu): \< 6.8.0-48.48
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1018.20
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1018.19~22.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1017.20
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.2 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/73a9260b7366d2906ec011e100319359fe2277d0>
- <https://git.kernel.org/stable/c/9e13767ccefdc4f8aa92514b592b60f6b54882ff>
- <https://git.kernel.org/stable/c/a3aefb871222a9880602d1a44a558177b4143e3b>
- <https://git.kernel.org/stable/c/df39038cd89525d465c2c8827eb64116873f141a>
- <https://ubuntu.com/security/CVE-2024-41021>
- <https://www.cve.org/CVERecord?id=CVE-2024-41021>
- <https://git.kernel.org/linus/df39038cd89525d465c2c8827eb64116873f141a>
- <https://ubuntu.com/security/notices/USN-7089-1>
- <https://ubuntu.com/security/notices/USN-7090-1>
- <https://ubuntu.com/security/notices/USN-7089-2>
- <https://ubuntu.com/security/notices/USN-7089-3>
- <https://ubuntu.com/security/notices/USN-7095-1>
- <https://ubuntu.com/security/notices/USN-7089-4>
- <https://ubuntu.com/security/notices/USN-7089-5>
- <https://ubuntu.com/security/notices/USN-7089-6>
- <https://ubuntu.com/security/notices/USN-7089-7>
- <https://ubuntu.com/security/notices/USN-7156-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-41021>

---

Data as of 2026-12-05T07:23:58.070Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
