CVE-2024-35989
"idxd Linux Kernel DMAengine Vulnerability"
Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Fix oops during rmmod on single-CPU platforms During the removal of the idxd driver, registered offline callback is invoked as part of the clean up process. However, on systems with only one CPU online, no valid target is available to migrate the perf context, resulting in a kernel oops: BUG: unable to handle page fault for address: 000000000002a2b8 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 1470e1067 P4D 0 Oops: 0002 [#1] PREEMPT SMP NOPTI CPU: 0 PID: 20 Comm: cpuhp/0 Not tainted 6.8.0-rc6-dsa+ #57 Hardware name: Intel Corporation AvenueCity/AvenueCity, BIOS BHSDCRB1.86B.2492.D03.2307181620 07/18/2023 RIP: 0010:mutex_lock+0x2e/0x50 ... Call Trace: <TASK> __die+0x24/0x70 page_fault_oops+0x82/0x160 do_user_addr_fault+0x65/0x6b0 __pfx___rdmsr_safe_on_cpu+0x10/0x10 exc_page_fault+0x7d/0x170 asm_exc_page_fault+0x26/0x30 mutex_lock+0x2e/0x50 mutex_lock+0x1e/0x50 perf_pmu_migrate_context+0x87/0x1f0 perf_event_cpu_offline+0x76/0x90 [idxd] cpuhp_invoke_callback+0xa2/0x4f0 __pfx_perf_event_cpu_offline+0x10/0x10 [idxd] cpuhp_thread_fun+0x98/0x150 smpboot_thread_fn+0x27/0x260 smpboot_thread_fn+0x1af/0x260 __pfx_smpboot_thread_fn+0x10/0x10 kthread+0x103/0x140 __pfx_kthread+0x10/0x10 ret_from_fork+0x31/0x50 __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1b/0x30 <TASK> Fix the issue by preventing the migration of the perf context to an invalid target.
INFO
Published Date :
May 20, 2024, 10:15 a.m.
Last Modified :
April 4, 2025, 2:32 p.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-35989
.
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-35989
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-35989
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.
-
Initial Analysis by [email protected]
Apr. 04, 2025
Action Type Old Value New Value Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.30 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.90 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.13 up to (excluding) 5.15.158 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.9 *cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:* Added Reference Type CVE: https://git.kernel.org/stable/c/023b6390a15a98f9c3aa5e7da78d485d5384a08e Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/023b6390a15a98f9c3aa5e7da78d485d5384a08e Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/47533176fdcef17b114a6f688bc872901c1ec6bb Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/47533176fdcef17b114a6f688bc872901c1ec6bb Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/9edd3aa34d50f27b97be30b2ba4a6af0945ff56b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/9edd3aa34d50f27b97be30b2ba4a6af0945ff56b Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/f221033f5c24659dc6ad7e5cf18fb1b075f4a8be Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/f221033f5c24659dc6ad7e5cf18fb1b075f4a8be Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/f976eca36cdf94e32fa4f865db0e7c427c9aa33c Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/f976eca36cdf94e32fa4f865db0e7c427c9aa33c Types: Patch -
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/023b6390a15a98f9c3aa5e7da78d485d5384a08e Added Reference https://git.kernel.org/stable/c/47533176fdcef17b114a6f688bc872901c1ec6bb Added Reference https://git.kernel.org/stable/c/9edd3aa34d50f27b97be30b2ba4a6af0945ff56b Added Reference https://git.kernel.org/stable/c/f221033f5c24659dc6ad7e5cf18fb1b075f4a8be Added Reference https://git.kernel.org/stable/c/f976eca36cdf94e32fa4f865db0e7c427c9aa33c -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 31, 2024
Action Type Old Value New Value Added CVSS V3.1 CISA-ADP AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 29, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 20, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Fix oops during rmmod on single-CPU platforms During the removal of the idxd driver, registered offline callback is invoked as part of the clean up process. However, on systems with only one CPU online, no valid target is available to migrate the perf context, resulting in a kernel oops: BUG: unable to handle page fault for address: 000000000002a2b8 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 1470e1067 P4D 0 Oops: 0002 [#1] PREEMPT SMP NOPTI CPU: 0 PID: 20 Comm: cpuhp/0 Not tainted 6.8.0-rc6-dsa+ #57 Hardware name: Intel Corporation AvenueCity/AvenueCity, BIOS BHSDCRB1.86B.2492.D03.2307181620 07/18/2023 RIP: 0010:mutex_lock+0x2e/0x50 ... Call Trace: <TASK> __die+0x24/0x70 page_fault_oops+0x82/0x160 do_user_addr_fault+0x65/0x6b0 __pfx___rdmsr_safe_on_cpu+0x10/0x10 exc_page_fault+0x7d/0x170 asm_exc_page_fault+0x26/0x30 mutex_lock+0x2e/0x50 mutex_lock+0x1e/0x50 perf_pmu_migrate_context+0x87/0x1f0 perf_event_cpu_offline+0x76/0x90 [idxd] cpuhp_invoke_callback+0xa2/0x4f0 __pfx_perf_event_cpu_offline+0x10/0x10 [idxd] cpuhp_thread_fun+0x98/0x150 smpboot_thread_fn+0x27/0x260 smpboot_thread_fn+0x1af/0x260 __pfx_smpboot_thread_fn+0x10/0x10 kthread+0x103/0x140 __pfx_kthread+0x10/0x10 ret_from_fork+0x31/0x50 __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1b/0x30 <TASK> Fix the issue by preventing the migration of the perf context to an invalid target. Added Reference kernel.org https://git.kernel.org/stable/c/9edd3aa34d50f27b97be30b2ba4a6af0945ff56b [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/023b6390a15a98f9c3aa5e7da78d485d5384a08e [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f976eca36cdf94e32fa4f865db0e7c427c9aa33c [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/47533176fdcef17b114a6f688bc872901c1ec6bb [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f221033f5c24659dc6ad7e5cf18fb1b075f4a8be [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-35989
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-35989
weaknesses.