CVE-2024-38543
kernel: lib/test_hmm.c: handle src_pfns and dst_pfns allocation failure
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 19, 2024
Updated · October 29, 2026
Description
A flaw was found in the Linux kernel. This vulnerability, located in the lib/test_hmm.c component, arises from improper handling of memory allocation failures within the dmirror_device_evict_chunk() function. Specifically, if kcalloc() returns null due to insufficient physical memory, dereferencing src_pfns or dst_pfns can lead to a null pointer dereference. A local attacker with low privileges could exploit this issue to trigger a denial of service, potentially causing the system to become unresponsive or crash.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-476 · NULL Pointer Dereference