Files
linux/drivers
Juergen Gross 91eaad01bc xen/netfront: react properly to failing gnttab_end_foreign_access_ref()
Commit 66e3531b33 upstream.

When calling gnttab_end_foreign_access_ref() the returned value must
be tested and the reaction to that value should be appropriate.

In case of failure in xennet_get_responses() the reaction should not be
to crash the system, but to disable the network device.

The calls in setup_netfront() can be replaced by calls of
gnttab_end_foreign_access(). While at it avoid double free of ring
pages and grant references via xennet_disconnect_backend() in this case.

This is CVE-2022-23042 / part of XSA-396.

Reported-by: Demi Marie Obenour <demi@invisiblethingslab.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 12:45:43 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-16 12:22:16 +09:00
2023-05-16 12:43:44 +09:00
2023-05-16 12:12:51 +09:00
2023-05-16 12:44:17 +09:00
2023-05-15 12:46:28 +09:00
2023-05-16 12:43:47 +09:00
2023-05-16 09:58:13 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 16:59:11 +09:00