Files
linux/drivers/net
Juergen Gross 31185df7e2 xen/netfront: don't use gnttab_query_foreign_access() for mapped status
It isn't enough to check whether a grant is still being in use by
calling gnttab_query_foreign_access(), as a mapping could be realized
by the other side just after having called that function.

In case the call was done in preparation of revoking a grant it is
better to do so via gnttab_end_foreign_access_ref() and check the
success of that operation instead.

This is CVE-2022-23037 / 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>
---
V2:
- use gnttab_try_end_foreign_access()
V3:
- don't use gnttab_try_end_foreign_access()
2022-03-07 09:48:54 +01:00
..
2022-01-14 18:50:52 -05:00
2021-12-22 10:22:13 +00:00
2021-10-22 10:16:09 -07:00
2021-10-22 10:16:14 -07:00
2021-12-06 09:32:47 +01:00
2021-10-09 11:55:01 +01:00
2021-12-24 10:23:47 +00:00
2021-11-29 20:15:03 -08:00
2021-11-23 12:18:48 +00:00
2021-10-09 11:55:01 +01:00
2021-10-09 11:55:01 +01:00