{"id":"CVE-2026-139019","aliases":["CVE-2026-139019"],"related":[],"kind":"vulnerability","state":"published","title":"PM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()\n\ncpu_pm_notify() walks the notifier chain lockless under only\nrcu_read_lock(). That only works if a removed notifier block is not\nfreed until every concurrent walker is done with it.\n\nThe chain used to be an atomic_notifier, whose unregister ends in\nsynchronize_rcu(). Commit b2f6662ac08d (\"PM: cpu: Make notifier chain\nuse a raw_spinlock_t\") switched it over to a raw_notifier, and in\ndoing so replaced that with raw_notifier_chain_unregister(), which\ndoes not synchronize. The grace period quietly went away, so a driver\nthat frees the memory holding its notifier block right after\ncpu_pm_unregister_notifier() returns can race with a concurrent\nwalker:\n\n  cpu1 (idle exit)                  cpu2 (driver remove)\n  ----------------                  --------------------\n  cpu_pm_notify(CPU_PM_EXIT)\n    rcu_read_lock()\n    nb = rcu_dereference_raw(*nl)\n                                    cpu_pm_unregister_notifier(&od->nb)\n                                      unlink, no grace period\n                                      remove() frees od (devm)\n    nb->notifier_call(nb, ...)\n      /* use after free */\n\nThe rcu_read_lock() on cpu1 does not stop cpu2 from freeing the\nblock, and nothing else does. The read side is the idle exit path,\nso this can hit on any system where a driver with a cpu_pm notifier\ngets unbound.\n\nAdd the grace period back. It is only needed when a notifier was\nactually removed, so wait on success and return -ENOENT without\nwaiting otherwise. The kerneldoc gets back the \"may sleep\" note that\nthe same commit dropped.\n\n[ rjw: Subject tweak ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPM: CPU: Restore synchronize_rcu() to cpu_pm_unregister_notifier()\n\ncpu_pm_notify() walks the notifier chain lockless under only\nrcu_read_lock(). That only works if a removed notifier block is not\nfreed until every concurrent walker is done with it.\n\nThe chain used to be an atomic_notifier, whose unregister ends in\nsynchronize_rcu(). Commit b2f6662ac08d (\"PM: cpu: Make notifier chain\nuse a raw_spinlock_t\") switched it over to a raw_notifier, and in\ndoing so replaced that with raw_notifier_chain_unregister(), which\ndoes not synchronize. The grace period quietly went away, so a driver\nthat frees the memory holding its notifier block right after\ncpu_pm_unregister_notifier() returns can race with a concurrent\nwalker:\n\n  cpu1 (idle exit)                  cpu2 (driver remove)\n  ----------------                  --------------------\n  cpu_pm_notify(CPU_PM_EXIT)\n    rcu_read_lock()\n    nb = rcu_dereference_raw(*nl)\n                                    cpu_pm_unregister_notifier(&od->nb)\n                                      unlink, no grace period\n                                      remove() frees od (devm)\n    nb->notifier_call(nb, ...)\n      /* use after free */\n\nThe rcu_read_lock() on cpu1 does not stop cpu2 from freeing the\nblock, and nothing else does. The read side is the idle exit path,\nso this can hit on any system where a driver with a cpu_pm notifier\ngets unbound.\n\nAdd the grace period back. It is only needed when a notifier was\nactually removed, so wait on success and return -ENOENT without\nwaiting otherwise. The kerneldoc gets back the \"may sleep\" note that\nthe same commit dropped.\n\n[ rjw: Subject tweak ]","source":"cvelist"}],"published":"2026-11-30T13:27:07.267Z","modified":"2026-11-30T14:18:05.457Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4b7874a32ec23cc4892e7c9ffac1dd8160ea3697","fixed":"e8eeacaf930b0cce225a0cb1e506cbcf6ed99176","status":"affected"},{"type":"git","introduced":"b2f6662ac08d0e7c25574ce53623c71bdae9dd78","fixed":"5ce33cc21fa0d96abb4d3a8d836ae831cdc90f4f","status":"affected"},{"type":"git","introduced":"b2f6662ac08d0e7c25574ce53623c71bdae9dd78","fixed":"0d2c31dd508a0397c3f3a77a56992b2fad8ebb0b","status":"affected"},{"type":"git","introduced":"b2f6662ac08d0e7c25574ce53623c71bdae9dd78","fixed":"e8207f83070d12b3a4ab6db39308b4cb44c232ca","status":"affected"},{"type":"git","introduced":"b2f6662ac08d0e7c25574ce53623c71bdae9dd78","fixed":"068f07643851341ce83d6ee112b963c3a5ccf29e","status":"affected"},{"type":"git","introduced":"b2f6662ac08d0e7c25574ce53623c71bdae9dd78","fixed":"58492634b0438c183df97b8a70bc66d2a74b6781","status":"affected"},{"type":"git","introduced":"b2f6662ac08d0e7c25574ce53623c71bdae9dd78","fixed":"0a24ad2b5024d8dc9d6df8b936b006be1a8a809c","status":"affected"},{"type":"git","introduced":"b2f6662ac08d0e7c25574ce53623c71bdae9dd78","fixed":"61f7eee7d4664079fbce821576891c3ee5ccf597","status":"affected"},{"type":"git","version":"2f20c3cb46d97e97ef72d29b4794a3072f0a2e17","status":"affected"},{"type":"git","version":"f4a79b7d8bd6171ce60902a5d3ef9badec397ab3","status":"affected"},{"type":"semver","introduced":"5.10.65","fixed":"5.10.275","status":"affected"},{"type":"semver","introduced":"5.13.17","fixed":"5.14","status":"affected"},{"type":"semver","introduced":"5.14.4","fixed":"5.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e8eeacaf930b0cce225a0cb1e506cbcf6ed99176","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ce33cc21fa0d96abb4d3a8d836ae831cdc90f4f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d2c31dd508a0397c3f3a77a56992b2fad8ebb0b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8207f83070d12b3a4ab6db39308b4cb44c232ca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/068f07643851341ce83d6ee112b963c3a5ccf29e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/58492634b0438c183df97b8a70bc66d2a74b6781","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a24ad2b5024d8dc9d6df8b936b006be1a8a809c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/61f7eee7d4664079fbce821576891c3ee5ccf597","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139019","url":"https://www.cve.org/CVERecord?id=CVE-2026-139019","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:07.267Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139019","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139019","licence":"Public domain","modified":"2026-11-30T14:18:05.457Z"}],"updatedAt":"2026-11-30T14:32:46.957Z","epss":{"score":0.00211,"percentile":0.12005,"date":"2026-12-01T12:00:22.000Z"}}