Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2024-56547 — kernel

🟡 CVSS 4.7 — Medium ✅ No Known Exploit NVD
4.7
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

rcu/nocb: Fix missed RCU barrier on deoffloading

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is high, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

  • Attack vector: Local — a local account, shell or session on the host is needed.
  • Attack complexity: High — the attacker first has to win a race, learn a secret or otherwise prepare the target.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Affected software

CVE-2024-56547 is recorded against 2 packages.

  • kernel (from 6.12.0 up to 6.12.2)
  • linux-kernel (from 6.12 up to 6.12.2)

Timeline and source

Published on 27 December 2024 and last revised on 12 August 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

Other advisories for this package

kernel has other advisories on record. If you are patching this one, these are worth checking on the same host:

CVE-2024-56547 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 4.7
CVSS Vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2024-12-27
Updated 2026-08-20
Modified 2026-08-12

Affected Packages

Software From version Fixed in
kernel 6.12.0 6.12.2
linux-kernel 6.12 6.12.2

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in kernel

CVE-2024-56547 is rated CVSS 4.7 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2024
✓