]> 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:15:59 +0000 (13:15 -0500)
commitfe9ead8c5bdb752e329cecfecbdb5dfca5e9996b
tree36d07794c183ee2fa787c111101097d1dc64fe87
parent0d515c409033c8e2a645a781be3ca76ab825fc8c
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