bfq: Update cgroup information before merging bio
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e21b7a0b988772e82e7147e1c659a5afe2ae003c · < ea591cd4eb270393810e7be01feb8fde6a34fbbe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bfq: Update cgroup information before merging bio
When the process is migrated to a different cgroup (or in case of writeback just starts submitting bios associated with a different cgroup) bfq_merge_bio() can operate with stale cgroup information in bic. Thus the bio can be merged to a request from a different cgroup or it can result in merging of bfqqs for different cgroups or bfqqs of already dead cgroups and causing possible use-after-free issues. Fix the problem by updating cgroup information in bfq_merge_bio().
From the CVE record · Linux
The Linux kernel’s BFQ I/O scheduler can use stale cgroup information when merging a bio after a process moves to another cgroup or writeback submits bios for a different cgroup. This can merge requests or queues across cgroups, including dead cgroups, and may cause a use-after-free. The input does not establish whether an attacker can trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with the BFQ I/O scheduler should check their versions; affected versions were not provided.