s390/mm: Add NULL pointer check to crst_table_free() base_crst_free()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.6.416.9.106.10In 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.
From the CVE record · Linux
The Linux kernel's s390 memory-management code can pass a NULL pointer to crst_table_free() during error handling, causing a crash. The described failure requires an allocation failure, which the report says is not expected in normal use unless FAIL_PAGE_ALLOC is enabled and used. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with s390 memory management should check their kernel versions; affected versions are not specified.