Lucene search

K
xenXen ProjectXSA-317
HistoryJul 07, 2020 - 12:00 p.m.

Incorrect error handling in event channel port allocation

2020-07-0712:00:00
Xen Project
xenbits.xen.org
11

6.5 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

4.7 Medium

CVSS2

Access Vector

LOCAL

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

COMPLETE

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

0.0004 Low

EPSS

Percentile

13.4%

ISSUE DESCRIPTION

The allocation of an event channel port may fail for multiple reasons: 1) Port is already in use 2) The memory allocation failed 3) The port we try to allocate is higher than what is supported by the ABI (e.g 2L or FIFO) used by the guest or the limit set by an administrator (‘max_event_channels’ in xl cfg).
Due to the missing error checks, only 1) will be considered as an error. All the other cases will provide a “valid” port and will result to a crash when trying to access the event channel.

IMPACT

When the administrator configured a guest to allow more than 1023 event channels, that guest may be able to crash the host.
When Xen is out-of-memory, allocation of new event channels will result in crashing the host rather than reporting an error.

VULNERABLE SYSTEMS

Xen versions 4.10 and later are affected. (The special Xen 4.8 “Comet” branch for XSA-254 contains changes similar to those which led to this vulnerability; so it is likely to be affected, but - like mainline Xen 4.8 - that branch is longer security-supported.)
Older Xen versions are unaffected.
All architectures are affected.
The default configuration, when guests are created with xl/libxl, is not vulnerable, because of the default event channel limit (see Mitigation, below).

CPENameOperatorVersion
xenge4.10

6.5 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

4.7 Medium

CVSS2

Access Vector

LOCAL

Access Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

COMPLETE

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

0.0004 Low

EPSS

Percentile

13.4%