{"id":"CVE-2026-90389","revision":"4b72e5af02d3431b9f0663c1ac381369","records":[{"revision":"4b72e5af02d3431b9f0663c1ac381369","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-90389","aliases":[],"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.","state":0,"publishedAt":"2026-09-17T16:09:23.767+00:00","modifiedAt":"2026-10-19T09:02:53.05+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/md/md-bitmap.c\",\n                        \"drivers/md/md.c\",\n                        \"drivers/md/md.h\",\n                        \"drivers/md/raid5.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"78f57ef9d50a75326da73d352d7c27828495229a\",\n                            \"lessThan\": \"72ebfdf507ede7d7f2b7ca0a5634811a0e4bf045\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"78f57ef9d50a75326da73d352d7c27828495229a\",\n                            \"lessThan\": \"28fdea874f68cac6c36651b1fc7272fd2199c48d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"78f57ef9d50a75326da73d352d7c27828495229a\",\n                            \"lessThan\": \"a58923756b0f8e71032070c23ae0b167e46731da\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"78f57ef9d50a75326da73d352d7c27828495229a\",\n                            \"lessThan\": \"bace2010dd7ac07bc980575afb135c406730a7fe\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/md/md-bitmap.c\",\n                        \"drivers/md/md.c\",\n                        \"drivers/md/md.h\",\n                        \"drivers/md/raid5.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.8\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.8\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.110\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.52\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.6\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-90389","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-90389","identifiers":["CVE-2026-90389"]},"retained":false,"historicalAffected":[]}],"coverage":[]}