CVE-2024-38543
"Linux Kernel: Null Pointer Dereference in Dmirror Device"
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.
INFO
Published Date :
June 19, 2024, 2:15 p.m.
Last Modified :
Nov. 21, 2024, 9:26 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-38543
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-38543
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-38543
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/1a21fdeea502658e315bd939409b755974f4fb64 Added Reference https://git.kernel.org/stable/c/3b20d18f475bd17309db640dbe7d7c7ebb5bc2bc Added Reference https://git.kernel.org/stable/c/65e528a69cb3ed4a286c45b4afba57461c8b5b33 Added Reference https://git.kernel.org/stable/c/c2af060d1c18beaec56351cf9c9bcbbc5af341a3 Added Reference https://git.kernel.org/stable/c/ce47e8ead9a72834cc68431d53f8092ce69bebb7 -
Initial Analysis by [email protected]
Aug. 29, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://git.kernel.org/stable/c/1a21fdeea502658e315bd939409b755974f4fb64 No Types Assigned https://git.kernel.org/stable/c/1a21fdeea502658e315bd939409b755974f4fb64 Patch Changed Reference Type https://git.kernel.org/stable/c/3b20d18f475bd17309db640dbe7d7c7ebb5bc2bc No Types Assigned https://git.kernel.org/stable/c/3b20d18f475bd17309db640dbe7d7c7ebb5bc2bc Patch Changed Reference Type https://git.kernel.org/stable/c/65e528a69cb3ed4a286c45b4afba57461c8b5b33 No Types Assigned https://git.kernel.org/stable/c/65e528a69cb3ed4a286c45b4afba57461c8b5b33 Patch Changed Reference Type https://git.kernel.org/stable/c/c2af060d1c18beaec56351cf9c9bcbbc5af341a3 No Types Assigned https://git.kernel.org/stable/c/c2af060d1c18beaec56351cf9c9bcbbc5af341a3 Patch Changed Reference Type https://git.kernel.org/stable/c/ce47e8ead9a72834cc68431d53f8092ce69bebb7 No Types Assigned https://git.kernel.org/stable/c/ce47e8ead9a72834cc68431d53f8092ce69bebb7 Patch Added CWE NIST CWE-476 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.8 up to (excluding) 6.1.93 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.33 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.9 up to (excluding) 6.9.3 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 19, 2024
Action Type Old Value New Value Added 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. Added Reference kernel.org https://git.kernel.org/stable/c/1a21fdeea502658e315bd939409b755974f4fb64 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/65e528a69cb3ed4a286c45b4afba57461c8b5b33 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ce47e8ead9a72834cc68431d53f8092ce69bebb7 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/3b20d18f475bd17309db640dbe7d7c7ebb5bc2bc [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/c2af060d1c18beaec56351cf9c9bcbbc5af341a3 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-38543
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-38543
weaknesses.