{"id":"CVE-2026-143323","state":"PUBLISHED","title":"sched_ext: Reject scx_bpf_destroy_dsq() in tracing programs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Reject scx_bpf_destroy_dsq() in tracing programs\n\nscx_bpf_destroy_dsq() takes the target user DSQ's raw spinlock. However,\nit is in scx_kfunc_ids_any, which is also registered for\nBPF_PROG_TYPE_TRACING.\n\nFor an active root scheduler without ops.sub_attach, the compatibility\npath in scx_prog_sched() lets an unassociated tracing program resolve to\nthat scheduler. The tracing program can then call\nscx_bpf_destroy_dsq() while the target DSQ lock is already held.\n\nFor example, a scheduler which mixes FIFO and priority-queue insertions\ninto a user DSQ triggers scx_error() from scx_dispatch_enqueue() while\nholding that DSQ's lock. scx_claim_exit() emits sched_ext_exit before\nthe lock is released:\n\n  scx_dispatch_enqueue()\n    raw_spin_lock(&dsq->lock)\n    scx_error()\n      scx_claim_exit()\n        trace_sched_ext_exit()\n          tracing BPF program\n            scx_bpf_destroy_dsq(dsq_id)\n              destroy_dsq()\n                raw_spin_lock_irqsave(&dsq->lock)\n\nThe tracing program recursively acquires the same raw spinlock and locks\nup the CPU. Because the tracepoint runs before scx_finish_exit(),\ndisable_irq_work is not queued and the scheduler cannot enter its normal\ndisable path.\n\nReject scx_bpf_destroy_dsq() from tracing programs at verification time.\nThe kfunc remains available to SCX struct_ops and syscall programs.","publishedAt":"2026-12-03T09:21:50.396Z","updatedAt":"2026-12-03T09:21:50.396Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f0e1a0643a59bf1f922fa209cec86a170b784f3f","status":"affected","lessThan":"d4d807353bf3760122340065bad5a2d0a86c06a9","versionType":"git"},{"version":"f0e1a0643a59bf1f922fa209cec86a170b784f3f","status":"affected","lessThan":"4c2e0751d5e6d181a5b9b2a8ada869b5bee66a83","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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"]}],"references":["https://git.kernel.org/stable/c/d4d807353bf3760122340065bad5a2d0a86c06a9","https://git.kernel.org/stable/c/4c2e0751d5e6d181a5b9b2a8ada869b5bee66a83"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143323.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143323","state":"PUBLISHED","datePublished":"2026-12-03T09:21:50.396Z","dateUpdated":"2026-12-03T09:21:50.396Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.366Z"},"containers":{"cna":{"title":"sched_ext: Reject scx_bpf_destroy_dsq() in tracing programs","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Reject scx_bpf_destroy_dsq() in tracing programs\n\nscx_bpf_destroy_dsq() takes the target user DSQ's raw spinlock. However,\nit is in scx_kfunc_ids_any, which is also registered for\nBPF_PROG_TYPE_TRACING.\n\nFor an active root scheduler without ops.sub_attach, the compatibility\npath in scx_prog_sched() lets an unassociated tracing program resolve to\nthat scheduler. The tracing program can then call\nscx_bpf_destroy_dsq() while the target DSQ lock is already held.\n\nFor example, a scheduler which mixes FIFO and priority-queue insertions\ninto a user DSQ triggers scx_error() from scx_dispatch_enqueue() while\nholding that DSQ's lock. scx_claim_exit() emits sched_ext_exit before\nthe lock is released:\n\n  scx_dispatch_enqueue()\n    raw_spin_lock(&dsq->lock)\n    scx_error()\n      scx_claim_exit()\n        trace_sched_ext_exit()\n          tracing BPF program\n            scx_bpf_destroy_dsq(dsq_id)\n              destroy_dsq()\n                raw_spin_lock_irqsave(&dsq->lock)\n\nThe tracing program recursively acquires the same raw spinlock and locks\nup the CPU. Because the tracepoint runs before scx_finish_exit(),\ndisable_irq_work is not queued and the scheduler cannot enter its normal\ndisable path.\n\nReject scx_bpf_destroy_dsq() from tracing programs at verification time.\nThe kfunc remains available to SCX struct_ops and syscall programs."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f0e1a0643a59bf1f922fa209cec86a170b784f3f","status":"affected","lessThan":"d4d807353bf3760122340065bad5a2d0a86c06a9","versionType":"git"},{"version":"f0e1a0643a59bf1f922fa209cec86a170b784f3f","status":"affected","lessThan":"4c2e0751d5e6d181a5b9b2a8ada869b5bee66a83","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/sched/ext/ext.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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"]}],"references":[{"url":"https://git.kernel.org/stable/c/d4d807353bf3760122340065bad5a2d0a86c06a9"},{"url":"https://git.kernel.org/stable/c/4c2e0751d5e6d181a5b9b2a8ada869b5bee66a83"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:21:50.396Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}