Cloudanix VulnDB

CVE-2018-14678

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Jul 28, 2018

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A bug in how virtual machines handle certain low-level operations can make Linux systems running inside Xen crash or let someone already inside the machine gain more control.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Full Compromise
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The xen_failsafe_callback entry point in the Linux kernel's 64-bit x86 entry code fails to preserve the RBX register, resulting in use of uninitialized memory that can crash the system or be leveraged for privilege escalation within a Xen PV guest.

Why it matters to the business

Virtualized Linux guests on Xen may experience sudden crashes or, in rare cases, allow an attacker already inside the guest to obtain elevated access, disrupting workloads and increasing risk in multi-tenant environments.

How an attack unfolds

An attacker with local access inside a 64-bit x86 PV Linux guest crafts input that invokes the failsafe callback path; because RBX is not saved and restored, the kernel dereferences uninitialized values, leading to a crash or controlled memory corruption that can be chained for privilege gain.

How to fix it

Upgrade the Linux kernel to a version containing the fix for this register-save issue and reboot affected guests; apply the corresponding Xen and distribution updates that backport the correction.

How to confirm the fix worked

Confirm the running kernel version matches or exceeds the patched release from the distribution or Xen project; test that deliberate invocation of the failsafe path no longer produces uninitialized memory faults or guest crashes.

Typical attack path

  1. Obtain local shell inside a vulnerable 64-bit x86 PV Xen guest
  2. Trigger the xen_failsafe_callback entry point with crafted register state
  3. Observe kernel crash or attempt to exploit resulting uninitialized memory for privilege escalation

How to detect it

Search system logs and kernel crash dumps for references to xen_failsafe_callback or uninitialized memory faults originating from arch/x86/entry/entry_64.S; correlate with guest-initiated hypercalls that exercise the failsafe path.

What your security team should do

  • Prioritize patching Xen PV guests on 64-bit x86 within the next maintenance window
  • Review guest kernel configurations to ensure only necessary PV features are enabled
  • Monitor for guest kernel oops or panic events that reference entry_64.S or failsafe paths

The record

