# CVE-2024-56547: rcu/nocb: Fix missed RCU barrier on deoffloading

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 9, 2026-11-26)
- **Published:** 2024-12-27T14:11:28.548Z
- **Modified:** 2026-06-17T08:12:21.670Z

## Who should check

- Anyone running Linux \>= 1fcb932c8b5ce86219d7dedcd63659351a43291c, \< 224b62028959858294789772d372dcb36cf5f820; \>= 1fcb932c8b5ce86219d7dedcd63659351a43291c, \< 2996980e20b7a54a1869df15b3445374b850b155
- Anyone running Linux 6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

rcu/nocb: Fix missed RCU barrier on deoffloading

Currently, running rcutorture test with torture\_type=rcu fwd\_progress=8
n\_barrier\_cbs=8 nocbs\_nthreads=8 nocbs\_toggle=100 onoff\_interval=60
test\_boost=2, will trigger the following warning:

	WARNING: CPU: 19 PID: 100 at kernel/rcu/tree\_nocb.h:1061 rcu\_nocb\_rdp\_deoffload+0x292/0x2a0
	RIP: 0010:rcu\_nocb\_rdp\_deoffload+0x292/0x2a0
	 Call Trace:
	  \<TASK\>
	  ? \_\_warn+0x7e/0x120
	  ? rcu\_nocb\_rdp\_deoffload+0x292/0x2a0
	  ? report\_bug+0x18e/0x1a0
	  ? handle\_bug+0x3d/0x70
	  ? exc\_invalid\_op+0x18/0x70
	  ? asm\_exc\_invalid\_op+0x1a/0x20
	  ? rcu\_nocb\_rdp\_deoffload+0x292/0x2a0
	  rcu\_nocb\_cpu\_deoffload+0x70/0xa0
	  rcu\_nocb\_toggle+0x136/0x1c0
	  ? \_\_pfx\_rcu\_nocb\_toggle+0x10/0x10
	  kthread+0xd1/0x100
	  ? \_\_pfx\_kthread+0x10/0x10
	  ret\_from\_fork+0x2f/0x50
	  ? \_\_pfx\_kthread+0x10/0x10
	  ret\_from\_fork\_asm+0x1a/0x30
	  \</TASK\>

CPU0                               CPU2                          CPU3
//rcu\_nocb\_toggle             //nocb\_cb\_wait                   //rcutorture

// deoffload CPU1             // process CPU1's rdp
rcu\_barrier()
    rcu\_segcblist\_entrain()
        rcu\_segcblist\_add\_len(1);
        // len == 2
        // enqueue barrier
        // callback to CPU1's
        // rdp-\>cblist
                             rcu\_do\_batch()
                                 // invoke CPU1's rdp-\>cblist
                                 // callback
                                 rcu\_barrier\_callback()
                                                             rcu\_barrier()
                                                               mutex\_lock(&rcu\_state.barrier\_mutex);
                                                               // still see len == 2
                                                               // enqueue barrier callback
                                                               // to CPU1's rdp-\>cblist
                                                               rcu\_segcblist\_entrain()
                                                                   rcu\_segcblist\_add\_len(1);
                                                                   // len == 3
                                 // decrement len
                                 rcu\_segcblist\_add\_len(-2);
                             kthread\_parkme()

// CPU1's rdp-\>cblist len == 1
// Warn because there is
// still a pending barrier
// trigger warning
WARN\_ON\_ONCE(rcu\_segcblist\_n\_cbs(&rdp-\>cblist));
cpus\_read\_unlock();

                                                                // wait CPU1 to comes online and
                                                                // invoke barrier callback on
                                                                // CPU1 rdp's-\>cblist
                                                                wait\_for\_completion(&rcu\_state.barrier\_completion);
// deoffload CPU4
cpus\_read\_lock()
  rcu\_barrier()
    mutex\_lock(&rcu\_state.barrier\_mutex);
    // block on barrier\_mutex
    // wait rcu\_barrier() on
    // CPU3 to unlock barrier\_mutex
    // but CPU3 unlock barrier\_mutex
    // need to wait CPU1 comes online
    // when CPU1 going online will block on cpus\_write\_lock

The above scenario will not only trigger a WARN\_ON\_ONCE(), but also
trigger a deadlock.

Thanks to nocb locking, a second racing rcu\_barrier() on an offline CPU
will either observe the decremented callback counter down to 0 and spare
the callback enqueue, or rcuo will observe the new callback and keep
rdp-\>nocb\_cb\_sleep to false.

Therefore check rdp-\>nocb\_cb\_sleep before parking to make sure no
further rcu\_barrier() is waiting on the rdp.

## Affected and fixed versions

- Linux: \>= 1fcb932c8b5ce86219d7dedcd63659351a43291c, \< 224b62028959858294789772d372dcb36cf5f820; \>= 1fcb932c8b5ce86219d7dedcd63659351a43291c, \< 2996980e20b7a54a1869df15b3445374b850b155 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 2996980e20b7a54a1869df15b3445374b850b155 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-56547.md
Affected: Linux >= 1fcb932c8b5ce86219d7dedcd63659351a43291c, < 224b62028959858294789772d372dcb36cf5f820; >= 1fcb932c8b5ce86219d7dedcd63659351a43291c, < 2996980e20b7a54a1869df15b3445374b850b155; Linux 6.12
Fixed in: Linux 224b62028959858294789772d372dcb36cf5f820, Linux 2996980e20b7a54a1869df15b3445374b850b155

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-56547 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 1fcb932c8b5ce86219d7dedcd63659351a43291c, \< 224b62028959858294789772d372dcb36cf5f820; \>= 1fcb932c8b5ce86219d7dedcd63659351a43291c, \< 2996980e20b7a54a1869df15b3445374b850b155; Linux 6.12.

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

Yes. Fixed in Linux 224b62028959858294789772d372dcb36cf5f820, Linux 2996980e20b7a54a1869df15b3445374b850b155. Upgrade Linux to 2996980e20b7a54a1869df15b3445374b850b155 or later.

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

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/224b62028959858294789772d372dcb36cf5f820>
- patch: <https://git.kernel.org/stable/c/2996980e20b7a54a1869df15b3445374b850b155>

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

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