UBUNTU-CVE-2022-23041
Linux PV device frontends vulnerable to attacks by backends T[his CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] Several Linux PV device frontends are using the grant table interfaces for removing access rights of the backends in ways being subject to race conditions, resulting in potential data leaks, data corruption by malicious backends, and denial of service triggered by malicious backends: blkfront, netfront, scsifront and the gntalloc driver are testing whether a grant reference is still in use. If this is not the case, they assume that a following removal of the granted access will always succeed, which is not true in case the backend has mapped the granted page between those two operations. As a result the backend can keep access to the memory page of the guest no matter how the page will be used after the frontend I/O has finished. The xenbus driver has a similar problem, as it doesn't check the success of removing the granted access of a shared ring buffer. blkfront: CVE-2022-23036 netfront: CVE-2022-23037 scsifront: CVE-2022-23038 gntalloc: CVE-2022-23039 xenbus: CVE-2022-23040 blkfront, netfront, scsifront, usbfront, dmabuf, xenbus, 9p, kbdfront, and pvcalls are using a functionality to delay freeing a grant reference until it is no longer in use, but the freeing of the related data page is not synchronized with dropping the granted access. As a result the backend can keep access to the memory page even after it has been freed and then re-used for a different purpose. CVE-2022-23041 netfront will fail a BUG_ON() assertion if it fails to revoke access in the rx path. This will result in a Denial of Service (DoS) situation of the guest which can be triggered by the backend. CVE-2022-23042
02 / AFFECTED SOFTWARE
Affected packages
1 explicit affected versions
50 explicit affected versions
6 explicit affected versions
12 explicit affected versions
6 explicit affected versions
20 explicit affected versions
191 explicit affected versions
46 explicit affected versions
70 explicit affected versions
35 explicit affected versions
101 explicit affected versions
13 explicit affected versions
4 explicit affected versions
23 explicit affected versions
107 explicit affected versions
1 explicit affected versions
1 explicit affected versions
21 explicit affected versions
16 explicit affected versions
5 explicit affected versions
7 explicit affected versions
12 explicit affected versions
12 explicit affected versions
1 explicit affected versions
7 explicit affected versions
12 explicit affected versions
50 explicit affected versions
11 explicit affected versions
58 explicit affected versions
12 explicit affected versions
49 explicit affected versions
106 explicit affected versions
10 explicit affected versions
174 explicit affected versions
33 explicit affected versions
1 explicit affected versions
1 explicit affected versions
26 explicit affected versions
13 explicit affected versions
1 explicit affected versions
29 explicit affected versions
13 explicit affected versions
1 explicit affected versions
51 explicit affected versions
33 explicit affected versions
10 explicit affected versions
99 explicit affected versions
11 explicit affected versions
12 explicit affected versions
122 explicit affected versions
7 explicit affected versions
49 explicit affected versions
2 explicit affected versions
115 explicit affected versions
151 explicit affected versions
136 explicit affected versions
46 explicit affected versions
122 explicit affected versions
76 explicit affected versions
1 explicit affected versions
17 explicit affected versions
28 explicit affected versions
75 explicit affected versions
12 explicit affected versions
1 explicit affected versions
1 explicit affected versions
80 explicit affected versions
5 explicit affected versions
40 explicit affected versions
1 explicit affected versions
38 explicit affected versions
13 explicit affected versions
6 explicit affected versions
77 explicit affected versions
10 explicit affected versions
12 explicit affected versions
36 explicit affected versions
44 explicit affected versions
16 explicit affected versions
13 explicit affected versions
33 explicit affected versions
38 explicit affected versions
9 explicit affected versions
39 explicit affected versions
84 explicit affected versions
17 explicit affected versions
126 explicit affected versions
105 explicit affected versions
4 explicit affected versions
1 explicit affected versions
98 explicit affected versions
39 explicit affected versions
43 explicit affected versions
6 explicit affected versions
130 explicit affected versions
150 explicit affected versions
40 explicit affected versions
4 explicit affected versions
28 explicit affected versions
1 explicit affected versions
52 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
Linux PV device frontends vulnerable to attacks by backends T[his CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to which CVE.] Several Linux PV device frontends are using the grant table interfaces for removing access rights of the backends in ways being subject to race conditions, resulting in potential data leaks, data corruption by malicious backends, and denial of service triggered by malicious backends: blkfront, netfront, scsifront and the gntalloc driver are testing whether a grant reference is still in use. If this is not the case, they assume that a following removal of the granted access will always succeed, which is not true in case the backend has mapped the granted page between those two operations. As a result the backend can keep access to the memory page of the guest no matter how the page will be used after the frontend I/O has finished. The xenbus driver has a similar problem, as it doesn't check the success of removing the granted access of a shared ring buffer. blkfront: CVE-2022-23036 netfront: CVE-2022-23037 scsifront: CVE-2022-23038 gntalloc: CVE-2022-23039 xenbus: CVE-2022-23040 blkfront, netfront, scsifront, usbfront, dmabuf, xenbus, 9p, kbdfront, and pvcalls are using a functionality to delay freeing a grant reference until it is no longer in use, but the freeing of the related data page is not synchronized with dropping the granted access. As a result the backend can keep access to the memory page even after it has been freed and then re-used for a different purpose. CVE-2022-23041 netfront will fail a BUG_ON() assertion if it fails to revoke access in the rx path. This will result in a Denial of Service (DoS) situation of the guest which can be triggered by the backend. CVE-2022-23042
05 / REFERENCES
Further evidence
- https://ubuntu.com/security/CVE-2022-23041
- https://ubuntu.com/security/notices/USN-5467-1
- https://ubuntu.com/security/notices/USN-7428-1
- https://ubuntu.com/security/notices/USN-7428-2
- https://ubuntu.com/security/notices/USN-7506-1
- https://ubuntu.com/security/notices/USN-7506-2
- https://ubuntu.com/security/notices/USN-7506-3
- https://ubuntu.com/security/notices/USN-7506-4
- https://www.cve.org/CVERecord?id=CVE-2022-23041
- https://xenbits.xen.org/xsa/advisory-396.html