Linux kernel: sched/uclamp: Reject clamp values above SCHED_CAPACITY_SCALE
- Exploited
- No known exploitation
- Fix
- No fix listed
- Who is exposed
- Not reported
Summary
In the Linux kernel, the following vulnerability has been resolved:
sched/uclamp: Reject clamp values above SCHED_CAPACITY_SCALE
sched_setattr() accepts sched_util_min and sched_util_max values that do not fit in uclamp_se::value. A single thread can do:
sched_setattr(max = 800) returns 0 sched_setattr(min = 0xfffffffe) returns 0 sched_getattr() min=2046 max=800
which leaves the minimum above both SCHED_CAPACITY_SCALE and the task's own maximum.
The range check in uclamp_validate() relies on the + 1 wrapping -1, the reset value, to 0:
if (util_min + 1 > SCHED_CAPACITY_SCALE + 1)
That only works for an unsigned type. util_min and util_max are int and SCHED_CAPACITY_SCALE is a long, so every negative value passes the check, and so does INT_MAX, whose + 1 wraps.
uclamp_se_set() then truncates what got through to the 11 bits of uclamp_se::value, but computes the bucket from the full value. A minimum of 0xfffff800 is stored as 0 in the top bucket, where uclamp_rq_max_value() takes it for the highest active clamp once a higher value leaves the rq. The rq clamp falls below what the remaining tasks requested, and emptying their bucket trips the WARN_ON_ONCE() in uclamp_rq_dec_id(), without any privilege:
WARNING: kernel/sched/core.c:1862 at dequeue_task+0x2a3/0x2b0, CPU#0: repro/126 Call Trace: __schedule+0x933/0x1320 schedule+0x36/0x100 do_nanosleep+0x61/0x190 hrtimer_nanosleep+0xb5/0x1d0
Make util_min and util_max unsigned int, so that -1 is the only value that wraps. The pair check below is unaffected, since it skips -1 explicitly and anything else is at most SCHED_CAPACITY_SCALE by then.
Requests that were only accepted because of this now fail with -EINVAL.
The following program triggers the warning when run by any user outside a child cpu cgroup. With this applied, its 0xfffff800 request fails with -EINVAL and the warning no longer appears:
#define _GNU_SOURCE #include <pthread.h> #include <sched.h> #include <stdint.h> #include <sys/syscall.h> #include <time.h> #include <unistd.h>
struct attr { uint32_t size, policy; uint64_t flags; int32_t nice; uint32_t prio; uint64_t runtime, deadline, period; uint32_t util_min, util_max; };
static volatile int stop;
static void set_min(uint32_t v) { /* KEEP_POLICY | KEEP_PARAMS | UTIL_CLAMP_MIN */ struct attr a = { .size = sizeof(a), .flags = 0x38, .util_min = v };
syscall(SYS_sched_setattr, 0, &a, 0); }
static void burn(long us) { struct timespec s, n;
clock_gettime(CLOCK_MONOTONIC, &s); do clock_gettime(CLOCK_MONOTONIC, &n); while ((n.tv_sec - s.tv_sec) * 1000000 + (n.tv_nsec - s.tv_nsec) / 1000 < us); }
static void *bogus(void *arg) { set_min(0xfffff800); while (!stop) burn(1000); return arg; }
static void *worker(void *arg) { long v = (long)arg;
set_min(v); while (!stop) { burn(v == 800 ? 300 : 1500); usleep(100); } return arg; }
int main(void) { pthread_t t[3]; cpu_set_t c; int i;
CPU_ZERO(&c); CPU_SET(0, &c); sched_setaffinity(0, sizeof(c), &c); pthread_create(&t[0], NULL, bogus, NULL); usleep(50000); pthread_create(&t[1], NULL, worker, (void *)500L); pthread_create(&t[2], NULL, worker, (void *)800L); sleep(15); stop = 1; for (i = 0; i < 3; i++) pthread_join(t[i], NULL); return 0; }
An LLM helped find the warning and write this patch and its tests.
What to do
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-143087 (sched/uclamp: Reject clamp values above SCHED_CAPACITY_SCALE), 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-143087 (entry last updated 2026-12-03):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 5.11
Fixed versions: none listed yet.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-143087 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-143087 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/013876a21ca0e36a2b877d9d44639d9b2e16e22d
- https://git.kernel.org/stable/c/b4fd3e2f7cd854e3afa969b2bd851458452e5075
- https://git.kernel.org/stable/c/a5cb23398072e259872414091b05be17aec7c7e6
- https://git.kernel.org/stable/c/8127ec8458df29bd702db602473042ccb9e619b9
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-143087
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-143087"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux5.11
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 patch5/5No patch listed yet
What would change the score
- Would score about 80 if added to CISA KEV
- Would score about 75 if CISA's SSVC rates exploitation active
- Would score about 47 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-143087 |
| Record | NVD · CVE-2026-143087 |
| Other links 4 | |
| Link | git.kernel.org · stable/c/013876a21ca0e36a2b877d9d44639d9b2e16e22d |
| Link | git.kernel.org · stable/c/b4fd3e2f7cd854e3afa969b2bd851458452e5075 |
| Link | git.kernel.org · stable/c/a5cb23398072e259872414091b05be17aec7c7e6 |
| Link | git.kernel.org · stable/c/8127ec8458df29bd702db602473042ccb9e619b9 |
Questions about CVE-2026-143087
Is CVE-2026-143087 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-143087?
Linux: version 5.11.
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.