{"id":"CVE-2026-23225","published":"2026-02-18T14:53:28Z","modified":"2026-08-05T12:20:43Z","title":"sched/mmcid: Don't assume CID is CPU owned on mode switch","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched/mmcid: Don't assume CID is CPU owned on mode switch\n\nShinichiro reported a KASAN UAF, which is actually an out of bounds access\nin the MMCID management code.\n\n   CPU0\t\t\t\t\t\tCPU1\n   \t\t\t\t\t\tT1 runs in userspace\n   T0: fork(T4) -> Switch to per CPU CID mode\n         fixup() set MM_CID_TRANSIT on T1/CPU1\n   T4 exit()\n   T3 exit()\n   T2 exit()\n\t\t\t\t\t\tT1 exit() switch to per task mode\n\t\t\t\t\t\t ---> Out of bounds access.\n\nAs T1 has not scheduled after T0 set the TRANSIT bit, it exits with the\nTRANSIT bit set. sched_mm_cid_remove_user() clears the TRANSIT bit in\nthe task and drops the CID, but it does not touch the per CPU storage.\nThat's functionally correct because a CID is only owned by the CPU when\nthe ONCPU bit is set, which is mutually exclusive with the TRANSIT flag.\n\nNow sched_mm_cid_exit() assumes that the CID is CPU owned because the\nprior mode was per CPU. It invokes mm_drop_cid_on_cpu() which clears the\nnot set ONCPU bit and then invokes clear_bit() with an insanely large\nbit number because TRANSIT is set (bit 29).\n\nPrevent that by actually validating that the CID is CPU owned in\nmm_drop_cid_on_cpu().","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00204,"percentile":0.059,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/81f29975631db8a78651b3140ecd0f88ffafc476","tags":[]},{"url":"https://git.kernel.org/stable/c/1e83ccd5921a610ef409a7d4e56db27822b4ea39","tags":[]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":1.18},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 007d84287c7466ca68a5809b616338214dc5b77b, < 81f29975631db8a78651b3140ecd0f88ffafc476",">= 007d84287c7466ca68a5809b616338214dc5b77b, < 1e83ccd5921a610ef409a7d4e56db27822b4ea39"]},{"vendor":"Linux","product":"Linux","versions":["6.19"]}],"euvd":{"id":"EUVD-2026-7676","exploited":false,"provenance":"source"}}