# CVE-2024-35929: rcu/nocb: Fix WARN\_ON\_ONCE() in the rcu\_nocb\_bypass\_lock()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **Published:** 2024-05-19T10:10:38.388Z
- **Modified:** 2026-06-17T07:35:44.473Z

## Who should check

- Anyone running Linux \>= 7625926086765123251f765d91fc3a70617d334d, \< 4d58c9fb45c70e62c19e8be3f3605889c47601bc; \>= 7625926086765123251f765d91fc3a70617d334d, \< 927d1f4f77e4784ab3944a9df86ab14d1cd3185a; \>= 7625926086765123251f765d91fc3a70617d334d, \< dda98810b552fc6bf650f4270edeebdc2f28bd3f
- Anyone running Linux 6.5

## 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.

## Affected and fixed versions

- Linux: \>= 7625926086765123251f765d91fc3a70617d334d, \< 4d58c9fb45c70e62c19e8be3f3605889c47601bc; \>= 7625926086765123251f765d91fc3a70617d334d, \< 927d1f4f77e4784ab3944a9df86ab14d1cd3185a; \>= 7625926086765123251f765d91fc3a70617d334d, \< dda98810b552fc6bf650f4270edeebdc2f28bd3f (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35929. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35929.md
Affected: Linux >= 7625926086765123251f765d91fc3a70617d334d, < 4d58c9fb45c70e62c19e8be3f3605889c47601bc; >= 7625926086765123251f765d91fc3a70617d334d, < 927d1f4f77e4784ab3944a9df86ab14d1cd3185a; >= 7625926086765123251f765d91fc3a70617d334d, < dda98810b552fc6bf650f4270edeebdc2f28bd3f; Linux 6.5
Fixed in: Linux 4d58c9fb45c70e62c19e8be3f3605889c47601bc, Linux 927d1f4f77e4784ab3944a9df86ab14d1cd3185a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35929 being exploited?

There is no confirmed exploitation: CVE-2024-35929 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35929?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35929?

Linux \>= 7625926086765123251f765d91fc3a70617d334d, \< 4d58c9fb45c70e62c19e8be3f3605889c47601bc; \>= 7625926086765123251f765d91fc3a70617d334d, \< 927d1f4f77e4784ab3944a9df86ab14d1cd3185a; \>= 7625926086765123251f765d91fc3a70617d334d, \< dda98810b552fc6bf650f4270edeebdc2f28bd3f; Linux 6.5.

### Is there a fix for CVE-2024-35929?

Yes. Fixed in Linux 4d58c9fb45c70e62c19e8be3f3605889c47601bc, Linux 927d1f4f77e4784ab3944a9df86ab14d1cd3185a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-35929?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4d58c9fb45c70e62c19e8be3f3605889c47601bc>
- patch: <https://git.kernel.org/stable/c/927d1f4f77e4784ab3944a9df86ab14d1cd3185a>
- patch: <https://git.kernel.org/stable/c/dda98810b552fc6bf650f4270edeebdc2f28bd3f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35929>

HTML: <https://flawdb.com/CVE-2024-35929> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35929>
