]> 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:18:30 +0000 (13:18 -0500)
commitb0378161c28e77e4d0e2eda3c9433ab4394d2a2f
tree18f3a0615fcd43de38d252fa728cfbeb2dd55b60
parentfb38fc58acb26d74fe8f7b19621fafaae3c040ff
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

Fixes: db6fbc106786 ("xen/blkback: make st_ statistics per ring")
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