CVE-2024-41055

mm: prevent derefencing NULL ptr in pfn_section_valid()

published July 29, 2024

CVSS
—
EPSS
0%
Percentile
16.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00255 · 16.1th percentile
Published
2024-07-29T14:32Z
EPSS history
Timeline
  • 29 JUL 14:32Z
    mm: prevent derefencing NULL ptr in pfn_section_valid()
    cvelistv5