CVE-2020-29487 Denial of service in n/a

High 7.5 Published Updated

A malicious guest can cause host denial of service by monopolizing memory in dom0 through inefficient xenstore key watching logic in the XAPI toolstack.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2020-29487?

CVE-2020-29487 is a high-severity denial of service vulnerability in n/a, published on 15 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Xen XAPI before 2020-12-15. Certain xenstore keys provide feedback from the guest, and are therefore watched by toolstack. Specifically, keys are watched by xenopsd, and data are forwarded via RPC through message-switch to xapi. The watching logic in xenopsd sends one RPC update containing all data, any time any single xenstore key is updated, and therefore has O(N^2) time complexity. Furthermore, message-switch retains recent (currently 128) RPC messages for diagnostic purposes, yielding O(M*N) space complexity. The quantity of memory a single guest can monopolise is bounded by xenstored quota, but the quota is fairly large. It is believed to be in excess of 1G per malicious guest. In practice, this manifests as a host denial of service, either through message-switch thrashing against swap, or OOMing entirely, depending on dom0's configuration. (There are no quotas in xenopsd to limit the quantity of keys that result in RPC traffic.) A buggy or malicious guest can cause unreasonable memory usage in dom0, resulting in a host denial of service. All versions of XAPI are vulnerable. Systems that are not using the XAPI toolstack are not vulnerable.

Weakness: CWE-770

Which versions are affected by CVE-2020-29487?

It affects 1 product.

Products include Xen Xapi.

How do I fix CVE-2020-29487?

No fix has been published for CVE-2020-29487 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2020-29487 being exploited?

There is no known exploitation of CVE-2020-29487 in the wild and no public exploit code.

Sources

Also known as GHSA-q329-j6wm-vf6q.

Is CVE-2020-29487 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free