s390/debug: Fix NULL pointer dereference in debug_info_copy()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d72541f945127b4873dace501406a1bc8cd8e1e9 · < c593f38e1cdb92f87d01be4c4e5ac12417b1454b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
s390/debug: Fix NULL pointer dereference in debug_info_copy()
When debug_register_static() fails, it clears areas, active_pages and active_entries but leaves the area bounds unchanged. Copying such an area, either by opening its view file or via debug_dump(), makes debug_info_copy() dereference the NULL pointers.
Skip the copy loop when the source has no areas.
From the CVE record · Linux
In the Linux kernel’s s390/debug component, a failed debug_register_static() call can leave area bounds set while clearing the area pointers. Opening the affected view file or calling debug_dump() can then trigger a NULL pointer dereference in debug_info_copy(). The input does not specify authentication requirements or whether the view file can be opened remotely.
Engineers running the Linux kernel on s390 systems should check their installations; affected versions are not specified.