{"id":14876,"date":"2026-09-04T19:02:16","date_gmt":"2026-09-04T11:02:16","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63799"},"modified":"2026-09-04T19:02:16","modified_gmt":"2026-09-04T11:02:16","slug":"cve-2026-63799","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-63799","title":{"rendered":"CVE-2026-63799 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nsched\/mmcid: Fix OOB"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>sched\/mmcid: Fix OOB clear_bit when CID is MM_CID_UNSET in fixup path<\/p>\n<p>In mm_cid_fixup_cpus_to_tasks(), when rq-&gt;curr has the target mm and<br \/>\nmm_cid.active is set, the CID is checked with cid_in_transit() before<br \/>\nsetting the transition bit.  In per-CPU mode a newly forked or exec&#8217;d<br \/>\ntask can be running with mm_cid.cid == MM_CID_UNSET because CIDs are<br \/>\nassigned lazily on schedule-in.  With cid_in_transit() the guard passes<br \/>\nfor MM_CID_UNSET (no transit bit), converts it to MM_CID_UNSET |<br \/>\nMM_CID_TRANSIT and stores it back; later mm_cid_schedout() feeds this<br \/>\nto clear_bit() with MM_CID_UNSET as the bit number, triggering an<br \/>\nout-of-bounds write.<\/p>\n<p>Symptoms: this is genuine memory corruption, but a bounded out-of-bounds<br \/>\nwrite, not an arbitrary one.  MM_CID_UNSET is the fixed sentinel BIT(31),<br \/>\nso once the bad value reaches mm_cid_schedout() the cid_from_transit_cid()<br \/>\nstrip leaves MM_CID_UNSET, which fails the &#8220;cid  clear_bit(MM_CID_UNSET,<br \/>\nmm_cidmask(mm)).  The cid bitmap is embedded in the mm_struct slab object<br \/>\n(after cpu_bitmap and mm_cpus_allowed) and is only num_possible_cpus()<br \/>\nbits wide, so clearing bit 31 is a deterministic OOB bit-clear at a<br \/>\nfixed offset of 2^31 \/ 8 == 256 MiB past the bitmap base.  The address is<br \/>\nnot attacker-influenced (fixed sentinel -&gt; fixed offset) and the op only<br \/>\nclears a single bit; what sits 256 MiB further along the direct map is<br \/>\nwhatever kernel object happens to live there, so this corrupts one bit of<br \/>\nunpredictable kernel memory &#8212; it is not an arbitrary-address or<br \/>\narbitrary-value write.<\/p>\n<p>It triggers only in per-CPU CID mode, when a CPU is running an active<br \/>\ntask of the target mm whose cid is still MM_CID_UNSET &#8212; the<br \/>\nfork()\/execve() window before that task&#8217;s next schedule-in assigns it a<br \/>\nreal CID &#8212; and a per-CPU -&gt; per-task fixup walks over it (the mode<br \/>\nfallback driven by a thread exit, sched_mm_cid_exit(), or by the deferred<br \/>\nmax_cids recompute in mm_cid_work_fn()).<\/p>\n<p>In practice syzkaller surfaced it as a KASAN use-after-free reported in<br \/>\n__schedule -&gt; mm_cid_switch_to, where the offending clear_bit() is inlined<br \/>\nvia mm_cid_schedout() -&gt; mm_drop_cid().<\/p>\n<p>Guard the transition-bit assignment against MM_CID_UNSET, in addition to<br \/>\nthe existing cid_in_transit() check, so the bit is only set on a genuine<br \/>\ntask-owned CID.  A CPU-owned (MM_CID_ONCPU) CID of a running active task<br \/>\nis handled by the cid_on_cpu(pcp-&gt;cid) branch above and never reaches<br \/>\nthis path, so excluding MM_CID_UNSET (and the already-transitioning case)<br \/>\nis sufficient.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>sched\/mmcid: Fix OOB clear_bit when CID is MM_CID_UNSET in fixup path<\/p>\n<p>In mm_cid_fixup_cpus_to_tasks(), when rq-&gt;curr has the targe<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-14876","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/14876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}