Skip to content

blk-mq: backport CVE-2023-54227 to 6.1.y

Artem Dinaburg linux-block lkml stable 1 version Applied

Status from this message: Queued the pair for 6.1, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2blk-mq: fix tags leak when shrink nr_hw_queuesblock/blk-mq.c+5 -10 replies
2/2blk-mq: fix tags UAF when shrinking q->nr_hw_queuesblock/blk-mq.c+7 -70 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMing LeiHannes Reinecke
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 6.1.y 0/2] blk-mq: backport CVE-2023-54227 to 6.1.y

Hi Greg, Sasha, and block maintainers,

I am continuing with the smaller CVE backports still missing from 6.1.y. This series handles CVE-2023-54227. The first patch frees excess tag sets after a queue-count reduction. Its immediate upstream follow-up moves that free past hctx resizing so the repair itself cannot race into a UAF; they need to travel together.

Both changes are already inherited by v6.6 and every later mainline release.

Could you please queue the pair for 6.1.y?

Thanks,
Artem Dinaburg

AI assistance: An LLM helped find the missing CVE fix, adapt it, and prepare the draft; I reviewed the code and build output.

Chengming Zhou (2):
blk-mq: fix tags leak when shrink nr_hw_queues
blk-mq: fix tags UAF when shrinking q->nr_hw_queues

 block/blk-mq.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.5