Cloudanix VulnDB

CVE-2021-39711

Medium · 4.4

CVSS

4.4

EPSS

0.2%

Published

Mar 16, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A privileged attacker on certain Android devices could read small pieces of internal operating-system memory that should have stayed hidden.

Exploitation
Local Privilege
Attacker needs
High Privilege
Complexity
Low
Impact
Data Exposure
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

Out-of-bounds read in bpf_prog_test_run_skb due to incorrect size value, enabling disclosure of adjacent kernel memory to a process with system privileges.

Why it matters to the business

On affected Android devices an attacker who already holds elevated system rights could obtain fragments of kernel memory; the issue has seen negligible real-world exploitation and carries low operational urgency.

How an attack unfolds

An attacker with system execution rights loads a specially crafted BPF program into the test-run interface, supplies an incorrect size parameter, triggers the out-of-bounds read, and exfiltrates the leaked kernel bytes through a user-space channel.

How to fix it

Update the Android kernel to a version containing the upstream fix for A-154175781; if a patched build is unavailable, restrict unprivileged access to BPF test-run interfaces via SELinux or seccomp policy.

How to confirm the fix worked

Verify the presence of the corrected bpf_prog_test_run_skb implementation in the running kernel; confirm that attempts to supply oversized test buffers no longer produce reads past the allocated skb.

Typical attack path

  1. Obtain system-level execution on the target Android device
  2. Invoke bpf_prog_test_run_skb with a malformed size argument
  3. Read kernel memory beyond the intended buffer
  4. Exfiltrate disclosed data to attacker-controlled storage

How to detect it

Review kernel audit logs and BPF-related system-call traces for repeated invocations of bpf_prog_test_run with anomalous size fields; look for processes running with system UID performing unexpected BPF test operations.

What your security team should do

  • Prioritize kernel updates on devices that expose BPF test-run functionality
  • Audit custom kernels or vendor images for the vulnerable test_run.c code
  • Monitor upstream Android security bulletins for back-port announcements

The record

In bpf_prog_test_run_skb of test_run.c, there is a possible out of bounds read due to Incorrect Size Value. This could lead to local information disclosure with System execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android kernelAndroid ID: A-154175781References: Upstream kernel

Affected packages

