Always-Incorrect Control Flow Implementation Affecting xen-libs package, versions <4.12.3_08-3.28.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-SLES151-XENLIBS-2700885
  • published14 Apr 2022
  • disclosed29 Sept 2020

Introduced: 29 Sep 2020

CVE-2020-25598  (opens in a new tab)
CWE-670  (opens in a new tab)

How to fix?

Upgrade SLES:15.1 xen-libs to version 4.12.3_08-3.28.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream xen-libs package and not the xen-libs package as distributed by SLES. See How to fix? for SLES:15.1 relevant fixed versions and status.

An issue was discovered in Xen 4.14.x. There is a missing unlock in the XENMEM_acquire_resource error path. The RCU (Read, Copy, Update) mechanism is a synchronisation primitive. A buggy error path in the XENMEM_acquire_resource exits without releasing an RCU reference, which is conceptually similar to forgetting to unlock a spinlock. A buggy or malicious HVM stubdomain can cause an RCU reference to be leaked. This causes subsequent administration operations, (e.g., CPU offline) to livelock, resulting in a host Denial of Service. The buggy codepath has been present since Xen 4.12. Xen 4.14 and later are vulnerable to the DoS. The side effects are believed to be benign on Xen 4.12 and 4.13, but patches are provided nevertheless. The vulnerability can generally only be exploited by x86 HVM VMs, as these are generally the only type of VM that have a Qemu stubdomain. x86 PV and PVH domains, as well as ARM VMs, typically don't use a stubdomain. Only VMs using HVM stubdomains can exploit the vulnerability. VMs using PV stubdomains, or with emulators running in dom0, cannot exploit the vulnerability.

CVSS Scores

version 3.1