Bug 1905639 (CVE-2020-29487) - CVE-2020-29487 xen: XAPI: guest-triggered excessive memory usage (XSA-354)
Summary: CVE-2020-29487 xen: XAPI: guest-triggered excessive memory usage (XSA-354)
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2020-29487
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1907997
Blocks: 1903644
TreeView+ depends on / blocked
 
Reported: 2020-12-08 18:05 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-02-16 18:46 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-12-15 22:19:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2020-12-08 18:05:49 UTC
Certain xenstore keys provide feedback from the guest, and are therefore
watched by toolstack.  Specifically, keys are watched by xenopsd, and
data are forward 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 OOM'ing entirely, depending on
dom0's configuration.

This series introduces quotas in xenopsd to limit the quantity of keys
which result in RPC traffic.

Comment 1 Guilherme de Almeida Suckevicz 2020-12-15 16:24:24 UTC
External References:

https://www.openwall.com/lists/oss-security/2020/12/15/11

Comment 2 Guilherme de Almeida Suckevicz 2020-12-15 16:24:39 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1907997]

Comment 3 Product Security DevOps Team 2020-12-15 22:19:50 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.