]> git.hungrycats.org Git - linux/commit
xen-netback: Fix UAF when reading statistics data
authorJuergen Gross <jgross@suse.com>
Fri, 6 Nov 2026 12:07:52 +0000 (13:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 18:18:30 +0000 (13:18 -0500)
commit4867687b6ad28ab84bc0811d8f8f9972e769da02
tree54d6226a78d3ce07fba485dd1a302e2ef27b324d
parentdf4510aec0063c7f96f5996a165c2261ec099358
xen-netback: Fix UAF when reading statistics data

commit 5fb756f1bbec7a3862dda5d79028bf656271804c upstream.

The network statistic data in the driver is protected by RCU.
Unfortunately when tearing down the queues after an error during
connecting to the frontend (e.g. due to illegal Xenstore data filled
in by the guest), the statistic data is being freed without
synchronizing the RCU state.  In case the data is being read via sysfs
in this phase, access to already freed memory or memory being in new
use is possible.

Fix that by calling synchronize_net() before freeing the queue data.

This is XSA-526 / CVE-2026-100080

Reported-by: Yehyeong Lee <yhlee@isslab.korea.ac.kr>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/xenbus.c