long running loops in grant table handling In order to properly monitor resource use, Xen maintains information on the grant mappings a domain may create to map grants offered by other domains. In the process of carrying out certain actions, Xen would iterate over all such entries, including ones which aren't in use anymore and some which may have been created but never used. If the number of entries for a given domain is large enough, this iterating of the entire table may tie up a CPU for too long, starving other domains or causing issues in the hypervisor itself. Note that a domain may map its own grants, i.e. there is no need for multiple domains to be involved here. A pair of "cooperating" guests may, however, cause the effects to be more severe.

References[email protected]/message/FZCNPSRPGFCQRYE2BI4D4Q4SCE56ANV2/[email protected]/message/LPRVHW4J4ZCPPOHZEWP5MOJT7XDGFFPJ/[email protected]/message/2VQCFAPBNGBBAOMJZG6QBREOG5IIDZID/


Source: MITRE

Published: 2021-08-27

Updated: 2022-09-28

Type: CWE-835

Risk Information


Base Score: 4.9

Vector: AV:L/AC:L/Au:N/C:N/I:N/A:C

Impact Score: 6.9

Exploitability Score: 3.9

Severity: MEDIUM


Base Score: 5.5

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Impact Score: 3.6

Exploitability Score: 1.8

Severity: MEDIUM