CVE-2026-90188: null_blk: free global tag_set on init error path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
null_blk: free global tag_set on init error path
If shared_tags is enabled, null_setup_tagset() allocates the global tag_set via null_init_global_tag_set(). If device creation later fails, err_dev destroys the default devices and calls unregister_blkdev(), but never frees the global tag_set. Since module init failed, null_exit() is never invoked, so the global tag_set's tags and maps are permanently leaked.
Free the global tag_set in err_dev, matching null_exit() which does if (tag_set.ops) blk_mq_free_tag_set(&tag_set).
The Linux kernel CVE team has assigned CVE-2026-90188 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.13 with commit 82f402fefa50f1675bf918bcd009981bd6b30ac8 and fixed in 6.1.188 with commit 0b2faa330184340d9418ad2c627c2ae881772e33 Issue introduced in 4.13 with commit 82f402fefa50f1675bf918bcd009981bd6b30ac8 and fixed in 6.6.157 with commit 665c94554ff0d5d88caae7f40c16c8e0a3369eda Issue introduced in 4.13 with commit 82f402fefa50f1675bf918bcd009981bd6b30ac8 and fixed in 6.12.110 with commit 2882e1450fa4597811a951196e07553ea134eb31 Issue introduced in 4.13 with commit 82f402fefa50f1675bf918bcd009981bd6b30ac8 and fixed in 6.18.52 with commit 2b59484ac1e64dd78dbe8c6140891c6308085a75 Issue introduced in 4.13 with commit 82f402fefa50f1675bf918bcd009981bd6b30ac8 and fixed in 7.2.6 with commit 081cf37e8a0e00cd91d6df53172c9d928790a798 Issue introduced in 4.13 with commit 82f402fefa50f1675bf918bcd009981bd6b30ac8 and fixed in 7.3-rc1 with commit 5a1c5ff3a49ba93a1fd0b70537e7a0164071760d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-90188
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/block/null_blk/main.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/0b2faa330184340d9418ad2c627c2ae881772e33 https://git.kernel.org/stable/c/665c94554ff0d5d88caae7f40c16c8e0a3369eda https://git.kernel.org/stable/c/2882e1450fa4597811a951196e07553ea134eb31 https://git.kernel.org/stable/c/2b59484ac1e64dd78dbe8c6140891c6308085a75 https://git.kernel.org/stable/c/081cf37e8a0e00cd91d6df53172c9d928790a798 https://git.kernel.org/stable/c/5a1c5ff3a49ba93a1fd0b70537e7a0164071760d