CVE-2024-39277
"QEMU Linux dma-mapping NUMA Boundary Check Vulnerability"
Description
In the Linux kernel, the following vulnerability has been resolved: dma-mapping: benchmark: handle NUMA_NO_NODE correctly cpumask_of_node() can be called for NUMA_NO_NODE inside do_map_benchmark() resulting in the following sanitizer report: UBSAN: array-index-out-of-bounds in ./arch/x86/include/asm/topology.h:72:28 index -1 is out of range for type 'cpumask [64][1]' CPU: 1 PID: 990 Comm: dma_map_benchma Not tainted 6.9.0-rc6 #29 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) Call Trace: <TASK> dump_stack_lvl (lib/dump_stack.c:117) ubsan_epilogue (lib/ubsan.c:232) __ubsan_handle_out_of_bounds (lib/ubsan.c:429) cpumask_of_node (arch/x86/include/asm/topology.h:72) [inline] do_map_benchmark (kernel/dma/map_benchmark.c:104) map_benchmark_ioctl (kernel/dma/map_benchmark.c:246) full_proxy_unlocked_ioctl (fs/debugfs/file.c:333) __x64_sys_ioctl (fs/ioctl.c:890) do_syscall_64 (arch/x86/entry/common.c:83) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Use cpumask_of_node() in place when binding a kernel thread to a cpuset of a particular node. Note that the provided node id is checked inside map_benchmark_ioctl(). It's just a NUMA_NO_NODE case which is not handled properly later. Found by Linux Verification Center (linuxtesting.org).
INFO
Published Date :
June 21, 2024, 12:15 p.m.
Last Modified :
Nov. 21, 2024, 9:27 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
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-39277
.
URL | Resource |
---|---|
https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f | Mailing List Patch |
https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41 | Mailing List Patch |
https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464 | Mailing List Patch |
https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13 | Mailing List Patch |
https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f | Mailing List Patch |
https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f | Mailing List Patch |
https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41 | Mailing List Patch |
https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464 | Mailing List Patch |
https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13 | Mailing List Patch |
https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f | Mailing List Patch |
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-39277
vulnerability anywhere in the article.

-
tripwire.com
VERT Threat Alert: August 2024 Patch Tuesday Analysis
Today’s VERT Alert addresses Microsoft’s August 2024 Security Updates. VERT is actively working on coverage for these vulnerabilities and expects to ship ASPL-1119 as soon as coverage is completed.CVE ... Read more
The following table lists the changes that have been made to the
CVE-2024-39277
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/50ee21bfc005e69f183d6b4b454e33f0c2571e1f Added Reference https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41 Added Reference https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464 Added Reference https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13 Added Reference https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 20, 2024
Action Type Old Value New Value Added CWE CISA-ADP CWE-125 Added CVSS V3.1 CISA-ADP AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
Initial Analysis by [email protected]
Jun. 24, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f No Types Assigned https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f Mailing List, Patch Changed Reference Type https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41 No Types Assigned https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41 Mailing List, Patch Changed Reference Type https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464 No Types Assigned https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464 Mailing List, Patch Changed Reference Type https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13 No Types Assigned https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13 Mailing List, Patch Changed Reference Type https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f No Types Assigned https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f Mailing List, Patch Added CWE NIST CWE-125 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.15 up to (excluding) 5.15.161 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1 up to (excluding) 6.1.93 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6 up to (excluding) 6.6.33 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.9 up to (excluding) 6.9.4 *cpe:2.3:o:linux:linux_kernel:6.10.0:rc1:*:*:*:*:*:* -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 21, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: dma-mapping: benchmark: handle NUMA_NO_NODE correctly cpumask_of_node() can be called for NUMA_NO_NODE inside do_map_benchmark() resulting in the following sanitizer report: UBSAN: array-index-out-of-bounds in ./arch/x86/include/asm/topology.h:72:28 index -1 is out of range for type 'cpumask [64][1]' CPU: 1 PID: 990 Comm: dma_map_benchma Not tainted 6.9.0-rc6 #29 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996) Call Trace: <TASK> dump_stack_lvl (lib/dump_stack.c:117) ubsan_epilogue (lib/ubsan.c:232) __ubsan_handle_out_of_bounds (lib/ubsan.c:429) cpumask_of_node (arch/x86/include/asm/topology.h:72) [inline] do_map_benchmark (kernel/dma/map_benchmark.c:104) map_benchmark_ioctl (kernel/dma/map_benchmark.c:246) full_proxy_unlocked_ioctl (fs/debugfs/file.c:333) __x64_sys_ioctl (fs/ioctl.c:890) do_syscall_64 (arch/x86/entry/common.c:83) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Use cpumask_of_node() in place when binding a kernel thread to a cpuset of a particular node. Note that the provided node id is checked inside map_benchmark_ioctl(). It's just a NUMA_NO_NODE case which is not handled properly later. Found by Linux Verification Center (linuxtesting.org). Added Reference kernel.org https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f [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-39277
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-39277
weaknesses.