]> 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:16:46 +0000 (13:16 -0500)
commitb764e17313534794aeb99c901869f213e36a16ef
treeffc342ddce608cb15ebcabe8fe6510e6a1da0a33
parenta6bb2f1fa62c56279bdcdadce28d1310c5e12b62
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