{"api_version":"1","generated_at":"2026-11-30T19:52:03+00:00","cve":"CVE-2026-139509","urls":{"html":"https://cve.report/CVE-2026-139509","api":"https://cve.report/api/cve/CVE-2026-139509.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139509","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139509"},"summary":{"title":"sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Clear a sub-scheduler's caps before ops.sub_detach()\n\nA sub-scheduler can leave standing state behind on the cids delegated to it,\ncpuperf targets being the obvious case, and the kernel does not track who\nwrote it. Restoring it is the parent's job and ops.sub_detach() is the place\nfor it. Today the parent can't rely on that: the dying sub-scheduler keeps\nevery cap until it is marked dead after ops.exit(), so its ops.exit() or a\nlate timer can write after the parent has cleaned up.\n\nClear every cap of the sub-scheduler before ops.sub_detach(). The pshard\ncaps go first as a pending sync recomputes ecaps from them, and ecaps are\nthen zeroed directly. A grant racing the clear is refused under the child's\npshard lock, so nothing hands the caps back.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:26","updated_at":"2026-11-30 14:19:26"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/1cf9cc90a5b86b3e9df9832015e7d514480cf78a","name":"https://git.kernel.org/stable/c/1cf9cc90a5b86b3e9df9832015e7d514480cf78a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a546831dff38b624240a90a6ff6d2b43d9226d51","name":"https://git.kernel.org/stable/c/a546831dff38b624240a90a6ff6d2b43d9226d51","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139509","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139509","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 86094b95efcf747c80930a2a675c5b14505a19b1 1cf9cc90a5b86b3e9df9832015e7d514480cf78a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 86094b95efcf747c80930a2a675c5b14505a19b1 a546831dff38b624240a90a6ff6d2b43d9226d51 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/sched/ext/internal.h","kernel/sched/ext/sub.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1cf9cc90a5b86b3e9df9832015e7d514480cf78a","status":"affected","version":"86094b95efcf747c80930a2a675c5b14505a19b1","versionType":"git"},{"lessThan":"a546831dff38b624240a90a6ff6d2b43d9226d51","status":"affected","version":"86094b95efcf747c80930a2a675c5b14505a19b1","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/sched/ext/internal.h","kernel/sched/ext/sub.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.3"},{"lessThan":"7.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Clear a sub-scheduler's caps before ops.sub_detach()\n\nA sub-scheduler can leave standing state behind on the cids delegated to it,\ncpuperf targets being the obvious case, and the kernel does not track who\nwrote it. Restoring it is the parent's job and ops.sub_detach() is the place\nfor it. Today the parent can't rely on that: the dying sub-scheduler keeps\nevery cap until it is marked dead after ops.exit(), so its ops.exit() or a\nlate timer can write after the parent has cleaned up.\n\nClear every cap of the sub-scheduler before ops.sub_detach(). The pshard\ncaps go first as a pending sync recomputes ecaps from them, and ecaps are\nthen zeroed directly. A grant racing the clear is refused under the child's\npshard lock, so nothing hands the caps back."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:24.562Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1cf9cc90a5b86b3e9df9832015e7d514480cf78a"},{"url":"https://git.kernel.org/stable/c/a546831dff38b624240a90a6ff6d2b43d9226d51"}],"title":"sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139509","datePublished":"2026-11-30T13:35:24.562Z","dateReserved":"2026-11-30T13:22:15.937Z","dateUpdated":"2026-11-30T13:35:24.562Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:26","lastModifiedDate":"2026-11-30 14:19:26","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139509","Ordinal":"1","Title":"sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()","CVE":"CVE-2026-139509","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139509","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched_ext: Clear a sub-scheduler's caps before ops.sub_detach()\n\nA sub-scheduler can leave standing state behind on the cids delegated to it,\ncpuperf targets being the obvious case, and the kernel does not track who\nwrote it. Restoring it is the parent's job and ops.sub_detach() is the place\nfor it. Today the parent can't rely on that: the dying sub-scheduler keeps\nevery cap until it is marked dead after ops.exit(), so its ops.exit() or a\nlate timer can write after the parent has cleaned up.\n\nClear every cap of the sub-scheduler before ops.sub_detach(). The pshard\ncaps go first as a pending sync recomputes ecaps from them, and ecaps are\nthen zeroed directly. A grant racing the clear is refused under the child's\npshard lock, so nothing hands the caps back.","Type":"Description","Title":"sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()"}]}}}