{"id":"CVE-2026-90389","aliases":["CVE-2026-90389"],"related":[],"kind":"vulnerability","state":"published","title":"md: scope memalloc_noio to allocation critical sections","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: scope memalloc_noio to allocation critical sections\n\nStoring a memalloc_noio_save() token in mddev->noio_flags lets one task\nsave the token and another task restore it. With concurrent suspend sysfs\nwrites, task A can enter PF_MEMALLOC_NOIO, return to userspace still in\nthat scope, and later task B can restore A's saved token.\n\nAvoid tying the token lifetime to mddev. Keep mddev_suspend() and\nmddev_resume() only responsible for array suspension, and enter\nPF_MEMALLOC_NOIO only in the MD paths that allocate memory after the array\nhas been suspended. Restore the token before resuming the array.\n\nA reproducer repeatedly writes suspend_lo and suspend_hi from concurrent\nworkers and checks each worker's /proc/self/stat flags before and after the\nsysfs write.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: scope memalloc_noio to allocation critical sections\n\nStoring a memalloc_noio_save() token in mddev->noio_flags lets one task\nsave the token and another task restore it. With concurrent suspend sysfs\nwrites, task A can enter PF_MEMALLOC_NOIO, return to userspace still in\nthat scope, and later task B can restore A's saved token.\n\nAvoid tying the token lifetime to mddev. Keep mddev_suspend() and\nmddev_resume() only responsible for array suspension, and enter\nPF_MEMALLOC_NOIO only in the MD paths that allocate memory after the array\nhas been suspended. Restore the token before resuming the array.\n\nA reproducer repeatedly writes suspend_lo and suspend_hi from concurrent\nworkers and checks each worker's /proc/self/stat flags before and after the\nsysfs write.","source":"cvelist"}],"published":"2026-09-17T16:09:23.767Z","modified":"2026-10-19T09:19:32.977Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"78f57ef9d50a75326da73d352d7c27828495229a","fixed":"72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045","status":"affected"},{"type":"git","introduced":"78f57ef9d50a75326da73d352d7c27828495229a","fixed":"28fdea874f68cac6c36651b1fc7272fd2199c48d","status":"affected"},{"type":"git","introduced":"78f57ef9d50a75326da73d352d7c27828495229a","fixed":"a58923756b0f8e71032070c23ae0b167e46731da","status":"affected"},{"type":"git","introduced":"78f57ef9d50a75326da73d352d7c27828495229a","fixed":"bace2010dd7ac07bc980575afb135c406730a7fe","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28fdea874f68cac6c36651b1fc7272fd2199c48d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a58923756b0f8e71032070c23ae0b167e46731da","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bace2010dd7ac07bc980575afb135c406730a7fe","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90389","url":"https://www.cve.org/CVERecord?id=CVE-2026-90389","licence":"CVE Terms of Use","modified":"2026-10-19T09:02:53.050Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90389","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90389","licence":"Public domain","modified":"2026-10-19T09:19:32.977Z"}],"updatedAt":"2026-11-25T22:59:39.402Z","epss":{"score":0.002,"percentile":0.1034,"date":"2026-12-01T12:00:22.000Z"}}