PT-2026-163060
CVE-2026-139019
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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 ]
Found an issue in the description? Have something to add? Feel free to write us 👾