Description
In the Linux kernel, the following vulnerability has been resolved: blk-cgroup: don't free a blkg with its punt work queued blkg_async_bio_workfn() relies on the bios on the list pinning the blkg. But blkcg_punt_bio_submit() can call queue_work() after a running instance already took and completed the bio, and queue_work() succeeds on an empty list for the same reason. Nothing holds the blkg then, and free_work shares its memory with async_bio_work on top of that. Hold a reference across blkcg_punt_bio_submit(), give the two works memory of their own, and cancel async_bio_work in blkg_free_workfn().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < e1a5a4500286a74cc8cb011eabe6a98b36de4df3affectedd3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < e01205c30385f5f2c69df9fd05a34a486a725dd9affectedd3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 7f95ed09d6412c085526a0a78d7c4301e96924e4affectedd3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 3933c871982c626571671e4d4929d046c26da50baffectedd3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 4def096314cf29fb6940b74c087a0b923185580eaffected
Linux Linux
Default version status: affected
5.3affected0 to < 5.3unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/e1a5a4500286a74cc8cb011eabe6a98b36de4df3 ↗
- https://git.kernel.org/stable/c/e01205c30385f5f2c69df9fd05a34a486a725dd9 ↗
- https://git.kernel.org/stable/c/7f95ed09d6412c085526a0a78d7c4301e96924e4 ↗
- https://git.kernel.org/stable/c/3933c871982c626571671e4d4929d046c26da50b ↗
- https://git.kernel.org/stable/c/4def096314cf29fb6940b74c087a0b923185580e ↗