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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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 ]

ProductVersions
Linux Linux4b7874a32ec23cc4892e7c9ffac1dd8160ea3697 to before e8eeacaf930b0cce225a0cb1e506cbcf6ed99176 Affectedb2f6662ac08d0e7c25574ce53623c71bdae9dd78 to before 5ce33cc21fa0d96abb4d3a8d836ae831cdc90f4f Affectedb2f6662ac08d0e7c25574ce53623c71bdae9dd78 to before 0d2c31dd508a0397c3f3a77a56992b2fad8ebb0b Affectedb2f6662ac08d0e7c25574ce53623c71bdae9dd78 to before e8207f83070d12b3a4ab6db39308b4cb44c232ca Affectedb2f6662ac08d0e7c25574ce53623c71bdae9dd78 to before 068f07643851341ce83d6ee112b963c3a5ccf29e Affectedb2f6662ac08d0e7c25574ce53623c71bdae9dd78 to before 58492634b0438c183df97b8a70bc66d2a74b6781 Affectedb2f6662ac08d0e7c25574ce53623c71bdae9dd78 to before 0a24ad2b5024d8dc9d6df8b936b006be1a8a809c Affectedb2f6662ac08d0e7c25574ce53623c71bdae9dd78 to before 61f7eee7d4664079fbce821576891c3ee5ccf597 Affected2f20c3cb46d97e97ef72d29b4794a3072f0a2e17 Affectedf4a79b7d8bd6171ce60902a5d3ef9badec397ab3 Affected5.10.65 to before 5.10.275 Affected5.13.17 to before 5.14 Affected5.14.4 to before 5.15 Affected
Linux Linux5.15 Affectedbefore 5.15 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.