mm: prevent derefencing NULL ptr in pfn_section_valid()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5ec8e8ea8b7783fab150cf86404fc38cb4db8800 · < 82f0b6f041fad768c28b4ad05a683065412c226e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mm: prevent derefencing NULL ptr in pfn_section_valid()
Commit 5ec8e8ea8b77 ("mm/sparsemem: fix race in accessing memory_section->usage") changed pfn_section_valid() to add a READ_ONCE() call around "ms->usage" to fix a race with section_deactivate() where ms->usage can be cleared. The READ_ONCE() call, by itself, is not enough to prevent NULL pointer dereference. We need to check its value before dereferencing it.
From the CVE record · Linux
The Linux kernel's pfn_section_valid() can dereference a NULL pointer when memory_section->usage is cleared during section_deactivate(). The input does not specify how an attacker could trigger this or whether access, authentication, or user interaction is required.
Teams running the Linux kernel should check their installations; affected versions are not specified.