What’s Vulnerable › Vulnerabilities
CVE-2024-42235: s390/mm: Add NULL pointer check to crst_table_free() base_crst_free()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-08-07 · updated 2026-08-04
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: s390/mm: Add NULL pointer check to crst_table_free() base_crst_free() crst_table_free() used to work with NULL pointers before the conversion to ptdescs. Since crst_table_free() can be called with a NULL pointer (error handling in crst_table_upgrade() add an explicit check. Also add the same check to base_crst_free() for consistency reasons. In real life this should not happen, since order two GFP_KERNEL allocations will not fail, unless FAIL_PAGE_ALLOC is enabled and used.
Affected products
- Linux kernel: from 6.6 before 6.6.41; from 6.7 before 6.9.10 — fixed in 6.6.41, 6.9.10
How to fix
Upgrade to a fixed version: Linux kernel 6.6.41, 6.9.10. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/794fa52b94637d6b2e8c9474fbe3983af5c9f046
- https://git.kernel.org/stable/c/b5efb63acf7bddaf20eacfcac654c25c446eabe8
- https://git.kernel.org/stable/c/f80bd8bb6f380bc265834c46058d38b34174813e
Get alerted when CVE-2024-42235 or the next vulnerability affects your stack