{"id":"CVE-2024-41021","summary":"s390/mm: Fix VM_FAULT_HWPOISON handling in do_exception()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/mm: Fix VM_FAULT_HWPOISON handling in do_exception()\n\nThere is no support for HWPOISON, MEMORY_FAILURE, or ARCH_HAS_COPY_MC on\ns390. Therefore we do not expect to see VM_FAULT_HWPOISON in\ndo_exception().\n\nHowever, since commit af19487f00f3 (\"mm: make PTE_MARKER_SWAPIN_ERROR more\ngeneral\"), it is possible to see VM_FAULT_HWPOISON in combination with\nPTE_MARKER_POISONED, even on architectures that do not support HWPOISON\notherwise. In this case, we will end up on the BUG() in do_exception().\n\nFix this by treating VM_FAULT_HWPOISON the same as VM_FAULT_SIGBUS, similar\nto x86 when MEMORY_FAILURE is not configured. Also print unexpected fault\nflags, for easier debugging.\n\nNote that VM_FAULT_HWPOISON_LARGE is not expected, because s390 cannot\nsupport swap entries on other levels than PTE level.","modified":"2026-05-18T05:57:52.888023708Z","published":"2024-07-29T13:34:22.636Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41021.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/73a9260b7366d2906ec011e100319359fe2277d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9e13767ccefdc4f8aa92514b592b60f6b54882ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a3aefb871222a9880602d1a44a558177b4143e3b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/df39038cd89525d465c2c8827eb64116873f141a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41021.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41021"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"af19487f00f34ff8643921d7909dbb3fedc7e329"},{"fixed":"73a9260b7366d2906ec011e100319359fe2277d0"},{"fixed":"9e13767ccefdc4f8aa92514b592b60f6b54882ff"},{"fixed":"a3aefb871222a9880602d1a44a558177b4143e3b"},{"fixed":"df39038cd89525d465c2c8827eb64116873f141a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-41021.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.6.44"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.9.12"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.10.0"},{"fixed":"6.10.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-41021.json"}}],"schema_version":"1.7.5"}