blk-mq: setup queue ->tag_set before initializing hctx
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: setup queue ->tag_set before initializing hctx
Commit 7b815817aa58 ("blk-mq: add helper for checking if one CPU is mapped to specified hctx") needs to check queue mapping via tag set in hctx's cpuhp handler.
However, q->tag_set may not be setup yet when the cpuhp handler is enabled, then kernel oops is triggered.
Fix the issue by setup queue tag_set before initializing hctx.
From the CVE record · Linux
The Linux kernel’s blk-mq code can enable an hctx CPU hotplug handler before the queue’s tag set is initialized. This can trigger a kernel oops. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the affected blk-mq code should check their installations; affected versions were not provided.