Cloudanix VulnDB

CVE-2021-42252

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Oct 11, 2021

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in the Linux kernel on certain server hardware lets a logged-in user take complete control of the machine by overwriting protected memory.

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

Incorrect size comparison in aspeed_lpc_ctrl_mmap allows a local process with access to the Aspeed LPC control interface to perform out-of-bounds kernel memory writes.

Why it matters to the business

A local attacker can escalate privileges to root, fully compromise the system, and disrupt operations on affected Linux kernels running on Aspeed hardware.

How an attack unfolds

An attacker with local access opens the Aspeed LPC control device, supplies crafted parameters that bypass the flawed non-size comparison, and writes attacker-controlled data into arbitrary kernel memory locations to achieve code execution.

How to fix it

Upgrade the Linux kernel to version 5.14.6 or later, or apply commit b49a0e69a7b1a68c8d3f64097d06dabb770fec96. Rebuild and reboot with the patched kernel on all Aspeed-based systems.

How to confirm the fix worked

Verify kernel version is 5.14.6 or newer; confirm the presence of commit b49a0e69a7b1a68c8d3f64097d06dabb770fec96 in the source tree; test that mmap calls to the LPC device no longer permit oversized mappings.

Typical attack path

  1. Obtain local shell or process on target system with access to /dev/aspeed-lpc-ctrl
  2. Open the LPC control interface and invoke mmap with malicious size/offset values
  3. Trigger the incorrect comparison to perform out-of-bounds kernel write
  4. Overwrite kernel function pointers or data structures to gain ring-0 execution
  5. Install persistent rootkit or execute arbitrary commands as root

How to detect it

Review kernel logs for unexpected oops or warnings originating from aspeed-lpc-ctrl.c; audit process activity that opens or mmaps the LPC control device; correlate with unusual kernel memory write patterns in forensic memory captures.

What your security team should do

  • Immediately identify all systems running kernels before 5.14.6 that expose the Aspeed LPC driver
  • Schedule kernel upgrades to 5.14.6+ within the next maintenance window
  • Restrict local access to the LPC control device via udev rules or SELinux policies until patched
  • Monitor for new public exploits given the low EPSS and lack of KEV listing

The record

