{"id":"CVE-2024-39277","state":"PUBLISHED","title":"dma-mapping: benchmark: handle NUMA_NO_NODE correctly","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-mapping: benchmark: handle NUMA_NO_NODE correctly\n\ncpumask_of_node() can be called for NUMA_NO_NODE inside do_map_benchmark()\nresulting in the following sanitizer report:\n\nUBSAN: array-index-out-of-bounds in ./arch/x86/include/asm/topology.h:72:28\nindex -1 is out of range for type 'cpumask [64][1]'\nCPU: 1 PID: 990 Comm: dma_map_benchma Not tainted 6.9.0-rc6 #29\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996)\nCall Trace:\n <TASK>\ndump_stack_lvl (lib/dump_stack.c:117)\nubsan_epilogue (lib/ubsan.c:232)\n__ubsan_handle_out_of_bounds (lib/ubsan.c:429)\ncpumask_of_node (arch/x86/include/asm/topology.h:72) [inline]\ndo_map_benchmark (kernel/dma/map_benchmark.c:104)\nmap_benchmark_ioctl (kernel/dma/map_benchmark.c:246)\nfull_proxy_unlocked_ioctl (fs/debugfs/file.c:333)\n__x64_sys_ioctl (fs/ioctl.c:890)\ndo_syscall_64 (arch/x86/entry/common.c:83)\nentry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)\n\nUse cpumask_of_node() in place when binding a kernel thread to a cpuset\nof a particular node.\n\nNote that the provided node id is checked inside map_benchmark_ioctl().\nIt's just a NUMA_NO_NODE case which is not handled properly later.\n\nFound by Linux Verification Center (linuxtesting.org).","publishedAt":"2024-06-21T11:15:13.559Z","updatedAt":"2026-05-11T20:20:48.721Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"b41b0018e8ca06e985e87220a618ec633988fd13","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"8e1ba9df9a35e8dc64f657a64e523c79ba01e464","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"5a91116b003175302f2e6ad94b76fb9b5a141a41","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"50ee21bfc005e69f183d6b4b454e33f0c2571e1f","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"e64746e74f717961250a155e14c156616fcd981f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/map_benchmark.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.161","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.93","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.33","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.4","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/map_benchmark.c"]}],"references":["https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13","https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464","https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41","https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f","https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/39xxx/CVE-2024-39277.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-39277","state":"PUBLISHED","datePublished":"2024-06-21T11:15:13.559Z","dateUpdated":"2026-05-11T20:20:48.721Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-21T10:12:11.489Z"},"containers":{"cna":{"title":"dma-mapping: benchmark: handle NUMA_NO_NODE correctly","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-mapping: benchmark: handle NUMA_NO_NODE correctly\n\ncpumask_of_node() can be called for NUMA_NO_NODE inside do_map_benchmark()\nresulting in the following sanitizer report:\n\nUBSAN: array-index-out-of-bounds in ./arch/x86/include/asm/topology.h:72:28\nindex -1 is out of range for type 'cpumask [64][1]'\nCPU: 1 PID: 990 Comm: dma_map_benchma Not tainted 6.9.0-rc6 #29\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996)\nCall Trace:\n <TASK>\ndump_stack_lvl (lib/dump_stack.c:117)\nubsan_epilogue (lib/ubsan.c:232)\n__ubsan_handle_out_of_bounds (lib/ubsan.c:429)\ncpumask_of_node (arch/x86/include/asm/topology.h:72) [inline]\ndo_map_benchmark (kernel/dma/map_benchmark.c:104)\nmap_benchmark_ioctl (kernel/dma/map_benchmark.c:246)\nfull_proxy_unlocked_ioctl (fs/debugfs/file.c:333)\n__x64_sys_ioctl (fs/ioctl.c:890)\ndo_syscall_64 (arch/x86/entry/common.c:83)\nentry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)\n\nUse cpumask_of_node() in place when binding a kernel thread to a cpuset\nof a particular node.\n\nNote that the provided node id is checked inside map_benchmark_ioctl().\nIt's just a NUMA_NO_NODE case which is not handled properly later.\n\nFound by Linux Verification Center (linuxtesting.org)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"b41b0018e8ca06e985e87220a618ec633988fd13","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"8e1ba9df9a35e8dc64f657a64e523c79ba01e464","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"5a91116b003175302f2e6ad94b76fb9b5a141a41","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"50ee21bfc005e69f183d6b4b454e33f0c2571e1f","versionType":"git"},{"version":"65789daa8087e125927230ccb7e1eab13999b0cf","status":"affected","lessThan":"e64746e74f717961250a155e14c156616fcd981f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/map_benchmark.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.161","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.93","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.33","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.4","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/dma/map_benchmark.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13"},{"url":"https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464"},{"url":"https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41"},{"url":"https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f"},{"url":"https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:20:48.721Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.161"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.1.93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.6.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.9.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"linux","product":"linux_kernel","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"}],"cpes":["cpe:2.3:o:linux:linux_kernel:5.11:*:*:*:*:*:*:*"]},{"vendor":"linux","product":"linux_kernel","defaultStatus":"unaffected","versions":[{"version":"65789daa8087","status":"affected","lessThan":"b41b0018e8ca","versionType":"git"},{"version":"65789daa8087","status":"affected","lessThan":"8e1ba9df9a35","versionType":"git"},{"version":"65789daa8087","status":"affected","lessThan":"5a91116b0031","versionType":"git"},{"version":"65789daa8087","status":"affected","lessThan":"50ee21bfc005","versionType":"git"},{"version":"65789daa8087","status":"affected","lessThan":"e64746e74f71","versionType":"git"}],"cpes":["cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-08-20T03:55:13.483536Z","id":"CVE-2024-39277","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","type":"CWE","lang":"en","description":"CWE-125 Out-of-bounds Read"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-20T13:31:39.441Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/b41b0018e8ca06e985e87220a618ec633988fd13","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8e1ba9df9a35e8dc64f657a64e523c79ba01e464","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5a91116b003175302f2e6ad94b76fb9b5a141a41","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/50ee21bfc005e69f183d6b4b454e33f0c2571e1f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e64746e74f717961250a155e14c156616fcd981f","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:19:20.704Z"}}]}}}