5.5medium
mm: prevent derefencing NULL ptr in pfn_section_valid()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 90ad17575d26874287271127d43ef3c2af876cea before 0100aeb8a12d51950418e685f879cc80cb8e5982, from b448de2459b6d62a53892487ab18b7d823ff0529 before bc17f2377818dca643a74499c3f5333500c90503, from 68ed9e33324021e9d6b798e9db00ca3093d2012a before 941e816185661bf2b44b488565d09444ae316509, from 70064241f2229f7ba7b9599a98f68d9142e81a97 before 797323d1cf92d09b7a017cfec576d9babf99cde7, from 5ec8e8ea8b7783fab150cf86404fc38cb4db8800 before adccdf702b4ea913ded5ff512239e382d7473b63, from 5ec8e8ea8b7783fab150cf86404fc38cb4db8800 before 82f0b6f041fad768c28b4ad05a683065412c226e, 3a01daace71b521563c38bbbf874e14c3e58adb7, from 5.10.210 before 5.10.222 and 5 more Not affected: before 6.8, from 5.10.222 up to 5.10.*, from 5.15.163 up to 5.15.*, from 6.1.100 up to 6.1.*, from 6.6.41 up to 6.6.*, from 6.9.10 up to 6.9.* | CVE List |
| linux linux_kernel | from 5.10.219 before 5.10.222, from 5.15.149 before 5.15.163, from 6.1.76 before 6.1.100, from 6.6.15 before 6.6.41, from 6.8 before 6.9.10 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm: evita la eliminación de la referencia NULL ptr en pfn_section_valid() La confirmación 5ec8e8ea8b77 ("mm/sparsemem: corrige la ejecución al acceder a la sección_memoria->uso") cambió pfn_section_valid() para agregar un READ_ONCE() llame a "ms->usage" para arreglar una ejecución con section_deactivate() donde se puede borrar ms->usage. La llamada READ_ONCE(), por sí sola, no es suficiente para evitar la desreferencia al puntero NULL. Necesitamos comprobar su valor antes de desreferenciarlo.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-41055 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2024-41055 changed 2026-06-17 | Public domain |