{"id":"CVE-2026-90185","aliases":["CVE-2026-90185"],"related":[],"kind":"vulnerability","state":"published","title":"null_blk: serialize configfs attribute stores with the lock","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-17T16:07:08.392Z","modified":"2026-10-19T09:19:08.500Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"45919fbfe1c487c17ea1d198534339a5e8abeae3","fixed":"8e839ed5210399a0330a8a6c5885c1d40a537c6d","status":"affected"},{"type":"git","introduced":"45919fbfe1c487c17ea1d198534339a5e8abeae3","fixed":"88d806d0e1d36246208386a8e55b511c1b3d647c","status":"affected"},{"type":"git","introduced":"45919fbfe1c487c17ea1d198534339a5e8abeae3","fixed":"3945ce8cbce4e328e6fdf0b522dc71e340de19db","status":"affected"},{"type":"git","introduced":"45919fbfe1c487c17ea1d198534339a5e8abeae3","fixed":"65cae82fd3c39b53430672cb9e3ecd267471a6ce","status":"affected"},{"type":"git","introduced":"45919fbfe1c487c17ea1d198534339a5e8abeae3","fixed":"c70994c2862b05e44728912b2ea9487d31e2aea7","status":"affected"},{"type":"git","introduced":"45919fbfe1c487c17ea1d198534339a5e8abeae3","fixed":"7e7fff51808237703a3a1df6dd5cae1dfd1db86d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","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/8e839ed5210399a0330a8a6c5885c1d40a537c6d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88d806d0e1d36246208386a8e55b511c1b3d647c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3945ce8cbce4e328e6fdf0b522dc71e340de19db","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65cae82fd3c39b53430672cb9e3ecd267471a6ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c70994c2862b05e44728912b2ea9487d31e2aea7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e7fff51808237703a3a1df6dd5cae1dfd1db86d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90185","url":"https://www.cve.org/CVERecord?id=CVE-2026-90185","licence":"CVE Terms of Use","modified":"2026-10-19T08:59:22.077Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90185","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90185","licence":"Public domain","modified":"2026-10-19T09:19:08.500Z"}],"updatedAt":"2026-11-25T22:59:39.334Z","epss":{"score":0.00206,"percentile":0.11211,"date":"2026-12-01T12:00:22.000Z"}}