Bug 1905648 (CVE-2020-29483) - CVE-2020-29483 xen: Xenstore: guests can disturb domain cleanup (XSA-325)
Summary: CVE-2020-29483 xen: Xenstore: guests can disturb domain cleanup (XSA-325)
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2020-29483
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: 1908087
Blocks: 1903644
TreeView+ depends on / blocked
 
Reported: 2020-12-08 18:29 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-02-16 18:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 22:19:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2020-12-08 18:29:02 UTC
Xenstored and guests communicate via a shared memory page using a
specific protocol. When a guest violates this protocol, xenstored will
drop the connection to that guest.

Unfortunately this is done by just removing the guest from xenstored's
internal management, resulting in the same actions as if the guest had
been destroyed, including sending an @releaseDomain event.

@releaseDomain events do not say guest has been removed.  All watchers
of this event must look at the states of all guests to find the guest
which has been removed.  When an @releaseDomain is generated due to
domain xenstored protocol violation, As the guest is still running, so
the watchers will not react.

Later, when the guest is actually destroyed, xenstored will no longer
have it stored in its internal data base, so no further @releaseDomain
event will be sent. This can lead to a zombie domain; memory mappings
of that guest's memory will not be removed, due to the missing
event. This zombie domain will be cleaned up only after another domain
is destroyed, as that will trigger another @releaseDomain event.

If the device model of the guest which violated the Xenstore protocol
is running in a stub-domain, a use-after-free case could happen in
xenstored, after having removed the guest from its internal data base,
possibly resulting in a crash of xenstored.

Comment 1 Guilherme de Almeida Suckevicz 2020-12-15 20:00:06 UTC
External References:

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

Comment 2 Guilherme de Almeida Suckevicz 2020-12-15 20:00:19 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1908087]

Comment 3 Product Security DevOps Team 2020-12-15 22:19:52 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.