{"id":"CVE-2026-74594","aliases":["CVE-2026-74594"],"related":[],"kind":"vulnerability","state":"published","title":"sched/psi: Shut down rtpoll_timer in psi_cgroup_free()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/psi: Shut down rtpoll_timer in psi_cgroup_free()\n\npsi_schedule_rtpoll_work() is called locklessly from the scheduler hotpath\nand can race psi_trigger_destroy() taking down the last rtpoll trigger under\nrtpoll_trigger_lock:\n\n  psi_schedule_rtpoll_work()        psi_trigger_destroy()\n\n  rcu_read_lock();\n  task = rcu_dereference(rtpoll_task);\n                                    rcu_assign_pointer(rtpoll_task, NULL);\n                                    timer_delete(&rtpoll_timer);\n  mod_timer(&rtpoll_timer, ...);\n  rcu_read_unlock();\n                                    synchronize_rcu();\n                                    kthread_stop(task_to_destroy);\n\nThe group can then be freed with the re-armed timer still pending, and\npoll_timer_fn() runs on freed memory.\n\n461daba06bdc (\"psi: eliminate kthread_worker from psi trigger scheduling\nmechanism\") deleted the timer synchronously after the synchronize_rcu(),\nwhich prevented this but raced trigger creation instead: the deletion could\ncancel the timer that a new trigger set armed during the grace period and,\nas creation also reinitialized the timer at the time, corrupt it.\n8f91efd870ea (\"psi: Fix race between psi_trigger_create/destroy\") moved the\ninitialization into group_init() and the deletion into the locked section,\ntrading the creation races for the window above.\n\nNeither placement in the destruction path works. A pending timer firing\nwhile the group is alive is harmless though. poll_timer_fn() just wakes the\nrtpoll waitqueue and doesn't re-arm itself. Bind the timer to the group's\nlifetime instead and shut it down in psi_cgroup_free(). Nothing can arm it\nby then. timer_shutdown_sync() because the timer is never armed again.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/psi: Shut down rtpoll_timer in psi_cgroup_free()\n\npsi_schedule_rtpoll_work() is called locklessly from the scheduler hotpath\nand can race psi_trigger_destroy() taking down the last rtpoll trigger under\nrtpoll_trigger_lock:\n\n  psi_schedule_rtpoll_work()        psi_trigger_destroy()\n\n  rcu_read_lock();\n  task = rcu_dereference(rtpoll_task);\n                                    rcu_assign_pointer(rtpoll_task, NULL);\n                                    timer_delete(&rtpoll_timer);\n  mod_timer(&rtpoll_timer, ...);\n  rcu_read_unlock();\n                                    synchronize_rcu();\n                                    kthread_stop(task_to_destroy);\n\nThe group can then be freed with the re-armed timer still pending, and\npoll_timer_fn() runs on freed memory.\n\n461daba06bdc (\"psi: eliminate kthread_worker from psi trigger scheduling\nmechanism\") deleted the timer synchronously after the synchronize_rcu(),\nwhich prevented this but raced trigger creation instead: the deletion could\ncancel the timer that a new trigger set armed during the grace period and,\nas creation also reinitialized the timer at the time, corrupt it.\n8f91efd870ea (\"psi: Fix race between psi_trigger_create/destroy\") moved the\ninitialization into group_init() and the deletion into the locked section,\ntrading the creation races for the window above.\n\nNeither placement in the destruction path works. A pending timer firing\nwhile the group is alive is harmless though. poll_timer_fn() just wakes the\nrtpoll waitqueue and doesn't re-arm itself. Bind the timer to the group's\nlifetime instead and shut it down in psi_cgroup_free(). Nothing can arm it\nby then. timer_shutdown_sync() because the timer is never armed again.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsched/psi: Apagar rtpoll_timer en psi_cgroup_free()\n\npsi_schedule_rtpoll_work() se llama sin bloqueo desde la ruta crítica del planificador y puede competir con psi_trigger_destroy() al eliminar el último disparador rtpoll bajo rtpoll_trigger_lock:\n\n  psi_schedule_rtpoll_work()        psi_trigger_destroy()\n\n  rcu_read_lock();\n  task = rcu_dereference(rtpoll_task);\n                                    rcu_assign_pointer(rtpoll_task, NULL);\n                                    timer_delete(&rtpoll_timer);\n  mod_timer(&rtpoll_timer, ...);\n  rcu_read_unlock();\n                                    synchronize_rcu();\n                                    kthread_stop(task_to_destroy);\n\nEl grupo puede entonces ser liberado con el temporizador rearreglado aún pendiente, y poll_timer_fn() se ejecuta en memoria liberada.\n\n461daba06bdc ('psi: eliminar kthread_worker del mecanismo de planificación de disparadores psi') eliminó el temporizador sincrónicamente después del synchronize_rcu(), lo que evitó esto pero en su lugar compitió con la creación del disparador: la eliminación podría cancelar el temporizador que un nuevo conjunto de disparadores armó durante el período de gracia y, como la creación también reinicializó el temporizador en ese momento, corromperlo.\n8f91efd870ea ('psi: Corregir condición de carrera entre psi_trigger_create/destroy') movió la inicialización a group_init() y la eliminación a la sección bloqueada, intercambiando las condiciones de carrera de creación por la ventana anterior.\n\nNinguna de las ubicaciones en la ruta de destrucción funciona. Un temporizador pendiente que se dispara mientras el grupo está activo es inofensivo, sin embargo. poll_timer_fn() solo despierta la cola de espera rtpoll y no se rearma a sí mismo. Enlazar el temporizador a la vida útil del grupo en su lugar y apagarlo en psi_cgroup_free(). Nada puede armarlo para entonces. timer_shutdown_sync() porque el temporizador nunca se vuelve a armar.","source":"nvd"}],"published":"2026-08-22T15:31:44.894Z","modified":"2026-10-16T20:17:44.737Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6bfcb6178925b1fd28c102e53d403091b8f49396","fixed":"4addb102154b7cf6e2310ccbe20c3c08619e520d","status":"affected"},{"type":"git","introduced":"8f91efd870ea5d8bc10b0fcc9740db51cd4c0c83","fixed":"894a9300d7fb2e2951da92e565ae6de7ddfb0a69","status":"affected"},{"type":"git","introduced":"8f91efd870ea5d8bc10b0fcc9740db51cd4c0c83","fixed":"1e5ca82eee59caca6988f9d6e859786aab8a5fa0","status":"affected"},{"type":"git","introduced":"8f91efd870ea5d8bc10b0fcc9740db51cd4c0c83","fixed":"310b5a537a78c358a4cd244bd767c1a517a05459","status":"affected"},{"type":"git","introduced":"8f91efd870ea5d8bc10b0fcc9740db51cd4c0c83","fixed":"806fcff98c1d7cb3c1dc0015e55ebdbe819e6b08","status":"affected"},{"type":"git","introduced":"8f91efd870ea5d8bc10b0fcc9740db51cd4c0c83","fixed":"8037c5b2b2a447df52542f4d8535895d837bdcbd","status":"affected"},{"type":"git","introduced":"8f91efd870ea5d8bc10b0fcc9740db51cd4c0c83","fixed":"611e7821c4f83a671455658797336faecc3a5196","status":"affected"},{"type":"git","introduced":"8f91efd870ea5d8bc10b0fcc9740db51cd4c0c83","fixed":"5457025fa8ca3c0d2732109513de839e3e797190","status":"affected"},{"type":"git","version":"e1e5e263bbe0e6e9c3db36aa48a3c8acf546fa49","status":"affected"},{"type":"git","version":"979965c33f734a1666af67900408f997ac669c23","status":"affected"},{"type":"semver","introduced":"5.10.50","fixed":"5.10.266","status":"affected"},{"type":"semver","introduced":"5.12.17","fixed":"5.13","status":"affected"},{"type":"semver","introduced":"5.13.2","fixed":"5.14","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.10.266","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.217","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/4addb102154b7cf6e2310ccbe20c3c08619e520d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/894a9300d7fb2e2951da92e565ae6de7ddfb0a69","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e5ca82eee59caca6988f9d6e859786aab8a5fa0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/310b5a537a78c358a4cd244bd767c1a517a05459","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/806fcff98c1d7cb3c1dc0015e55ebdbe819e6b08","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8037c5b2b2a447df52542f4d8535895d837bdcbd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/611e7821c4f83a671455658797336faecc3a5196","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5457025fa8ca3c0d2732109513de839e3e797190","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:01:40.497Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74594","url":"https://www.cve.org/CVERecord?id=CVE-2026-74594","licence":"CVE Terms of Use","modified":"2026-10-16T19:05:59.691Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74594","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74594","licence":"Public domain","modified":"2026-10-16T20:17:44.737Z"}],"updatedAt":"2026-11-25T22:59:34.888Z","epss":{"score":0.00129,"percentile":0.02776,"date":"2026-12-01T12:00:22.000Z"}}