]> git.hungrycats.org Git - linux/commit
xen-blkback: Avoid UAF when reading I/O statistics
authorJuergen Gross <jgross@suse.com>
Thu, 5 Nov 2026 07:27:38 +0000 (08:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 18:17:37 +0000 (13:17 -0500)
commitc49934da934cf495faf782aa5d84f413221c9be6
treefe94fbf956278074a6df0d3415218913bb7f0abf
parent34f0f63dc6dc11895a17bb5672451b6b11622c99
xen-blkback: Avoid UAF when reading I/O statistics

commit a02926f7c89bfc798ee9514e09694ff4279928a1 upstream.

Reading I/O statistics via sysfs concurrently with tearing down a
frontend device might result in UAF or a NULL dereference, as the
reading of the statistics data is not synchronized with freeing the
data.

Use a rwlock for synchronizing.

This is XSA-528 / CVE-2026-100082

Reported-by: Yehyeong Lee <yhlee@isslab.korea.ac.kr>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Roger Pau Monné <roger@xenproject.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c