blk-mq: make sure active queue usage is held for bio_integrity_prep()
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: make sure active queue usage is held for bio_integrity_prep()
blk_integrity_unregister() can come if queue usage counter isn't held for one bio with integrity prepared, so this request may be completed with calling profile->complete_fn, then kernel panic.
Another constraint is that bio_integrity_prep() needs to be called before bio merge.
Fix the issue by:
- call bio_integrity_prep() with one queue usage counter grabbed reliably
- call bio_integrity_prep() before bio merge
From the CVE record · Linux
The Linux kernel can fail to hold an active queue usage counter while preparing a bio for integrity handling. If integrity is unregistered before the request completes, calling the completion function can cause a kernel panic. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running the Linux kernel should check whether their version includes the blk-mq fix; affected versions are not specified.