CVE-2024-41055

mm: prevent derefencing NULL ptr in pfn_section_valid()

State
Published
Severity
Not scored
Published
Jul 29, 2024
Updated
May 23, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 90ad17575d26874287271127d43ef3c2af876cea to before 0100aeb8a12d51950418e685f879cc80cb8e5982Affected
  • b448de2459b6d62a53892487ab18b7d823ff0529 to before bc17f2377818dca643a74499c3f5333500c90503Affected
  • 68ed9e33324021e9d6b798e9db00ca3093d2012a to before 941e816185661bf2b44b488565d09444ae316509Affected
  • 70064241f2229f7ba7b9599a98f68d9142e81a97 to before 797323d1cf92d09b7a017cfec576d9babf99cde7Affected
  • 5ec8e8ea8b7783fab150cf86404fc38cb4db8800 to before adccdf702b4ea913ded5ff512239e382d7473b63Affected
  • 5ec8e8ea8b7783fab150cf86404fc38cb4db8800 to before 82f0b6f041fad768c28b4ad05a683065412c226eAffected
  • 3a01daace71b521563c38bbbf874e14c3e58adb7Affected
  • 5.10.210 to before 5.10.222Affected
  • 5.15.149 to before 5.15.163Affected
  • 6.1.76 to before 6.1.100Affected
  • 6.6.15 to before 6.6.41Affected
  • 6.7.3 to before 6.8Affected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 5.10.222 through 5.10.*Not affected
  • 5.15.163 through 5.15.*Not affected
  • 6.1.100 through 6.1.*Not affected
  • 6.6.41 through 6.6.*Not affected
  • 6.9.10 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.