{"id":"CVE-2026-139173","state":"PUBLISHED","title":"sched_ext: Fix queued bypassed tasks stalling when the host loses SCX_CAP_BASE","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix queued bypassed tasks stalling when the host loses SCX_CAP_BASE\n\nA task already queued on a bypass DSQ stalls when the host loses\nSCX_CAP_BASE on that cpu, as the cpu no longer consumes the DSQ. Sending a\nbypassed task to rescue at enqueue time covers only a task enqueued after\nthe loss, and the balancer no longer donates to a capless cpu.\n\nHave the bypass load balancer drain such a DSQ: a cpu where the host lacks\nBASE is a donor with a target of zero, and the donees take its tasks under\ntheir ordinary fill.\n\nA drained task no donee can take is reenqueued at its home: to rescue when\nthe host lacks BASE there and rescue is enabled, and to the home's bypass\nDSQ otherwise.\n\nA balancing donor leaves a task that can't move to its donee where it is.\nReenqueueing it at home would put a task homed on the donor cpu at the tail\nof its own DSQ, and a blocked task that proxy execution migrated there,\nwhich every remote cpu refuses, would go to the tail on every pass.\n\nWithout rescue, a task homed on the drained cpu goes back onto the drained\nDSQ, once per pass, and waits for the host to regain BASE, the bypass to\nend, or the stall watchdog to eject the host. Its reenqueues are not counted\nagainst the reenqueue limit, as its scheduler is bypassing.\n\nA BASE loss kicks the balancer so that the drain doesn't wait for the next\ninterval. With a zero interval the kick is the only pass, and a task that\nlands on the drained DSQ after it waits the same way.\n\nv2: The description drops an in-flight affinity change from the causes of a\nrefused balancer move.\n\nv3:\n- The description says that a stuck task's reenqueues are not counted\n  against the reenqueue limit (sashiko).\n- The description names the stall watchdog as the way out for a task stuck\n  without rescue, and the tasks a zero interval leaves on a drained DSQ.\n- bypass_lb_reenq_home()'s kerneldoc and the description give the placement\n  with rescue disabled and for a task that must run at home, and the other\n  two comments on that placement point to the kerneldoc.\n\nv4:\n- Skip a task the donee would refuse on a balancing donor instead of\n  reenqueueing it at home (Andrea).\n- bypass_lb_reenq_home()'s kerneldoc is corrected on a migration-disabled\n  task homed on a donee and on the local DSQ admission.\n- The description is condensed.","publishedAt":"2026-11-30T13:32:15.394Z","updatedAt":"2026-11-30T13:32:15.394Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"147d1885f390bcfb929210814f86dc22b24c2631","status":"affected","lessThan":"eb239e0c6d93c25577927e9b66e6a86e35098574","versionType":"git"},{"version":"147d1885f390bcfb929210814f86dc22b24c2631","status":"affected","lessThan":"5c23d1710606d3c14a0feafd8940df9f20bca7be","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c","kernel/sched/ext/internal.h","kernel/sched/ext/sub.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c","kernel/sched/ext/internal.h","kernel/sched/ext/sub.c"]}],"references":["https://git.kernel.org/stable/c/eb239e0c6d93c25577927e9b66e6a86e35098574","https://git.kernel.org/stable/c/5c23d1710606d3c14a0feafd8940df9f20bca7be"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139173.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139173","state":"PUBLISHED","datePublished":"2026-11-30T13:32:15.394Z","dateUpdated":"2026-11-30T13:32:15.394Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.918Z"},"containers":{"cna":{"title":"sched_ext: Fix queued bypassed tasks stalling when the host loses SCX_CAP_BASE","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix queued bypassed tasks stalling when the host loses SCX_CAP_BASE\n\nA task already queued on a bypass DSQ stalls when the host loses\nSCX_CAP_BASE on that cpu, as the cpu no longer consumes the DSQ. Sending a\nbypassed task to rescue at enqueue time covers only a task enqueued after\nthe loss, and the balancer no longer donates to a capless cpu.\n\nHave the bypass load balancer drain such a DSQ: a cpu where the host lacks\nBASE is a donor with a target of zero, and the donees take its tasks under\ntheir ordinary fill.\n\nA drained task no donee can take is reenqueued at its home: to rescue when\nthe host lacks BASE there and rescue is enabled, and to the home's bypass\nDSQ otherwise.\n\nA balancing donor leaves a task that can't move to its donee where it is.\nReenqueueing it at home would put a task homed on the donor cpu at the tail\nof its own DSQ, and a blocked task that proxy execution migrated there,\nwhich every remote cpu refuses, would go to the tail on every pass.\n\nWithout rescue, a task homed on the drained cpu goes back onto the drained\nDSQ, once per pass, and waits for the host to regain BASE, the bypass to\nend, or the stall watchdog to eject the host. Its reenqueues are not counted\nagainst the reenqueue limit, as its scheduler is bypassing.\n\nA BASE loss kicks the balancer so that the drain doesn't wait for the next\ninterval. With a zero interval the kick is the only pass, and a task that\nlands on the drained DSQ after it waits the same way.\n\nv2: The description drops an in-flight affinity change from the causes of a\nrefused balancer move.\n\nv3:\n- The description says that a stuck task's reenqueues are not counted\n  against the reenqueue limit (sashiko).\n- The description names the stall watchdog as the way out for a task stuck\n  without rescue, and the tasks a zero interval leaves on a drained DSQ.\n- bypass_lb_reenq_home()'s kerneldoc and the description give the placement\n  with rescue disabled and for a task that must run at home, and the other\n  two comments on that placement point to the kerneldoc.\n\nv4:\n- Skip a task the donee would refuse on a balancing donor instead of\n  reenqueueing it at home (Andrea).\n- bypass_lb_reenq_home()'s kerneldoc is corrected on a migration-disabled\n  task homed on a donee and on the local DSQ admission.\n- The description is condensed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"147d1885f390bcfb929210814f86dc22b24c2631","status":"affected","lessThan":"eb239e0c6d93c25577927e9b66e6a86e35098574","versionType":"git"},{"version":"147d1885f390bcfb929210814f86dc22b24c2631","status":"affected","lessThan":"5c23d1710606d3c14a0feafd8940df9f20bca7be","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c","kernel/sched/ext/internal.h","kernel/sched/ext/sub.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c","kernel/sched/ext/internal.h","kernel/sched/ext/sub.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/eb239e0c6d93c25577927e9b66e6a86e35098574"},{"url":"https://git.kernel.org/stable/c/5c23d1710606d3c14a0feafd8940df9f20bca7be"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:15.394Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}