CVE-2026-139019

PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()

Published Nov 30, 2026 CVSS 3.1 · 6.4 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()

cpu_pm_notify() walks the notifier chain lockless under only
rcu_read_lock(). That only works if a removed notifier block is not
freed until every concurrent walker is done with it.

The chain used to be an atomic_notifier, whose unregister ends in
synchronize_rcu(). Commit b2f6662ac08d ("PM: cpu: Make notifier chain
use a raw_spinlock_t") switched it over to a raw_notifier, and in
doing so replaced that with raw_notifier_chain_unregister(), which
does not synchronize. The grace period quietly went away, so a driver
that frees the memory holding its notifier block right after
cpu_pm_unregister_notifier() returns can race with a concurrent
walker:

cpu1 (idle exit) cpu2 (driver remove)
---------------- --------------------
cpu_pm_notify(CPU_PM_EXIT)
rcu_read_lock()
nb = rcu_dereference_raw(*nl)
cpu_pm_unregister_notifier(&od->nb)
unlink, no grace period
remove() frees od (devm)
nb->notifier_call(nb, ...)
/* use after free */

The rcu_read_lock() on cpu1 does not stop cpu2 from freeing the
block, and nothing else does. The read side is the idle exit path,
so this can hit on any system where a driver with a cpu_pm notifier
gets unbound.

Add the grace period back. It is only needed when a notifier was
actually removed, so wait on success and return -ENOENT without
waiting otherwise. The kerneldoc gets back the "may sleep" note that
the same commit dropped.

[ rjw: Subject tweak ]

Analysis

AI-generated

Technical impact

In the Linux kernel the notifier chain for CPU power‑management events was switched from an atomic notifier to a raw notifier, removing the automatic RCU grace‑period that previously synchronized the removal of notifier blocks. The notifier chain now unregisters without waiting for readers, allowing a driver that frees its notifier block immediately after cpu_pm_unregister_notifier() to race with a concurrent walker that is still executing under rcu_read_lock(). This use‑after‑free can corrupt kernel memory and potentially allow an attacker to execute arbitrary code with kernel privileges. The vulnerability is a classic kernel memory safety flaw and can have catastrophic consequences if leveraged correctly.

Affected Systems

All Linux kernel installations that support CPU power‑management notifier chains and that run drivers capable of registering such notifiers are affected. The issue exists in kernel versions that contain the switch to a raw_notifier chain made by commit b2f6662ac08d. The problem will affect any system where a driver is removed immediately after a CPU power‑management event, especially those using device‑managed memory for notifier blocks.

Risk and Exploitability

The vulnerability is a kernel‑level use‑after‑free, which traditionally is considered a severe flaw with the potential for remote code execution. Formal CVSS, EPSS, and KEV scores are not provided in the advisory, but the absence of safeguards and the kernel privilege level imply a high risk. Attackers need only trigger a CPU power‑management event while a driver removes its notifier block, a scenario that can occur on any machine with such drivers. Unless mitigated, exploitation could compromise the entire system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the fix which restores synchronize_rcu() during cpu_pm_unregister_notifier(), ensuring the register/unregister operations are RCU‑synchronized.
  • If an immediate kernel upgrade is not possible, alter the affected driver to delay freeing the notifier block until after the RCU grace period, or replace the raw notifier chain with an atomic notifier that automatically provides the necessary synchronization.
  • Verify that all drivers registering CPU power‑management notifiers implement proper cleanup and avoid device‑managed memory that can be reclaimed while readers are still active.

Generated by OpenCVE AI on November 30, 2026 at 18:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier() cpu_pm_notify() walks the notifier chain lockless under only rcu_read_lock(). That only works if a removed notifier block is not freed until every concurrent walker is done with it. The chain used to be an atomic_notifier, whose unregister ends in synchronize_rcu(). Commit b2f6662ac08d ("PM: cpu: Make notifier chain use a raw_spinlock_t") switched it over to a raw_notifier, and in doing so replaced that with raw_notifier_chain_unregister(), which does not synchronize. The grace period quietly went away, so a driver that frees the memory holding its notifier block right after cpu_pm_unregister_notifier() returns can race with a concurrent walker: cpu1 (idle exit) cpu2 (driver remove) ---------------- -------------------- cpu_pm_notify(CPU_PM_EXIT) rcu_read_lock() nb = rcu_dereference_raw(*nl) cpu_pm_unregister_notifier(&od->nb) unlink, no grace period remove() frees od (devm) nb->notifier_call(nb, ...) /* use after free */ The rcu_read_lock() on cpu1 does not stop cpu2 from freeing the block, and nothing else does. The read side is the idle exit path, so this can hit on any system where a driver with a cpu_pm notifier gets unbound. Add the grace period back. It is only needed when a notifier was actually removed, so wait on success and return -ENOENT without waiting otherwise. The kerneldoc gets back the "may sleep" note that the same commit dropped. [ rjw: Subject tweak ]
Title PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:27 PM