{"id":"CVE-2026-31734","aliases":["CVE-2026-31734"],"related":[],"kind":"vulnerability","state":"published","title":"sched_ext: Fix is_bpf_migration_disabled() false negative on non-PREEMPT_RCU","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix is_bpf_migration_disabled() false negative on non-PREEMPT_RCU\n\nSince commit 8e4f0b1ebcf2 (\"bpf: use rcu_read_lock_dont_migrate() for\ntrampoline.c\"), the BPF prolog (__bpf_prog_enter) calls migrate_disable()\nonly when CONFIG_PREEMPT_RCU is enabled, via rcu_read_lock_dont_migrate().\nWithout CONFIG_PREEMPT_RCU, the prolog never touches migration_disabled,\nso migration_disabled == 1 always means the task is truly\nmigration-disabled regardless of whether it is the current task.\n\nThe old unconditional p == current check was a false negative in this\ncase, potentially allowing a migration-disabled task to be dispatched to\na remote CPU and triggering scx_error in task_can_run_on_remote_rq().\n\nOnly apply the p == current disambiguation when CONFIG_PREEMPT_RCU is\nenabled, where the ambiguity with the BPF prolog still exists.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix is_bpf_migration_disabled() false negative on non-PREEMPT_RCU\n\nSince commit 8e4f0b1ebcf2 (\"bpf: use rcu_read_lock_dont_migrate() for\ntrampoline.c\"), the BPF prolog (__bpf_prog_enter) calls migrate_disable()\nonly when CONFIG_PREEMPT_RCU is enabled, via rcu_read_lock_dont_migrate().\nWithout CONFIG_PREEMPT_RCU, the prolog never touches migration_disabled,\nso migration_disabled == 1 always means the task is truly\nmigration-disabled regardless of whether it is the current task.\n\nThe old unconditional p == current check was a false negative in this\ncase, potentially allowing a migration-disabled task to be dispatched to\na remote CPU and triggering scx_error in task_can_run_on_remote_rq().\n\nOnly apply the p == current disambiguation when CONFIG_PREEMPT_RCU is\nenabled, where the ambiguity with the BPF prolog still exists.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsched_ext: Solución de falso negativo en is_bpf_migration_disabled() en no-PREEMPT_RCU\n\nDesde el commit 8e4f0b1ebcf2 (’bpf: usar rcu_read_lock_dont_migrate() para trampoline.c’), el prólogo BPF (__bpf_prog_enter) llama a migrate_disable() solo cuando CONFIG_PREEMPT_RCU está habilitado, a través de rcu_read_lock_dont_migrate(). Sin CONFIG_PREEMPT_RCU, el prólogo nunca toca migration_disabled, por lo que migration_disabled == 1 siempre significa que la tarea tiene la migración verdaderamente deshabilitada, independientemente de si es la tarea actual.\n\nLa antigua comprobación incondicional p == current era un falso negativo en este caso, lo que potencialmente permitía que una tarea con la migración deshabilitada fuera despachada a una CPU remota y desencadenando scx_error en task_can_run_on_remote_rq().\n\nSolo aplicar la desambiguación p == current cuando CONFIG_PREEMPT_RCU está habilitado, donde la ambigüedad con el prólogo BPF aún existe.","source":"nvd"}],"published":"2026-05-01T14:14:32.217Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8e4f0b1ebcf2180ab594f204f01279a666dadf3b","fixed":"72c43eb2e334febe93018cfb68ae828f55c6e49e","status":"affected"},{"type":"git","introduced":"8e4f0b1ebcf2180ab594f204f01279a666dadf3b","fixed":"b4992a9446bb9a639007bfd32bf5c5a7e30199e5","status":"affected"},{"type":"git","introduced":"8e4f0b1ebcf2180ab594f204f01279a666dadf3b","fixed":"0c4a59df370bea245695c00aaae6ae75747139bd","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.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.18","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/72c43eb2e334febe93018cfb68ae828f55c6e49e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4992a9446bb9a639007bfd32bf5c5a7e30199e5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c4a59df370bea245695c00aaae6ae75747139bd","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31734","url":"https://www.cve.org/CVERecord?id=CVE-2026-31734","licence":"CVE Terms of Use","modified":"2026-05-11T22:14:43.725Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31734","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31734","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.358Z","epss":{"score":0.00125,"percentile":0.02412,"date":"2026-12-01T12:00:22.000Z"}}