{"id":"CVE-2026-90389","state":"PUBLISHED","title":"md: scope memalloc_noio to allocation critical sections","description":"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.","publishedAt":"2026-09-17T16:09:23.767Z","updatedAt":"2026-10-19T09:02:53.050Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045","versionType":"git"},{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"28fdea874f68cac6c36651b1fc7272fd2199c48d","versionType":"git"},{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"a58923756b0f8e71032070c23ae0b167e46731da","versionType":"git"},{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"bace2010dd7ac07bc980575afb135c406730a7fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/md-bitmap.c","drivers/md/md.c","drivers/md/md.h","drivers/md/raid5.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/md-bitmap.c","drivers/md/md.c","drivers/md/md.h","drivers/md/raid5.c"]}],"references":["https://git.kernel.org/stable/c/72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045","https://git.kernel.org/stable/c/28fdea874f68cac6c36651b1fc7272fd2199c48d","https://git.kernel.org/stable/c/a58923756b0f8e71032070c23ae0b167e46731da","https://git.kernel.org/stable/c/bace2010dd7ac07bc980575afb135c406730a7fe"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90389.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90389","state":"PUBLISHED","datePublished":"2026-09-17T16:09:23.767Z","dateUpdated":"2026-10-19T09:02:53.050Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.810Z"},"containers":{"cna":{"title":"md: scope memalloc_noio to allocation critical sections","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045","versionType":"git"},{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"28fdea874f68cac6c36651b1fc7272fd2199c48d","versionType":"git"},{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"a58923756b0f8e71032070c23ae0b167e46731da","versionType":"git"},{"version":"78f57ef9d50a75326da73d352d7c27828495229a","status":"affected","lessThan":"bace2010dd7ac07bc980575afb135c406730a7fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/md-bitmap.c","drivers/md/md.c","drivers/md/md.h","drivers/md/raid5.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/md/md-bitmap.c","drivers/md/md.c","drivers/md/md.h","drivers/md/raid5.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045"},{"url":"https://git.kernel.org/stable/c/28fdea874f68cac6c36651b1fc7272fd2199c48d"},{"url":"https://git.kernel.org/stable/c/a58923756b0f8e71032070c23ae0b167e46731da"},{"url":"https://git.kernel.org/stable/c/bace2010dd7ac07bc980575afb135c406730a7fe"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:02:53.050Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}