{"id":"CVE-2026-143323","summary":"sched_ext: Reject scx_bpf_destroy_dsq() in tracing programs","details":"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-\u003elock)\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-\u003elock)\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.","modified":"2026-12-03T11:01:58.804749096Z","published":"2026-12-03T09:21:50.396Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143323.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4c2e0751d5e6d181a5b9b2a8ada869b5bee66a83"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4d807353bf3760122340065bad5a2d0a86c06a9"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143323.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143323"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f0e1a0643a59bf1f922fa209cec86a170b784f3f"},{"fixed":"d4d807353bf3760122340065bad5a2d0a86c06a9"},{"fixed":"4c2e0751d5e6d181a5b9b2a8ada869b5bee66a83"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143323.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143323.json"}}],"schema_version":"1.9.2"}