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

High 7.8 Published Updated

A missing NULL pointer check in the s390 memory management code can cause a kernel crash if page allocation fails under specific test conditions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42235?

CVE-2024-42235 is a high-severity vulnerability in Linux kernel, published on 7 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-476

Which versions are affected by CVE-2024-42235?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42235?

Apply the vendor's patch.

Is CVE-2024-42235 being exploited?

There is no known exploitation of CVE-2024-42235 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-47543, BELL-CVE-2024-42235, DEBIAN-CVE-2024-42235, GHSA-rx9p-j44h-69cp, UBUNTU-CVE-2024-42235.

Is CVE-2024-42235 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free