{"id":"CVE-2026-90185","revision":"94f2ccf735bb490189af621879c1e31b","records":[{"revision":"94f2ccf735bb490189af621879c1e31b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-90185","aliases":[],"title":"null_blk: serialize configfs attribute stores with the lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnull_blk: serialize configfs attribute stores with the lock\n\nThe NULLB_DEVICE_ATTR _store takes no lock: apply_fn attributes\n(submit_queues, poll_queues) get dev->NAME written again after apply_fn\nreturns, outside its lock; APPLY=NULL attributes are entirely lockless.\nconfigfs only serializes stores per-open-file, so concurrent stores on\nseparate fds race.\n\nFor apply_fn attributes, once one store's apply_fn has reconfigured the\nhardware, a second (losing) store can still overwrite dev->NAME\nafterwards. This leaves dev->submit_queues out of sync with the live\nqueue count, which is later caught by the WARN_ON_ONCE() in\nnull_map_queues().\n\nFor !apply_fn attributes, power_store()'s null_add_dev() validates and\nbuilds the device under \"lock\" but only sets CONFIGURED afterwards. A store\nslipping in during this window can change a field mid-setup -- for example,\nzone_nr_conv can be pushed above nr_zones after it has already been\nclamped, leading to an out-of-bounds dev->zones[] access.\n\nTake \"lock\" in the macro around the apply_fn call, the CONFIGURED test and\nthe field write, and move it out of nullb_apply_submit_queues()/\nnullb_apply_poll_queues() so both paths are covered once. This serializes\nstores with power_store's setup and with each other.","state":0,"publishedAt":"2026-09-17T16:07:08.392+00:00","modifiedAt":"2026-10-19T08:59:22.077+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/block/null_blk/main.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"45919fbfe1c487c17ea1d198534339a5e8abeae3\",\n                            \"lessThan\": \"8e839ed5210399a0330a8a6c5885c1d40a537c6d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"45919fbfe1c487c17ea1d198534339a5e8abeae3\",\n                            \"lessThan\": \"88d806d0e1d36246208386a8e55b511c1b3d647c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"45919fbfe1c487c17ea1d198534339a5e8abeae3\",\n                            \"lessThan\": \"3945ce8cbce4e328e6fdf0b522dc71e340de19db\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"45919fbfe1c487c17ea1d198534339a5e8abeae3\",\n                            \"lessThan\": \"65cae82fd3c39b53430672cb9e3ecd267471a6ce\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"45919fbfe1c487c17ea1d198534339a5e8abeae3\",\n                            \"lessThan\": \"c70994c2862b05e44728912b2ea9487d31e2aea7\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"45919fbfe1c487c17ea1d198534339a5e8abeae3\",\n                            \"lessThan\": \"7e7fff51808237703a3a1df6dd5cae1dfd1db86d\",\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/block/null_blk/main.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.5\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.5\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.188\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.157\",\n                            \"lessThanOrEqual\": \"6.6.*\",\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/8e839ed5210399a0330a8a6c5885c1d40a537c6d","https://git.kernel.org/stable/c/88d806d0e1d36246208386a8e55b511c1b3d647c","https://git.kernel.org/stable/c/3945ce8cbce4e328e6fdf0b522dc71e340de19db","https://git.kernel.org/stable/c/65cae82fd3c39b53430672cb9e3ecd267471a6ce","https://git.kernel.org/stable/c/c70994c2862b05e44728912b2ea9487d31e2aea7","https://git.kernel.org/stable/c/7e7fff51808237703a3a1df6dd5cae1dfd1db86d"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-90185","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-90185","identifiers":["CVE-2026-90185"]},"retained":false,"historicalAffected":[]}],"coverage":[]}