CVE-2024-35929
Linux Kernel RCU NOCB Bypass Lock Vulnerability
Description
In the Linux kernel, the following vulnerability has been resolved: rcu/nocb: Fix WARN_ON_ONCE() in the rcu_nocb_bypass_lock() For the kernels built with CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y and CONFIG_RCU_LAZY=y, the following scenarios will trigger WARN_ON_ONCE() in the rcu_nocb_bypass_lock() and rcu_nocb_wait_contended() functions: CPU2 CPU11 kthread rcu_nocb_cb_kthread ksys_write rcu_do_batch vfs_write rcu_torture_timer_cb proc_sys_write __kmem_cache_free proc_sys_call_handler kmemleak_free drop_caches_sysctl_handler delete_object_full drop_slab __delete_object shrink_slab put_object lazy_rcu_shrink_scan call_rcu rcu_nocb_flush_bypass __call_rcu_commn rcu_nocb_bypass_lock raw_spin_trylock(&rdp->nocb_bypass_lock) fail atomic_inc(&rdp->nocb_lock_contended); rcu_nocb_wait_contended WARN_ON_ONCE(smp_processor_id() != rdp->cpu); WARN_ON_ONCE(atomic_read(&rdp->nocb_lock_contended)) | |_ _ _ _ _ _ _ _ _ _same rdp and rdp->cpu != 11_ _ _ _ _ _ _ _ _ __| Reproduce this bug with "echo 3 > /proc/sys/vm/drop_caches". This commit therefore uses rcu_nocb_try_flush_bypass() instead of rcu_nocb_flush_bypass() in lazy_rcu_shrink_scan(). If the nocb_bypass queue is being flushed, then rcu_nocb_try_flush_bypass will return directly.
INFO
Published Date :
May 19, 2024, 11:15 a.m.
Last Modified :
Dec. 30, 2024, 7:56 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2024-35929 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
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-35929
.
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).
None
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-35929
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-35929
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]
Dec. 30, 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 Added CWE NIST NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 6.6.27 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.6 Changed Reference Type https://git.kernel.org/stable/c/4d58c9fb45c70e62c19e8be3f3605889c47601bc No Types Assigned https://git.kernel.org/stable/c/4d58c9fb45c70e62c19e8be3f3605889c47601bc Patch Changed Reference Type https://git.kernel.org/stable/c/4d58c9fb45c70e62c19e8be3f3605889c47601bc No Types Assigned https://git.kernel.org/stable/c/4d58c9fb45c70e62c19e8be3f3605889c47601bc Patch Changed Reference Type https://git.kernel.org/stable/c/927d1f4f77e4784ab3944a9df86ab14d1cd3185a No Types Assigned https://git.kernel.org/stable/c/927d1f4f77e4784ab3944a9df86ab14d1cd3185a Patch Changed Reference Type https://git.kernel.org/stable/c/927d1f4f77e4784ab3944a9df86ab14d1cd3185a No Types Assigned https://git.kernel.org/stable/c/927d1f4f77e4784ab3944a9df86ab14d1cd3185a Patch Changed Reference Type https://git.kernel.org/stable/c/dda98810b552fc6bf650f4270edeebdc2f28bd3f No Types Assigned https://git.kernel.org/stable/c/dda98810b552fc6bf650f4270edeebdc2f28bd3f Patch Changed Reference Type https://git.kernel.org/stable/c/dda98810b552fc6bf650f4270edeebdc2f28bd3f No Types Assigned https://git.kernel.org/stable/c/dda98810b552fc6bf650f4270edeebdc2f28bd3f 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/4d58c9fb45c70e62c19e8be3f3605889c47601bc Added Reference https://git.kernel.org/stable/c/927d1f4f77e4784ab3944a9df86ab14d1cd3185a Added Reference https://git.kernel.org/stable/c/dda98810b552fc6bf650f4270edeebdc2f28bd3f -
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. 19, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: rcu/nocb: Fix WARN_ON_ONCE() in the rcu_nocb_bypass_lock() For the kernels built with CONFIG_RCU_NOCB_CPU_DEFAULT_ALL=y and CONFIG_RCU_LAZY=y, the following scenarios will trigger WARN_ON_ONCE() in the rcu_nocb_bypass_lock() and rcu_nocb_wait_contended() functions: CPU2 CPU11 kthread rcu_nocb_cb_kthread ksys_write rcu_do_batch vfs_write rcu_torture_timer_cb proc_sys_write __kmem_cache_free proc_sys_call_handler kmemleak_free drop_caches_sysctl_handler delete_object_full drop_slab __delete_object shrink_slab put_object lazy_rcu_shrink_scan call_rcu rcu_nocb_flush_bypass __call_rcu_commn rcu_nocb_bypass_lock raw_spin_trylock(&rdp->nocb_bypass_lock) fail atomic_inc(&rdp->nocb_lock_contended); rcu_nocb_wait_contended WARN_ON_ONCE(smp_processor_id() != rdp->cpu); WARN_ON_ONCE(atomic_read(&rdp->nocb_lock_contended)) | |_ _ _ _ _ _ _ _ _ _same rdp and rdp->cpu != 11_ _ _ _ _ _ _ _ _ __| Reproduce this bug with "echo 3 > /proc/sys/vm/drop_caches". This commit therefore uses rcu_nocb_try_flush_bypass() instead of rcu_nocb_flush_bypass() in lazy_rcu_shrink_scan(). If the nocb_bypass queue is being flushed, then rcu_nocb_try_flush_bypass will return directly. Added Reference kernel.org https://git.kernel.org/stable/c/4d58c9fb45c70e62c19e8be3f3605889c47601bc [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/927d1f4f77e4784ab3944a9df86ab14d1cd3185a [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/dda98810b552fc6bf650f4270edeebdc2f28bd3f [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-35929
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-35929
weaknesses.