# CVE-2026-63799: sched/mmcid: Fix OOB clear\_bit when CID is MM\_CID\_UNSET in fixup path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 3, 2026-11-28)
- **CWE:** CWE-125
- **Published:** 2026-07-19T12:02:06.341Z
- **Modified:** 2026-08-17T05:17:16.260Z

## Who should check

- Anyone running Linux \>= fbd0e71dc370af73f6b316e4de9eed273dd90340, \< 8d32856fb72ba976d9c87ba405fd17e80419934c; \>= fbd0e71dc370af73f6b316e4de9eed273dd90340, \< de3ab9bd3133899efb92e4cd05ba4203e58fc0a3
- Anyone running Linux 6.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

sched/mmcid: Fix OOB clear\_bit when CID is MM\_CID\_UNSET in fixup path

In mm\_cid\_fixup\_cpus\_to\_tasks(), when rq-\>curr has the target mm and
mm\_cid.active is set, the CID is checked with cid\_in\_transit() before
setting the transition bit.  In per-CPU mode a newly forked or exec'd
task can be running with mm\_cid.cid == MM\_CID\_UNSET because CIDs are
assigned lazily on schedule-in.  With cid\_in\_transit() the guard passes
for MM\_CID\_UNSET (no transit bit), converts it to MM\_CID\_UNSET \|
MM\_CID\_TRANSIT and stores it back; later mm\_cid\_schedout() feeds this
to clear\_bit() with MM\_CID\_UNSET as the bit number, triggering an
out-of-bounds write.

Symptoms: this is genuine memory corruption, but a bounded out-of-bounds
write, not an arbitrary one.  MM\_CID\_UNSET is the fixed sentinel BIT(31),
so once the bad value reaches mm\_cid\_schedout() the cid\_from\_transit\_cid()
strip leaves MM\_CID\_UNSET, which fails the "cid \< max\_cids" convergence
test and falls into mm\_drop\_cid() -\> clear\_bit(MM\_CID\_UNSET,
mm\_cidmask(mm)).  The cid bitmap is embedded in the mm\_struct slab object
(after cpu\_bitmap and mm\_cpus\_allowed) and is only num\_possible\_cpus()
bits wide, so clearing bit 31 is a deterministic OOB bit-clear at a
fixed offset of 2^31 / 8 == 256 MiB past the bitmap base.  The address is
not attacker-influenced (fixed sentinel -\> fixed offset) and the op only
clears a single bit; what sits 256 MiB further along the direct map is
whatever kernel object happens to live there, so this corrupts one bit of
unpredictable kernel memory -- it is not an arbitrary-address or
arbitrary-value write.

It triggers only in per-CPU CID mode, when a CPU is running an active
task of the target mm whose cid is still MM\_CID\_UNSET -- the
fork()/execve() window before that task's next schedule-in assigns it a
real CID -- and a per-CPU -\> per-task fixup walks over it (the mode
fallback driven by a thread exit, sched\_mm\_cid\_exit(), or by the deferred
max\_cids recompute in mm\_cid\_work\_fn()).

In practice syzkaller surfaced it as a KASAN use-after-free reported in
\_\_schedule -\> mm\_cid\_switch\_to, where the offending clear\_bit() is inlined
via mm\_cid\_schedout() -\> mm\_drop\_cid().

Guard the transition-bit assignment against MM\_CID\_UNSET, in addition to
the existing cid\_in\_transit() check, so the bit is only set on a genuine
task-owned CID.  A CPU-owned (MM\_CID\_ONCPU) CID of a running active task
is handled by the cid\_on\_cpu(pcp-\>cid) branch above and never reaches
this path, so excluding MM\_CID\_UNSET (and the already-transitioning case)
is sufficient.

## Affected and fixed versions

- Linux: \>= fbd0e71dc370af73f6b316e4de9eed273dd90340, \< 8d32856fb72ba976d9c87ba405fd17e80419934c; \>= fbd0e71dc370af73f6b316e4de9eed273dd90340, \< de3ab9bd3133899efb92e4cd05ba4203e58fc0a3 (cvelist)
- Linux: 6.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-63799. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-63799.md
Affected: Linux >= fbd0e71dc370af73f6b316e4de9eed273dd90340, < 8d32856fb72ba976d9c87ba405fd17e80419934c; >= fbd0e71dc370af73f6b316e4de9eed273dd90340, < de3ab9bd3133899efb92e4cd05ba4203e58fc0a3; Linux 6.19
Fixed in: Linux 8d32856fb72ba976d9c87ba405fd17e80419934c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-63799 being exploited?

There is no confirmed exploitation: CVE-2026-63799 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-63799?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-63799?

Linux \>= fbd0e71dc370af73f6b316e4de9eed273dd90340, \< 8d32856fb72ba976d9c87ba405fd17e80419934c; \>= fbd0e71dc370af73f6b316e4de9eed273dd90340, \< de3ab9bd3133899efb92e4cd05ba4203e58fc0a3; Linux 6.19.

### Is there a fix for CVE-2026-63799?

Yes. Fixed in Linux 8d32856fb72ba976d9c87ba405fd17e80419934c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-63799?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/8d32856fb72ba976d9c87ba405fd17e80419934c>
- patch: <https://git.kernel.org/stable/c/de3ab9bd3133899efb92e4cd05ba4203e58fc0a3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-63799>

HTML: <https://flawdb.com/CVE-2026-63799> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-63799>
