]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen/netfront: fix crash when removing device
authorJuergen Gross <jgross@suse.com>
Thu, 7 Nov 2024 15:17:00 +0000 (16:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:07:22 +0000 (18:07 +0100)
commit2657ba851fa3381256d81e431b20041dc232fd88
treeac57d24537d18f7201ed8ec7d22a39ef682c88c2
parent3dfd8991ad33b10c2fb027a4cfcf57579fa786c1
xen/netfront: fix crash when removing device

commit f9244fb55f37356f75c739c57323d9422d7aa0f8 upstream.

When removing a netfront device directly after a suspend/resume cycle
it might happen that the queues have not been setup again, causing a
crash during the attempt to stop the queues another time.

Fix that by checking the queues are existing before trying to stop
them.

This is XSA-465 / CVE-2024-53240.

Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Fixes: d50b7914fae0 ("xen-netfront: Fix NULL sring after live migration")
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netfront.c