An issue was discovered in the Linux kernel through 4.17.11, as used in Xen through 4.11.x. The xen_failsafe_callback entry point in arch/x86/entry/entry_64.S does not properly maintain RBX, which allows local users to cause a denial of service (uninitialized memory usage and system crash). Within Xen, 64-bit x86 PV Linux guest OS users can trigger a guest OS crash or possibly gain privileges.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 4.17.14-1
Debian:12 linux 0 4.17.14-1
Debian:13 linux 0 4.17.14-1
Debian:8 linux 0 3.16.59-1
Debian:8 linux-4.9 0 4.9.110-3+deb9u5~deb8u1
Debian:9 linux 0 4.9.110-3+deb9u5
Mageia:6 kernel 0 4.14.62-2.mga6
Mageia:6 kernel-linus 0 4.14.62-1.mga6
Mageia:6 kernel-tmb 0 4.14.62-1.mga6
Mageia:6 kernel-userspace-headers 0 4.14.62-2.mga6
Mageia:6 kmod-vboxadditions 0 5.2.14-12.mga6
Mageia:6 kmod-virtualbox 0 5.2.14-12.mga6
Mageia:6 kmod-xtables-addons 0 2.13-54.mga6
Mageia:6 wireguard-tools 0 0.0.20180802-1.mga6
SUSE:Enterprise Storage 4 kernel-default 0 4.4.121-92.95.1
SUSE:Enterprise Storage 4 kernel-source 0 4.4.121-92.95.1
SUSE:Enterprise Storage 4 kernel-syms 0 4.4.121-92.95.1
SUSE:Enterprise Storage 4 kgraft-patch-SLE12-SP2_Update_25 0 1-3.4.1
SUSE:Enterprise Storage 4 lttng-modules 0 2.7.1-9.6.1
SUSE:Linux Enterprise High Availability Extension 12 SP2 kernel-default 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server 12 SP2-BCL kernel-default 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server 12 SP2-BCL kernel-source 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server 12 SP2-BCL kernel-syms 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server 12 SP2-BCL lttng-modules 0 2.7.1-9.6.1
SUSE:Linux Enterprise Server 12 SP2-LTSS kernel-default 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server 12 SP2-LTSS kernel-source 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server 12 SP2-LTSS kernel-syms 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server 12 SP2-LTSS kgraft-patch-SLE12-SP2_Update_25 0 1-3.4.1
SUSE:Linux Enterprise Server 12 SP2-LTSS lttng-modules 0 2.7.1-9.6.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 kernel-default 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 kernel-source 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 kernel-syms 0 4.4.121-92.95.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 kgraft-patch-SLE12-SP2_Update_25 0 1-3.4.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 lttng-modules 0 2.7.1-9.6.1
SUSE:OpenStack Cloud 7 kernel-default 0 4.4.121-92.95.1
SUSE:OpenStack Cloud 7 kernel-source 0 4.4.121-92.95.1
SUSE:OpenStack Cloud 7 kernel-syms 0 4.4.121-92.95.1
SUSE:OpenStack Cloud 7 kgraft-patch-SLE12-SP2_Update_25 0 1-3.4.1
SUSE:OpenStack Cloud 7 lttng-modules 0 2.7.1-9.6.1
Ubuntu:14.04:LTS linux 0 3.11.0-12.19
Ubuntu:14.04:LTS linux-aws 0 4.4.0-1002.2
Ubuntu:14.04:LTS linux-azure 0 4.15.0-1041.45~14.04.1
Ubuntu:14.04:LTS linux-lts-xenial 0 4.4.0-13.29~14.04.1
Ubuntu:16.04:LTS linux 0 4.2.0-16.19
Ubuntu:16.04:LTS linux-aws 0 4.4.0-1001.10
Ubuntu:16.04:LTS linux-aws-hwe 0 4.15.0-1035.37~16.04.1
Ubuntu:16.04:LTS linux-azure 0 4.15.0-1041.45
Ubuntu:16.04:LTS linux-euclid 0 4.4.0-9019.20
Ubuntu:16.04:LTS linux-gcp 0 4.15.0-1029.31~16.04.1
Ubuntu:16.04:LTS linux-hwe 0 4.15.0-47.50~16.04.1
Ubuntu:16.04:LTS linux-kvm 0 4.4.0-1004.9
Ubuntu:16.04:LTS linux-oracle 0 4.15.0-1010.12~16.04.1
Ubuntu:16.04:LTS linux-raspi2 0 4.2.0-1013.19
Ubuntu:16.04:LTS linux-snapdragon 0 4.4.0-1012.12
Ubuntu:18.04:LTS linux 0 4.15.0-47.50
Ubuntu:18.04:LTS linux-aws 0 4.15.0-1035.37
Ubuntu:18.04:LTS linux-azure 0 4.18.0-1011.11~18.04.1
Ubuntu:18.04:LTS linux-gcp 0 4.15.0-1029.31
Ubuntu:18.04:LTS linux-gcp-edge 0 4.18.0-1004.5~18.04.1
Ubuntu:18.04:LTS linux-hwe 0 4.18.0-13.14~18.04.1
Ubuntu:18.04:LTS linux-hwe-edge 0 5.0.0-15.16~18.04.1
Ubuntu:18.04:LTS linux-kvm 0 4.15.0-1031.31
Ubuntu:18.04:LTS linux-oem 0 4.15.0-1035.40
Ubuntu:18.04:LTS linux-oracle 0 4.15.0-1010.12
Ubuntu:18.04:LTS linux-raspi2 0 4.15.0-1033.35
Ubuntu:18.04:LTS linux-snapdragon 0 4.4.0-1077.82
Ubuntu:Pro:14.04:LTS linux-lts-utopic 0 No fix
Ubuntu:Pro:14.04:LTS linux-lts-vivid 0 No fix
Ubuntu:Pro:14.04:LTS linux-lts-wily 0 No fix
Ubuntu:Pro:16.04:LTS linux-flo 0 No fix
Ubuntu:Pro:16.04:LTS linux-goldfish 0 No fix
Ubuntu:Pro:16.04:LTS linux-mako 0 No fix

Related vulnerabilities