In the Linux kernel, the following vulnerability has been resolved: sched/core: Fix cpuset_mutex double unlock in __sched_setscheduler() A sched_setattr() with SCHED_FLAG_KEEP_POLICY on a…
- Exploited
- No known exploitation
- Fix
- Fixed in 5.11, 5.16, 6.2, 6.5
- Who is exposed
- Not reported
Summary
In the Linux kernel, the following vulnerability has been resolved:
sched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()
A sched_setattr() with SCHED_FLAG_KEEP_POLICY on a SCHED_DEADLINE task unlocks cpuset_mutex twice if the task's policy changes concurrently:
WARNING: bad unlock balance detected! 7.4.0-rc1 #1 Not tainted ------------------------------------- repro/126 is trying to release lock (cpuset_mutex) at: [<ffffffff9a17cacc>] __sched_setscheduler+0x9cc/0xc40 but there are no more locks to release! ... Call Trace: print_unlock_imbalance_bug.part.0+0xfb/0x110 lock_release+0x286/0x2e0 __mutex_unlock_slowpath+0x1a/0x400 __sched_setscheduler+0x9cc/0xc40 __x64_sys_sched_setattr+0xa3/0x1b0 do_syscall_64+0x106/0x5f0 entry_SYSCALL_64_after_hwframe+0x77/0x7f
__sched_setscheduler() samples p->policy before taking any lock, and restarts from the recheck label if p->policy differs under the rq lock. The restart drops cpuset_mutex but leaves cpuset_locked set, so a pass that no longer needs the mutex still unlocks it on its way out:
CPU 1 CPU 2 __sched_setscheduler(KEEP_POLICY) policy = p->policy /* DEADLINE / __sched_setscheduler(SCHED_OTHER) p->policy = SCHED_OTHER cpuset_locked = true cpuset_lock() rq = task_rq_lock(p) oldpolicy != p->policy cpuset_unlock() goto recheck / no cpuset_lock() this time */ ... if (cpuset_locked) cpuset_unlock()
Without CONFIG_DEBUG_MUTEXES, or CONFIG_DEBUG_RT_MUTEXES on PREEMPT_RT, nothing warns. The second unlock still clears the owner field regardless of who holds the mutex, so another task can lose cpuset_mutex inside its critical section. Entering SCHED_DEADLINE needs CAP_SYS_NICE, but a racing caller that owns the task does not need it if it samples a policy other than SCHED_DEADLINE.
Clear cpuset_locked when dropping the mutex for the restart. This should be safe because the flag is only tested on the paths leaving the next pass, after that pass has set it again if it took the mutex.
The following program, run as root, reproduces the splat, which no longer appears with this applied. On PREEMPT_RT it crashes the kernel within seconds, which this also fixes:
#define _GNU_SOURCE #include <pthread.h> #include <stdint.h> #include <sys/syscall.h> #include <unistd.h>
struct attr { uint32_t size, policy; uint64_t flags; int32_t nice; uint32_t prio; uint64_t runtime, deadline, period; };
static volatile int stop; static volatile pid_t target;
static void set(struct attr a) { a.size = sizeof(a); syscall(SYS_sched_setattr, target, &a, 0); }
static void *sleeper(void *arg) { target = syscall(SYS_gettid); while (!stop) usleep(1000); return arg; }
static void *switcher(void arg) { while (!stop) { / SCHED_DEADLINE, 2us every 1s / set((struct attr){ .policy = 6, .runtime = 2000, .deadline = 1000000000, .period = 1000000000 }); set((struct attr){ .policy = 0 }); / SCHED_OTHER */ } return arg; }
static void *racer(void arg) { / KEEP_POLICY | KEEP_PARAMS */ while (!stop) set((struct attr){ .flags = 0x18 }); return arg; }
int main(void) { pthread_t t[5]; int i;
pthread_create(&t[0], NULL, sleeper, NULL); while (!target) usleep(100); pthread_create(&t[1], NULL, switcher, NULL); for (i = 2; i < 5; i++) pthread_create(&t[i], NULL, racer, NULL); sleep(30); stop = 1; for (i = 0; i < 5; i++) pthread_join(t[i], NULL); return 0; }
An LLM helped find the PREEMPT_RT crash and write this patch and its test.
What to do
Upgrade to a fixed version: 5.11, 5.16, 6.2, 6.5.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-143086 (sched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-143086 (entry last updated 2026-12-03):
Affected:
- Linux Linux: from 5.10.193, fixed in 5.11; from 5.15.129, fixed in 5.16; from 6.1.50, fixed in 6.2; from 6.4.13, fixed in 6.5
- Linux Linux: versions 6.5
Fixed versions: 5.11, 5.16, 6.2, 6.5.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-143086 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-143086 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/1a681de657bddffbd43d88a592525362404c6e3d
- https://git.kernel.org/stable/c/a87f48135265857af4ae9423963c873292310064
- https://git.kernel.org/stable/c/cc587b7f9a44b46ba2d531642fb7c3dae72ebfc0
- https://git.kernel.org/stable/c/f7141257dd67d4936f906a6cfd1d0007721f6898
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-143086
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-143086"}.Affected versions
- Linux LinuxFrom 5.10.193 · fixed in 5.11; From 5.15.129 · fixed in 5.16; From 6.1.50 · fixed in 6.2; From 6.4.13 · fixed in 6.5
- Linux Linux6.5
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity?/10Unknown. No CVSS score or vendor rating
- No patch0/5No signal
What would change the score
- Would score about 75 if added to CISA KEV
- Would score about 70 if CISA's SSVC rates exploitation active
- Would score about 42 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-143086 |
| Record | NVD · CVE-2026-143086 |
| Other links 4 | |
| Link | git.kernel.org · stable/c/1a681de657bddffbd43d88a592525362404c6e3d |
| Link | git.kernel.org · stable/c/a87f48135265857af4ae9423963c873292310064 |
| Link | git.kernel.org · stable/c/cc587b7f9a44b46ba2d531642fb7c3dae72ebfc0 |
| Link | git.kernel.org · stable/c/f7141257dd67d4936f906a6cfd1d0007721f6898 |
Questions about CVE-2026-143086
Is CVE-2026-143086 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-143086?
Linux: from 5.10.193 before 5.11; from 5.15.129 before 5.16; from 6.1.50 before 6.2; from 6.4.13 before 6.5. Linux: version 6.5.
Source: cve.now feed data
How do I fix CVE-2026-143086?
Upgrade to a fixed version: 5.11, 5.16, 6.2, 6.5.
Source: cve.now feed data
Related
- CVE-2026-143401net: virtio: validate outer protocol of UDP tunnel GSO packets
- CVE-2026-143400virtio_net: check RX buffer length before DMA sync
- CVE-2026-143399udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat()
- CVE-2026-143398Input: destroy force-feedback device on input unregistration
- CVE-2026-1433979p: use fc->net_ns for network namespace in RDMA and socket transports
- CVE-2026-143396net/9p/usbg: fix descriptor cleanup use-after-free
No corrections so far. Something wrong on this page? Report an error.