{"id":"CVE-2024-41021","published":"2024-07-29T13:34:22Z","modified":"2026-05-11T20:24:38Z","title":"s390/mm: Fix VM_FAULT_HWPOISON handling in do_exception()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00222,"percentile":0.1311,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/73a9260b7366d2906ec011e100319359fe2277d0","tags":[]},{"url":"https://git.kernel.org/stable/c/9e13767ccefdc4f8aa92514b592b60f6b54882ff","tags":[]},{"url":"https://git.kernel.org/stable/c/a3aefb871222a9880602d1a44a558177b4143e3b","tags":[]},{"url":"https://git.kernel.org/stable/c/df39038cd89525d465c2c8827eb64116873f141a","tags":[]}],"priority":{"score":2.6,"factors":[{"name":"EPSS percentile","points":2.62}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= af19487f00f34ff8643921d7909dbb3fedc7e329, < 73a9260b7366d2906ec011e100319359fe2277d0",">= af19487f00f34ff8643921d7909dbb3fedc7e329, < 9e13767ccefdc4f8aa92514b592b60f6b54882ff",">= af19487f00f34ff8643921d7909dbb3fedc7e329, < a3aefb871222a9880602d1a44a558177b4143e3b",">= af19487f00f34ff8643921d7909dbb3fedc7e329, < df39038cd89525d465c2c8827eb64116873f141a"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:24:25.420989Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39370","exploited":false,"provenance":"source"}}