CVE-2023-54088: blk-cgroup: hold queue_lock when removing blkg->q_node
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
blk-cgroup: hold queue_lock when removing blkg->q_node
When blkg is removed from q->blkg_list from blkg_free_workfn(), queue_lock has to be held, otherwise, all kinds of bugs(list corruption, hard lockup, ..) can be triggered from blkg_destroy_all().
The Linux kernel CVE team has assigned CVE-2023-54088 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1.16 with commit 81c1188905f88b77743d1fdeeedfc8cb7b67787d and fixed in 6.1.17 with commit b5dae1cd0d8368b4338430ff93403df67f0b8bcc Issue introduced in 6.2.3 with commit bfe46d2efe46c5c952f982e2ca94fe2ec5e58e2a and fixed in 6.2.4 with commit 083b58373463a6e5ee60ecb135269348f68ad7df Issue introduced in 6.3 with commit f1c006f1c6850c14040f8337753a63119bba39b9 and fixed in 6.4.12 with commit cd4ffdf56791eec95af01f06bee1ec7665ca75c4 Issue introduced in 6.3 with commit f1c006f1c6850c14040f8337753a63119bba39b9 and fixed in 6.5 with commit c164c7bc9775be7bcc68754bb3431fce5823822e
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-2023-54088
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:
block/blk-cgroup.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/b5dae1cd0d8368b4338430ff93403df67f0b8bcc https://git.kernel.org/stable/c/083b58373463a6e5ee60ecb135269348f68ad7df https://git.kernel.org/stable/c/cd4ffdf56791eec95af01f06bee1ec7665ca75c4 https://git.kernel.org/stable/c/c164c7bc9775be7bcc68754bb3431fce5823822e