# CVE-2024-42235: s390/mm: Add NULL pointer check to crst_table_free() base_crst_free()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 18% of CVEs (2026-11-30)
- Published: 2024-08-07T15:14:25.070Z
- Modified: 2026-08-05T11:36:00.433Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6326c26c1514757242829b292b26eac589013200 before 794fa52b94637d6b2e8c9474fbe3983af5c9f046; from 6326c26c1514757242829b292b26eac589013200 before f80bd8bb6f380bc265834c46058d38b34174813e; from 6326c26c1514757242829b292b26eac589013200 before b5efb63acf7bddaf20eacfcac654c25c446eabe8; 6.6 (not affected: before 6.6; from 6.6.41 up to 6.6.*; from 6.9.10 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.6 before 6.6.41; from 6.7 before 6.9.10

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/794fa52b94637d6b2e8c9474fbe3983af5c9f046> (patch)
- <https://git.kernel.org/stable/c/f80bd8bb6f380bc265834c46058d38b34174813e> (patch)
- <https://git.kernel.org/stable/c/b5efb63acf7bddaf20eacfcac654c25c446eabe8> (patch)

## Sources

- CVE List: [CVE-2024-42235](https://www.cve.org/CVERecord?id=CVE-2024-42235), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-42235](https://nvd.nist.gov/vuln/detail/CVE-2024-42235), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-42235 · Whole record: https://cve.day/CVE-2024-42235.json · Rebuilt by cve.day 2026-11-25T22:58:44.103Z
