{"id":"CVE-2026-139175","state":"PUBLISHED","title":"sched_ext: Fix bypassed tasks looping on a host without SCX_CAP_ENQ","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix bypassed tasks looping on a host without SCX_CAP_ENQ\n\nBypass exists so that runnable tasks make progress without trusting the BPF\nscheduler. A host with SCX_CAP_ENQ_IMMED (BASE) but not SCX_CAP_ENQ on a cpu\ncannot run a single bypassed task there. The task loops instead:\n\n 1. a bypassed task lands on the host's bypass DSQ for the cpu\n 2. the cpu's dispatch descends into the host, which holds BASE there\n 3. the host consumes the task into the local DSQ as a plain insert\n 4. the insert needs ENQ and the host lacks it, so the task is rejected\n 5. the reject drain reenqueues the task and it is back at step 1\n\nA bypass consume puts a task on the cpu being dispatched for, to run right\naway. That is the IMMED contract, and BASE is the cap it needs. Consume with\nSCX_ENQ_IMMED. BASE is then the one cap a bypassed task ever needs. Dispatch\ndescends into a host only on a cpu where the host holds BASE, so a consume\nnever lacks it.\n\nA consumed task is first on the local DSQ when dispatch enters the host with\nthe DSQ empty. That is always the case for the root and normally for a\nparent dispatching into a child.\n\nA consumed task that cannot run right away is reenqueued like any IMMED task\nand goes back to the bypass DSQ. Waiting on the local DSQ would need ENQ.\nThe task cannot run right away when a higher class or a HEAD insert took the\ncpu meanwhile, or when the parent queued its own task before dispatching\ninto the host.\n\nEach such task waits on the bypass DSQ for the next dispatch. The reenqueue\nis not counted against the reenqueue limit, as the task's scheduler is\nbypassing.\n\nv2: The description says that the reenqueue of a consumed task is not\ncounted against the reenqueue limit (sashiko).","publishedAt":"2026-11-30T13:32:16.493Z","updatedAt":"2026-11-30T13:32:16.493Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"701b7bcad8681b161de791579aeb3de285f9a20f","status":"affected","lessThan":"1321de51d5cb66cb2c35c6e9c9657686351c6494","versionType":"git"},{"version":"701b7bcad8681b161de791579aeb3de285f9a20f","status":"affected","lessThan":"a676ada0d6544928c0ceb032fb991a9abe0977db","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/inlines.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/inlines.h","kernel/sched/ext/sub.c"]}],"references":["https://git.kernel.org/stable/c/1321de51d5cb66cb2c35c6e9c9657686351c6494","https://git.kernel.org/stable/c/a676ada0d6544928c0ceb032fb991a9abe0977db"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139175.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139175","state":"PUBLISHED","datePublished":"2026-11-30T13:32:16.493Z","dateUpdated":"2026-11-30T13:32:16.493Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.918Z"},"containers":{"cna":{"title":"sched_ext: Fix bypassed tasks looping on a host without SCX_CAP_ENQ","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Fix bypassed tasks looping on a host without SCX_CAP_ENQ\n\nBypass exists so that runnable tasks make progress without trusting the BPF\nscheduler. A host with SCX_CAP_ENQ_IMMED (BASE) but not SCX_CAP_ENQ on a cpu\ncannot run a single bypassed task there. The task loops instead:\n\n 1. a bypassed task lands on the host's bypass DSQ for the cpu\n 2. the cpu's dispatch descends into the host, which holds BASE there\n 3. the host consumes the task into the local DSQ as a plain insert\n 4. the insert needs ENQ and the host lacks it, so the task is rejected\n 5. the reject drain reenqueues the task and it is back at step 1\n\nA bypass consume puts a task on the cpu being dispatched for, to run right\naway. That is the IMMED contract, and BASE is the cap it needs. Consume with\nSCX_ENQ_IMMED. BASE is then the one cap a bypassed task ever needs. Dispatch\ndescends into a host only on a cpu where the host holds BASE, so a consume\nnever lacks it.\n\nA consumed task is first on the local DSQ when dispatch enters the host with\nthe DSQ empty. That is always the case for the root and normally for a\nparent dispatching into a child.\n\nA consumed task that cannot run right away is reenqueued like any IMMED task\nand goes back to the bypass DSQ. Waiting on the local DSQ would need ENQ.\nThe task cannot run right away when a higher class or a HEAD insert took the\ncpu meanwhile, or when the parent queued its own task before dispatching\ninto the host.\n\nEach such task waits on the bypass DSQ for the next dispatch. The reenqueue\nis not counted against the reenqueue limit, as the task's scheduler is\nbypassing.\n\nv2: The description says that the reenqueue of a consumed task is not\ncounted against the reenqueue limit (sashiko)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"701b7bcad8681b161de791579aeb3de285f9a20f","status":"affected","lessThan":"1321de51d5cb66cb2c35c6e9c9657686351c6494","versionType":"git"},{"version":"701b7bcad8681b161de791579aeb3de285f9a20f","status":"affected","lessThan":"a676ada0d6544928c0ceb032fb991a9abe0977db","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/inlines.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/inlines.h","kernel/sched/ext/sub.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1321de51d5cb66cb2c35c6e9c9657686351c6494"},{"url":"https://git.kernel.org/stable/c/a676ada0d6544928c0ceb032fb991a9abe0977db"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:16.493Z"},"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"}}}}}