Ecosystem Package Introduced Fixed
Android :linux_kernel: :0 :2022-03-05
Debian:11 linux 0 4.18.6-1
Debian:12 linux 0 4.18.6-1
Debian:13 linux 0 4.18.6-1
SUSE:Enterprise Storage 6 kernel-default 0 4.12.14-150100.197.114.2
SUSE:Enterprise Storage 6 kernel-docs 0 4.12.14-150100.197.114.2
SUSE:Enterprise Storage 6 kernel-obs-build 0 4.12.14-150100.197.114.2
SUSE:Enterprise Storage 6 kernel-source 0 4.12.14-150100.197.114.2
SUSE:Enterprise Storage 6 kernel-syms 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Availability Extension 12 SP4 kernel-default 0 4.12.14-95.99.3
SUSE:Linux Enterprise High Availability Extension 12 SP5 kernel-default 0 4.12.14-122.124.3
SUSE:Linux Enterprise High Availability Extension 15 kernel-default 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Availability Extension 15 SP1 kernel-default 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-default 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-docs 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-obs-build 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-source 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS kernel-syms 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-default 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-docs 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-obs-build 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-source 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-syms 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-default 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-docs 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-obs-build 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-source 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-syms 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS kernel-vanilla 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-default 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-docs 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-obs-build 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-source 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-syms 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise High Performance Computing 15-LTSS kernel-vanilla 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Live Patching 12 SP4 kernel-default 0 4.12.14-95.99.3
SUSE:Linux Enterprise Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_27 0 1-6.3.3
SUSE:Linux Enterprise Live Patching 12 SP5 kernel-default 0 4.12.14-122.124.3
SUSE:Linux Enterprise Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_32 0 1-8.3.3
SUSE:Linux Enterprise Live Patching 15 kernel-default 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Live Patching 15 kernel-livepatch-SLE15_Update_30 0 1-150000.1.3.2
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-default 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_31 0 1-150100.3.3.2
SUSE:Linux Enterprise Real Time 12 SP5 kernel-rt 0 4.12.14-10.94.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-rt_debug 0 4.12.14-10.94.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-source-rt 0 4.12.14-10.94.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-syms-rt 0 4.12.14-10.94.1
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-default 0 4.12.14-95.99.3
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-source 0 4.12.14-95.99.2
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-syms 0 4.12.14-95.99.2
SUSE:Linux Enterprise Server 12 SP5 kernel-azure 0 4.12.14-16.100.2
SUSE:Linux Enterprise Server 12 SP5 kernel-default 0 4.12.14-122.124.3
SUSE:Linux Enterprise Server 12 SP5 kernel-source 0 4.12.14-122.124.2
SUSE:Linux Enterprise Server 12 SP5 kernel-source-azure 0 4.12.14-16.100.1
SUSE:Linux Enterprise Server 12 SP5 kernel-syms 0 4.12.14-122.124.2
SUSE:Linux Enterprise Server 12 SP5 kernel-syms-azure 0 4.12.14-16.100.1
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-default 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-docs 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-obs-build 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-source 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-BCL kernel-syms 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-default 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-docs 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-obs-build 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-source 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-syms 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-zfcpdump 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server 15-LTSS kernel-default 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server 15-LTSS kernel-docs 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server 15-LTSS kernel-obs-build 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server 15-LTSS kernel-source 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server 15-LTSS kernel-syms 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server 15-LTSS kernel-vanilla 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server 15-LTSS kernel-zfcpdump 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 kernel-default 0 4.12.14-95.99.3
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 kernel-source 0 4.12.14-95.99.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 kernel-syms 0 4.12.14-95.99.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-azure 0 4.12.14-16.100.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-default 0 4.12.14-122.124.3
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-source 0 4.12.14-122.124.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-source-azure 0 4.12.14-16.100.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-syms 0 4.12.14-122.124.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-syms-azure 0 4.12.14-16.100.1
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-default 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-docs 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-obs-build 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-source 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-syms 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server for SAP Applications 15 kernel-vanilla 0 4.12.14-150000.150.92.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-default 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-docs 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-obs-build 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-source 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-syms 0 4.12.14-150100.197.114.2
SUSE:Linux Enterprise Software Development Kit 12 SP5 kernel-docs 0 4.12.14-122.124.2
SUSE:Linux Enterprise Software Development Kit 12 SP5 kernel-obs-build 0 4.12.14-122.124.3
SUSE:Linux Enterprise Workstation Extension 12 SP5 kernel-default 0 4.12.14-122.124.3
SUSE:OpenStack Cloud 9 kernel-default 0 4.12.14-95.99.3
SUSE:OpenStack Cloud 9 kernel-source 0 4.12.14-95.99.2
SUSE:OpenStack Cloud 9 kernel-syms 0 4.12.14-95.99.2
SUSE:OpenStack Cloud Crowbar 9 kernel-default 0 4.12.14-95.99.3
SUSE:OpenStack Cloud Crowbar 9 kernel-source 0 4.12.14-95.99.2
SUSE:OpenStack Cloud Crowbar 9 kernel-syms 0 4.12.14-95.99.2
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:16.04:LTS linux-kvm 0 4.4.0-1004.9
Ubuntu:18.04:LTS linux 0 4.15.0-169.177
Ubuntu:18.04:LTS linux-aws 0 4.15.0-1121.129
Ubuntu:18.04:LTS linux-aws-5.0 0 No fix
Ubuntu:18.04:LTS linux-aws-5.3 0 No fix
Ubuntu:18.04:LTS linux-aws-5.4 0 5.4.0-1018.18~18.04.1
Ubuntu:18.04:LTS linux-azure 0 No fix
Ubuntu:18.04:LTS linux-azure-4.15 0 4.15.0-1131.144
Ubuntu:18.04:LTS linux-azure-5.3 0 No fix
Ubuntu:18.04:LTS linux-azure-5.4 0 5.4.0-1020.20~18.04.1
Ubuntu:18.04:LTS linux-azure-edge 0 No fix
Ubuntu:18.04:LTS linux-dell300x 0 4.15.0-1035.40
Ubuntu:18.04:LTS linux-gcp 0 No fix
Ubuntu:18.04:LTS linux-gcp-4.15 0 4.15.0-1116.130
Ubuntu:18.04:LTS linux-gcp-5.3 0 No fix
Ubuntu:18.04:LTS linux-gcp-5.4 0 5.4.0-1019.19~18.04.2
Ubuntu:18.04:LTS linux-gke-4.15 0 No fix
Ubuntu:18.04:LTS linux-gke-5.4 0 5.4.0-1025.25~18.04.1
Ubuntu:18.04:LTS linux-gkeop-5.4 0 5.4.0-1001.1
Ubuntu:18.04:LTS linux-hwe 0 No fix
Ubuntu:18.04:LTS linux-hwe-5.4 0 5.4.0-37.41~18.04.1
Ubuntu:18.04:LTS linux-hwe-edge 0 5.0.0-15.16~18.04.1
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-1107.109
Ubuntu:18.04:LTS linux-oem 0 No fix
Ubuntu:18.04:LTS linux-oem-osp1 0 5.0.0-1010.11
Ubuntu:18.04:LTS linux-oracle 0 4.15.0-1087.95
Ubuntu:18.04:LTS linux-oracle-5.0 0 No fix
Ubuntu:18.04:LTS linux-oracle-5.3 0 No fix
Ubuntu:18.04:LTS linux-oracle-5.4 0 5.4.0-1019.19~18.04.1
Ubuntu:18.04:LTS linux-raspi-5.4 0 5.4.0-1013.13~18.04.1
Ubuntu:18.04:LTS linux-raspi2 0 4.15.0-1103.110
Ubuntu:18.04:LTS linux-snapdragon 0 4.15.0-1120.129
Ubuntu:20.04:LTS linux 0 5.4.0-9.12
Ubuntu:20.04:LTS linux-aws 0 5.4.0-1005.5
Ubuntu:20.04:LTS linux-aws-5.11 0 No fix
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-aws-5.8 0 No fix
Ubuntu:20.04:LTS linux-azure 0 5.4.0-1006.6
Ubuntu:20.04:LTS linux-azure-5.11 0 No fix
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-5.8 0 No fix
Ubuntu:20.04:LTS linux-azure-fde-5.15 0 5.15.0-1019.24~20.04.1.1
Ubuntu:20.04:LTS linux-bluefield 0 5.4.0-1007.10
Ubuntu:20.04:LTS linux-gcp 0 5.4.0-1005.5
Ubuntu:20.04:LTS linux-gcp-5.11 0 No fix
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-gcp-5.8 0 No fix
Ubuntu:20.04:LTS linux-gke 0 5.4.0-1033.35
Ubuntu:20.04:LTS linux-gkeop 0 5.4.0-1008.9
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 No fix
Ubuntu:20.04:LTS linux-hwe-5.13 0 5.13.0-21.21~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-1003.4
Ubuntu:20.04:LTS linux-ibm-5.15 0 5.15.0-1033.36~20.04.1
Ubuntu:20.04:LTS linux-intel-5.13 0 No fix
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
Ubuntu:20.04:LTS linux-kvm 0 5.4.0-1004.4
Ubuntu:20.04:LTS linux-lowlatency-hwe-5.15 0 5.15.0-33.34~20.04.1
Ubuntu:20.04:LTS linux-oem-5.10 0 No fix
Ubuntu:20.04:LTS linux-oem-5.13 0 No fix
Ubuntu:20.04:LTS linux-oem-5.14 0 5.14.0-1004.4
Ubuntu:20.04:LTS linux-oem-5.6 0 No fix
Ubuntu:20.04:LTS linux-oracle 0 5.4.0-1005.5
Ubuntu:20.04:LTS linux-oracle-5.11 0 No fix
Ubuntu:20.04:LTS linux-oracle-5.13 0 5.13.0-1011.13~20.04.2
Ubuntu:20.04:LTS linux-oracle-5.15 0 5.15.0-1007.9~20.04.1
Ubuntu:20.04:LTS linux-oracle-5.8 0 No fix
Ubuntu:20.04:LTS linux-raspi 0 5.4.0-1007.7
Ubuntu:20.04:LTS linux-raspi2 0 No fix
Ubuntu:20.04:LTS linux-riscv 0 No fix
Ubuntu:20.04:LTS linux-riscv-5.11 0 No fix
Ubuntu:20.04:LTS linux-riscv-5.15 0 5.15.0-1015.17~20.04.1
Ubuntu:20.04:LTS linux-riscv-5.8 0 No fix
Ubuntu:20.04:LTS linux-xilinx-zynqmp 0 5.4.0-1020.24
Ubuntu:22.04:LTS linux 0 5.13.0-19.19
Ubuntu:22.04:LTS linux-aws 0 5.13.0-1005.6
Ubuntu:22.04:LTS linux-aws-6.5 0 6.5.0-1008.8~22.04.1
Ubuntu:22.04:LTS linux-aws-6.8 0 6.8.0-1009.9~22.04.2
Ubuntu:22.04:LTS linux-azure 0 5.13.0-1006.7
Ubuntu:22.04:LTS linux-azure-6.5 0 6.5.0-1007.7~22.04.1
Ubuntu:22.04:LTS linux-azure-6.8 0 6.8.0-1008.8~22.04.1
Ubuntu:22.04:LTS linux-azure-fde 0 5.15.0-1019.24.1
Ubuntu:22.04:LTS linux-gcp 0 5.13.0-1005.6
Ubuntu:22.04:LTS linux-gcp-6.5 0 6.5.0-1010.10~22.04.3

Related vulnerabilities