Description
In the Linux kernel, the following vulnerability has been resolved: lib/test_hmm.c: handle src_pfns and dst_pfns allocation failure The kcalloc() in dmirror_device_evict_chunk() will return null if the physical memory has run out. As a result, if src_pfns or dst_pfns is dereferenced, the null pointer dereference bug will happen. Moreover, the device is going away. If the kcalloc() fails, the pages mapping a chunk could not be evicted. So add a __GFP_NOFAIL flag in kcalloc(). Finally, as there is no need to have physically contiguous memory, Switch kcalloc() to kvcalloc() in order to avoid failing allocations.
References (5)
Core 5
Core References
Scores
CVSS v3
5.5
EPSS
0.0024
EPSS Percentile
15.1%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-476
Status
published
Products (17)
linux/Kernel
5.8.0 - 6.1.93linux
linux/Kernel
6.2.0 - 6.6.33linux
linux/Kernel
6.7.0 - 6.8.12linux
linux/Kernel
6.9.0 - 6.9.3linux
Linux/Linux
< 5.8
Linux/Linux
5.8
Linux/Linux
6.1.93 - 6.1.*
Linux/Linux
6.10
Linux/Linux
6.6.33 - 6.6.*
Linux/Linux
6.8.12 - 6.8.*
... and 7 more
Published
Jun 19, 2024
Tracked Since
Feb 18, 2026