Skip to main content
← All vulnerabilities
CVE-2024-41055

mm: prevent derefencing NULL ptr in pfn_section_valid()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.10.222, 5.15.163, 6.1.100, 6.6.41, 6.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 5.10.210 · fixed in 5.10.222; From 5.15.149 · fixed in 5.15.163; From 6.1.76 · fixed in 6.1.100; From 6.6.15 · fixed in 6.6.41; From 6.7.3 · fixed in 6.8

  • Linux Linux

    6.8

References 6

git.kernel.org