{"id":"CVE-2024-41021","state":"PUBLISHED","title":"s390/mm: Fix VM_FAULT_HWPOISON handling in do_exception()","description":"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.","publishedAt":"2024-07-29T13:34:22.636Z","updatedAt":"2026-05-11T20:24:38.550Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"73a9260b7366d2906ec011e100319359fe2277d0","versionType":"git"},{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"9e13767ccefdc4f8aa92514b592b60f6b54882ff","versionType":"git"},{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"a3aefb871222a9880602d1a44a558177b4143e3b","versionType":"git"},{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"df39038cd89525d465c2c8827eb64116873f141a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/mm/fault.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.12","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10.2","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/mm/fault.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/41xxx/CVE-2024-41021.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-41021","state":"PUBLISHED","datePublished":"2024-07-29T13:34:22.636Z","dateUpdated":"2026-05-11T20:24:38.550Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.613Z"},"containers":{"cna":{"title":"s390/mm: Fix VM_FAULT_HWPOISON handling in do_exception()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"73a9260b7366d2906ec011e100319359fe2277d0","versionType":"git"},{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"9e13767ccefdc4f8aa92514b592b60f6b54882ff","versionType":"git"},{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"a3aefb871222a9880602d1a44a558177b4143e3b","versionType":"git"},{"version":"af19487f00f34ff8643921d7909dbb3fedc7e329","status":"affected","lessThan":"df39038cd89525d465c2c8827eb64116873f141a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/mm/fault.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.44","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.12","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10.2","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/s390/mm/fault.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/73a9260b7366d2906ec011e100319359fe2277d0"},{"url":"https://git.kernel.org/stable/c/9e13767ccefdc4f8aa92514b592b60f6b54882ff"},{"url":"https://git.kernel.org/stable/c/a3aefb871222a9880602d1a44a558177b4143e3b"},{"url":"https://git.kernel.org/stable/c/df39038cd89525d465c2c8827eb64116873f141a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:24:38.550Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.9.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.10.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/9e13767ccefdc4f8aa92514b592b60f6b54882ff","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/a3aefb871222a9880602d1a44a558177b4143e3b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/df39038cd89525d465c2c8827eb64116873f141a","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:39:56.086Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-41021","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:24:25.420989Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:05.114Z"}}]}}}