]> www.infradead.org Git - users/dwmw2/linux.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)
committerJuergen Gross <jgross@suse.com>
Fri, 13 Dec 2024 08:12:24 +0000 (09:12 +0100)
commitf9244fb55f37356f75c739c57323d9422d7aa0f8
treeb49dd0f8a4ffe4cc903c59a06299d225d579a998
parentf932fb9b40749d1c9a539d89bb3e288c077aafe5
xen/netfront: fix crash when removing device

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>
drivers/net/xen-netfront.c