An issue was discovered in aspeed_lpc_ctrl_mmap in drivers/soc/aspeed/aspeed-lpc-ctrl.c in the Linux kernel before 5.14.6. Local attackers able to access the Aspeed LPC control interface could overwrite memory in the kernel and potentially execute privileges, aka CID-b49a0e69a7b1. This occurs because a certain comparison uses values that are not memory sizes.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 5.10.70-1
Debian:12 linux 0 5.14.6-1
Debian:13 linux 0 5.14.6-1
Debian:14 linux 0 5.14.6-1
Debian:9 linux-4.19 0 4.19.208-1~deb9u1
SUSE:Enterprise Storage 6 kernel-default 0 4.12.14-197.102.2
SUSE:Enterprise Storage 6 kernel-docs 0 4.12.14-197.102.2
SUSE:Enterprise Storage 6 kernel-obs-build 0 4.12.14-197.102.1
SUSE:Enterprise Storage 6 kernel-source 0 4.12.14-197.102.2
SUSE:Enterprise Storage 6 kernel-syms 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Availability Extension 12 SP4 kernel-default 0 4.12.14-95.83.2
SUSE:Linux Enterprise High Availability Extension 12 SP5 kernel-default 0 4.12.14-122.98.1
SUSE:Linux Enterprise High Availability Extension 15 kernel-default 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Availability Extension 15 SP1 kernel-default 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Availability Extension 15 SP2 kernel-default 0 5.3.18-24.93.1
SUSE:Linux Enterprise High Availability Extension 15 SP3 kernel-default 0 5.3.18-59.34.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-default 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-docs 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-obs-build 0 4.12.14-197.102.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-source 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-syms 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-default 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-docs 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-obs-build 0 4.12.14-197.102.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-source 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-syms 0 4.12.14-197.102.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-default 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-docs 0 4.12.14-150.78.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-obs-build 0 4.12.14-150.78.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-source 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-syms 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-vanilla 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-default 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-docs 0 4.12.14-150.78.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-obs-build 0 4.12.14-150.78.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-source 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-syms 0 4.12.14-150.78.1
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-vanilla 0 4.12.14-150.78.1
SUSE:Linux Enterprise Live Patching 12 SP4 kernel-default 0 4.12.14-95.83.2
SUSE:Linux Enterprise Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_23 0 1-6.3.1
SUSE:Linux Enterprise Live Patching 12 SP5 kernel-default 0 4.12.14-122.98.1
SUSE:Linux Enterprise Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_25 0 1-8.7.1
SUSE:Linux Enterprise Live Patching 15 kernel-default 0 4.12.14-150.78.1
SUSE:Linux Enterprise Live Patching 15 kernel-livepatch-SLE15_Update_26 0 1-1.3.1
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-default 0 4.12.14-197.102.2
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_27 0 1-3.3.1
SUSE:Linux Enterprise Live Patching 15 SP2 kernel-default 0 5.3.18-24.93.1
SUSE:Linux Enterprise Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_21 0 1-5.3.5
SUSE:Linux Enterprise Live Patching 15 SP3 kernel-default 0 5.3.18-59.34.1
SUSE:Linux Enterprise Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_9 0 1-7.3.1
SUSE:Linux Enterprise Micro 5.0 kernel-default 0 5.3.18-24.93.1
SUSE:Linux Enterprise Micro 5.0 kernel-default-base 0 5.3.18-24.93.1.9.42.5
SUSE:Linux Enterprise Micro 5.0 kernel-rt 0 5.3.18-57.1
SUSE:Linux Enterprise Micro 5.1 kernel-default 0 5.3.18-59.34.1
SUSE:Linux Enterprise Micro 5.1 kernel-default-base 0 5.3.18-59.34.1.18.21.1
SUSE:Linux Enterprise Micro 5.1 kernel-rt 0 5.3.18-60.1
SUSE:Linux Enterprise Module for Basesystem 15 SP2 kernel-default 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Basesystem 15 SP2 kernel-default-base 0 5.3.18-24.93.1.9.42.5
SUSE:Linux Enterprise Module for Basesystem 15 SP2 kernel-preempt 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Basesystem 15 SP2 kernel-source 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-64kb 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-default 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-default-base 0 5.3.18-59.34.1.18.21.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-preempt 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-source 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-zfcpdump 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Development Tools 15 SP2 kernel-docs 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP2 kernel-obs-build 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP2 kernel-preempt 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP2 kernel-source 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP2 kernel-syms 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-docs 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-obs-build 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-preempt 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-source 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-syms 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Legacy 15 SP2 kernel-default 0 5.3.18-24.93.1
SUSE:Linux Enterprise Module for Legacy 15 SP3 kernel-default 0 5.3.18-59.34.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP2 kernel-azure 0 5.3.18-18.72.2
SUSE:Linux Enterprise Module for Public Cloud 15 SP2 kernel-source-azure 0 5.3.18-18.72.2
SUSE:Linux Enterprise Module for Public Cloud 15 SP2 kernel-syms-azure 0 5.3.18-18.72.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP3 kernel-azure 0 5.3.18-38.28.2
SUSE:Linux Enterprise Module for Public Cloud 15 SP3 kernel-source-azure 0 5.3.18-38.28.2
SUSE:Linux Enterprise Module for Public Cloud 15 SP3 kernel-syms-azure 0 5.3.18-38.28.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-rt 0 4.12.14-10.65.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-rt_debug 0 4.12.14-10.65.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-source-rt 0 4.12.14-10.65.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-syms-rt 0 4.12.14-10.65.1
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-default 0 4.12.14-95.83.2
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-source 0 4.12.14-95.83.2
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-syms 0 4.12.14-95.83.2
SUSE:Linux Enterprise Server 12 SP5 kernel-default 0 4.12.14-122.98.1
SUSE:Linux Enterprise Server 12 SP5 kernel-source 0 4.12.14-122.98.1
SUSE:Linux Enterprise Server 12 SP5 kernel-syms 0 4.12.14-122.98.1
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-default 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-docs 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-obs-build 0 4.12.14-197.102.1
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-source 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-syms 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-default 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-docs 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-obs-build 0 4.12.14-197.102.1
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-source 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-syms 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-zfcpdump 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server 15-LTSS kernel-default 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server 15-LTSS kernel-docs 0 4.12.14-150.78.2
SUSE:Linux Enterprise Server 15-LTSS kernel-obs-build 0 4.12.14-150.78.2
SUSE:Linux Enterprise Server 15-LTSS kernel-source 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server 15-LTSS kernel-syms 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server 15-LTSS kernel-vanilla 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server 15-LTSS kernel-zfcpdump 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 kernel-default 0 4.12.14-95.83.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 kernel-source 0 4.12.14-95.83.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 kernel-syms 0 4.12.14-95.83.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-default 0 4.12.14-122.98.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-source 0 4.12.14-122.98.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-syms 0 4.12.14-122.98.1
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-default 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-docs 0 4.12.14-150.78.2
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-obs-build 0 4.12.14-150.78.2
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-source 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-syms 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-vanilla 0 4.12.14-150.78.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-default 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-docs 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-obs-build 0 4.12.14-197.102.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-source 0 4.12.14-197.102.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-syms 0 4.12.14-197.102.2
SUSE:Linux Enterprise Software Development Kit 12 SP5 kernel-docs 0 4.12.14-122.98.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 kernel-obs-build 0 4.12.14-122.98.1
SUSE:Linux Enterprise Workstation Extension 12 SP5 kernel-default 0 4.12.14-122.98.1
SUSE:Linux Enterprise Workstation Extension 15 SP2 kernel-default 0 5.3.18-24.93.1
SUSE:Linux Enterprise Workstation Extension 15 SP2 kernel-preempt 0 5.3.18-24.93.1
SUSE:Linux Enterprise Workstation Extension 15 SP3 kernel-default 0 5.3.18-59.34.1
SUSE:Linux Enterprise Workstation Extension 15 SP3 kernel-preempt 0 5.3.18-59.34.1
SUSE:OpenStack Cloud 9 kernel-default 0 4.12.14-95.83.2
SUSE:OpenStack Cloud 9 kernel-source 0 4.12.14-95.83.2
SUSE:OpenStack Cloud 9 kernel-syms 0 4.12.14-95.83.2
SUSE:OpenStack Cloud Crowbar 9 kernel-default 0 4.12.14-95.83.2
SUSE:OpenStack Cloud Crowbar 9 kernel-source 0 4.12.14-95.83.2
SUSE:OpenStack Cloud Crowbar 9 kernel-syms 0 4.12.14-95.83.2
SUSE:Real Time Module 15 SP2 kernel-rt 0 5.3.18-57.1
SUSE:Real Time Module 15 SP2 kernel-rt_debug 0 5.3.18-57.1
SUSE:Real Time Module 15 SP2 kernel-source-rt 0 5.3.18-57.1
SUSE:Real Time Module 15 SP2 kernel-syms-rt 0 5.3.18-57.1
SUSE:Real Time Module 15 SP3 kernel-rt 0 5.3.18-60.1
SUSE:Real Time Module 15 SP3 kernel-rt_debug 0 5.3.18-60.1
SUSE:Real Time Module 15 SP3 kernel-source-rt 0 5.3.18-60.1
SUSE:Real Time Module 15 SP3 kernel-syms-rt 0 5.3.18-60.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-lts-xenial 0 4.4.0-13.29~14.04.1
Ubuntu:16.04:LTS linux 0 4.4.0-2.16
Ubuntu:16.04:LTS linux-aws 0 4.4.0-1001.10
Ubuntu:16.04:LTS linux-hwe-edge 0 No fix
Ubuntu:18.04:LTS linux 0 4.15.0-162.170
Ubuntu:18.04:LTS linux-aws 0 4.15.0-1115.122
Ubuntu:18.04:LTS linux-aws-5.4 0 5.4.0-1059.62~18.04.1
Ubuntu:18.04:LTS linux-azure 0 No fix
Ubuntu:18.04:LTS linux-azure-4.15 0 4.15.0-1126.139
Ubuntu:18.04:LTS linux-azure-5.4 0 5.4.0-1063.66~18.04.1
Ubuntu:18.04:LTS linux-dell300x 0 4.15.0-1030.35
Ubuntu:18.04:LTS linux-gcp-4.15 0 4.15.0-1111.125
Ubuntu:18.04:LTS linux-gcp-5.4 0 5.4.0-1057.61~18.04.1
Ubuntu:18.04:LTS linux-gkeop-5.4 0 5.4.0-1026.27~18.04.1
Ubuntu:18.04:LTS linux-hwe 0 No fix
Ubuntu:18.04:LTS linux-hwe-5.4 0 5.4.0-90.101~18.04.1
Ubuntu:18.04:LTS linux-hwe-edge 0 No fix
Ubuntu:18.04:LTS linux-ibm-5.4 0 5.4.0-1010.11~18.04.2
Ubuntu:18.04:LTS linux-kvm 0 4.15.0-1102.104
Ubuntu:18.04:LTS linux-oracle 0 4.15.0-1083.91
Ubuntu:18.04:LTS linux-raspi-5.4 0 5.4.0-1046.50~18.04.1
Ubuntu:18.04:LTS linux-raspi2 0 4.15.0-1098.104
Ubuntu:18.04:LTS linux-snapdragon 0 4.15.0-1115.124
Ubuntu:20.04:LTS linux 0 5.4.0-90.101
Ubuntu:20.04:LTS linux-aws 0 5.4.0-1059.62
Ubuntu:20.04:LTS linux-aws-5.11 0 5.11.0-1022.23~20.04.1
Ubuntu:20.04:LTS linux-aws-5.13 0 5.13.0-1008.9~20.04.2
Ubuntu:20.04:LTS linux-aws-5.15 0 5.15.0-1014.18~20.04.1
Ubuntu:20.04:LTS linux-azure 0 5.4.0-1063.66
Ubuntu:20.04:LTS linux-azure-5.11 0 5.11.0-1022.23~20.04.1
Ubuntu:20.04:LTS linux-azure-5.13 0 5.13.0-1009.10~20.04.2
Ubuntu:20.04:LTS linux-azure-5.15 0 5.15.0-1007.8~20.04.1
Ubuntu:20.04:LTS linux-azure-fde-5.15 0 5.15.0-1019.24~20.04.1.1
Ubuntu:20.04:LTS linux-gcp 0 5.4.0-1057.61
Ubuntu:20.04:LTS linux-gcp-5.11 0 5.11.0-1023.25~20.04.1
Ubuntu:20.04:LTS linux-gcp-5.13 0 5.13.0-1008.9~20.04.3
Ubuntu:20.04:LTS linux-gcp-5.15 0 5.15.0-1006.9~20.04.1
Ubuntu:20.04:LTS linux-gke 0 5.4.0-1055.58
Ubuntu:20.04:LTS linux-gkeop 0 5.4.0-1026.27
Ubuntu:20.04:LTS linux-gkeop-5.15 0 5.15.0-1003.5~20.04.2
Ubuntu:20.04:LTS linux-hwe-5.11 0 5.11.0-41.45~20.04.1
Ubuntu:20.04:LTS linux-hwe-5.13 0 5.13.0-22.22~20.04.1
Ubuntu:20.04:LTS linux-hwe-5.15 0 5.15.0-33.34~20.04.1
Ubuntu:20.04:LTS linux-hwe-5.8 0 No fix
Ubuntu:20.04:LTS linux-ibm 0 5.4.0-1007.8
Ubuntu:20.04:LTS linux-ibm-5.15 0 5.15.0-1033.36~20.04.1
Ubuntu:20.04:LTS linux-intel-iotg-5.15 0 5.15.0-1003.5~20.04.1
Ubuntu:20.04:LTS linux-iot 0 5.4.0-1001.3

Related vulnerabilities