{"id":"CVE-2026-74593","aliases":["CVE-2026-74593"],"related":[],"kind":"vulnerability","state":"published","title":"sched_ext: Take cgroup_lock() first in scx_cgroup_lock()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Take cgroup_lock() first in scx_cgroup_lock()\n\nscx_cgroup_lock() write-locks scx_cgroup_ops_rwsem and then takes\ncgroup_lock(), which can deadlock through kernfs:\n\n  scx enable/disable         cgroup rmdir           cpu.weight write\n  ------------------         ------------           ----------------\n                             cgroup_lock()\n  percpu_down_write(rwsem)\n  cgroup_lock()\n                                                    kernfs_get_active()\n                                                    percpu_down_read(rwsem)\n                             kernfs_drain()\n\nThe enable path waits for the rmdir to release cgroup_mutex. The rmdir,\ndeactivating the cpu controller's files, waits in kernfs_drain() for the\nwrite's active reference. The write, in scx_group_set_weight(), waits for\nthe rwsem behind the pending writer.\n\nTake cgroup_lock() first. The set_* paths take no cgroup locks inside the\nread side, so a pending write-lock then only waits for read sections that\nalways run to completion, and no dependency from the rwsem back to\ncgroup_mutex remains.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Take cgroup_lock() first in scx_cgroup_lock()\n\nscx_cgroup_lock() write-locks scx_cgroup_ops_rwsem and then takes\ncgroup_lock(), which can deadlock through kernfs:\n\n  scx enable/disable         cgroup rmdir           cpu.weight write\n  ------------------         ------------           ----------------\n                             cgroup_lock()\n  percpu_down_write(rwsem)\n  cgroup_lock()\n                                                    kernfs_get_active()\n                                                    percpu_down_read(rwsem)\n                             kernfs_drain()\n\nThe enable path waits for the rmdir to release cgroup_mutex. The rmdir,\ndeactivating the cpu controller's files, waits in kernfs_drain() for the\nwrite's active reference. The write, in scx_group_set_weight(), waits for\nthe rwsem behind the pending writer.\n\nTake cgroup_lock() first. The set_* paths take no cgroup locks inside the\nread side, so a pending write-lock then only waits for read sections that\nalways run to completion, and no dependency from the rwsem back to\ncgroup_mutex remains.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsched_ext: Tomar cgroup_lock() primero en scx_cgroup_lock()\n\nscx_cgroup_lock() bloquea en modo escritura scx_cgroup_ops_rwsem y luego toma cgroup_lock(), lo que puede causar un interbloqueo a través de kernfs:\n\n  scx habilitar/deshabilitar         cgroup rmdir           cpu.weight escritura\n  -------------------------         ------------           -------------------\n                                    cgroup_lock()\n  percpu_down_write(rwsem)\n  cgroup_lock()\n                                                           kernfs_get_active()\n                                                           percpu_down_read(rwsem)\n                                    kernfs_drain()\n\nLa ruta de habilitación espera a que el rmdir libere cgroup_mutex. El rmdir, al desactivar los archivos del controlador de CPU, espera en kernfs_drain() la referencia activa de la escritura. La escritura, en scx_group_set_weight(), espera al rwsem detrás del escritor pendiente.\n\nTomar cgroup_lock() primero. Las rutas set_* no toman bloqueos de cgroup dentro del lado de lectura, por lo que un bloqueo de escritura pendiente entonces solo espera por secciones de lectura que siempre se ejecutan hasta su finalización, y no queda ninguna dependencia del rwsem de vuelta a cgroup_mutex.","source":"nvd"}],"published":"2026-08-22T15:31:44.160Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a5bd6ba30b3364354269b81ac55c2edca9a96d6d","fixed":"2ca6b43edf83f8fc368cc3094ee5f3b1e8e0b0f0","status":"affected"},{"type":"git","introduced":"a5bd6ba30b3364354269b81ac55c2edca9a96d6d","fixed":"a054c9ffa9b7a0dffb763837b91ac9d381ec6d10","status":"affected"},{"type":"git","introduced":"a5bd6ba30b3364354269b81ac55c2edca9a96d6d","fixed":"5f8b69642d18e1f3e11996707842ac530444e959","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.46","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/2ca6b43edf83f8fc368cc3094ee5f3b1e8e0b0f0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a054c9ffa9b7a0dffb763837b91ac9d381ec6d10","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f8b69642d18e1f3e11996707842ac530444e959","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74593","url":"https://www.cve.org/CVERecord?id=CVE-2026-74593","licence":"CVE Terms of Use","modified":"2026-08-23T12:47:36.437Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74593","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74593","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:34.887Z","epss":{"score":0.00166,"percentile":0.0613,"date":"2026-12-01T12:00:22.000Z"}}