Cloudanix VulnDB

CVE-2022-20567

Medium · 6.4

CVSS

6.4

EPSS

0.1%

Published

Dec 16, 2022

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A timing flaw in core system networking code could let someone who already has high-level access on a device gain even more control without any user action.

Exploitation
Local Privilege
Attacker needs
High Privilege
Complexity
High
Impact
Privilege Gain
Component
OS kernel
Class
Race Condition
Remediation
Patch
Effort
Medium
Patch risk
Medium

What it actually does

Use-after-free condition triggered by a race in pppol2tp_create allows kernel memory corruption when System privileges are already held.

Why it matters to the business

Attackers who already possess elevated local access can obtain full system control, increasing the chance of complete host compromise and data exposure on affected Linux-based systems.

How an attack unfolds

An attacker with System execution rights triggers the race window in the L2TP PPP creation path, reclaims the freed object, and leverages the resulting corruption for privilege escalation to root.

How to fix it

Update to a kernel containing the upstream fix for A-186777253. For gitlab-org/gitlab deployments apply one of the listed fixed commits: bb1fc4ced3acba3eebe87d99a8e2637c50329b8d or 6b3af3293e0cee73719bbfc4a7d9eacc2e3ead54.

How to confirm the fix worked

Verify the running kernel version contains the referenced upstream commit; confirm the pppol2tp module no longer exhibits the race under concurrent creation stress tests.

Typical attack path

  1. Obtain System-level local access on a vulnerable Android or Linux kernel host
  2. Invoke pppol2tp_create concurrently from multiple threads to hit the race
  3. Perform heap grooming to replace the freed object with attacker-controlled data
  4. Trigger use of the dangling pointer to corrupt kernel structures
  5. Escalate to full root privileges and execute arbitrary code

How to detect it

Review kernel logs and audit trails for repeated L2TP PPP creation attempts from the same process; look for oops or panic messages referencing l2tp_ppp.c around the time of suspected escalation.

What your security team should do

  • Prioritize kernel upgrades on all Android and Linux systems that expose L2TP PPP interfaces
  • Restrict local System-level accounts and monitor for unexpected privilege changes
  • Apply the specific gitlab-org/gitlab patches if the environment includes those package versions

The record

In pppol2tp_create of l2tp_ppp.c, there is a possible use after free due to a race condition. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android kernelAndroid ID: A-186777253References: Upstream kernel

Affected packages

Ecosystem Package Introduced Fixed
Android :linux_kernel: :0 :2022-12-05
Debian:11 linux 0 4.15.11-1
Debian:12 linux 0 4.15.11-1
Debian:13 linux 0 4.15.11-1
SUSE:Linux Enterprise High Availability Extension 12 SP4 drbd 0 9.0.14+git.62f906cf-4.26.2
SUSE:Linux Enterprise High Availability Extension 12 SP4 kernel-default 0 4.12.14-95.125.1
SUSE:Linux Enterprise High Availability Extension 12 SP5 kernel-default 0 4.12.14-122.156.1
SUSE:Linux Enterprise High Availability Extension 15 SP1 kernel-default 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-default 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-docs 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-obs-build 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-source 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS kernel-syms 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Live Patching 12 SP4 kernel-default 0 4.12.14-95.125.1
SUSE:Linux Enterprise Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_35 0 1-6.5.1
SUSE:Linux Enterprise Live Patching 12 SP5 kernel-default 0 4.12.14-122.156.1
SUSE:Linux Enterprise Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_42 0 1-8.3.1
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-default 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_39 0 1-150100.3.5.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-rt 0 4.12.14-10.121.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-rt_debug 0 4.12.14-10.121.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-source-rt 0 4.12.14-10.121.1
SUSE:Linux Enterprise Real Time 12 SP5 kernel-syms-rt 0 4.12.14-10.121.1
SUSE:Linux Enterprise Server 12 SP4-ESPOS kernel-default 0 4.12.14-95.125.1
SUSE:Linux Enterprise Server 12 SP4-ESPOS kernel-source 0 4.12.14-95.125.1
SUSE:Linux Enterprise Server 12 SP4-ESPOS kernel-syms 0 4.12.14-95.125.1
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-default 0 4.12.14-95.125.1
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-source 0 4.12.14-95.125.1
SUSE:Linux Enterprise Server 12 SP4-LTSS kernel-syms 0 4.12.14-95.125.1
SUSE:Linux Enterprise Server 12 SP5 kernel-azure 0 4.12.14-16.130.1
SUSE:Linux Enterprise Server 12 SP5 kernel-default 0 4.12.14-122.156.1
SUSE:Linux Enterprise Server 12 SP5 kernel-source 0 4.12.14-122.156.1
SUSE:Linux Enterprise Server 12 SP5 kernel-source-azure 0 4.12.14-16.130.1
SUSE:Linux Enterprise Server 12 SP5 kernel-syms 0 4.12.14-122.156.1
SUSE:Linux Enterprise Server 12 SP5 kernel-syms-azure 0 4.12.14-16.130.1
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-default 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-docs 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-obs-build 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-source 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-syms 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server 15 SP1-LTSS kernel-zfcpdump 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-azure 0 4.12.14-16.130.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-default 0 4.12.14-122.156.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-source 0 4.12.14-122.156.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-source-azure 0 4.12.14-16.130.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-syms 0 4.12.14-122.156.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 kernel-syms-azure 0 4.12.14-16.130.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-default 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-docs 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-obs-build 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-source 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 kernel-syms 0 4.12.14-150100.197.142.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 kernel-docs 0 4.12.14-122.156.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 kernel-obs-build 0 4.12.14-122.156.1
SUSE:Linux Enterprise Workstation Extension 12 SP5 kernel-default 0 4.12.14-122.156.1
SUSE:OpenStack Cloud 9 kernel-default 0 4.12.14-95.125.1
SUSE:OpenStack Cloud 9 kernel-source 0 4.12.14-95.125.1
SUSE:OpenStack Cloud 9 kernel-syms 0 4.12.14-95.125.1
SUSE:OpenStack Cloud Crowbar 9 kernel-default 0 4.12.14-95.125.1
SUSE:OpenStack Cloud Crowbar 9 kernel-source 0 4.12.14-95.125.1
SUSE:OpenStack Cloud Crowbar 9 kernel-syms 0 4.12.14-95.125.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-1023.24~14.04.1
Ubuntu:14.04:LTS linux-lts-xenial 0 4.4.0-13.29~14.04.1
Ubuntu:16.04:LTS linux-aws-hwe 0 4.15.0-1030.31~16.04.1
Ubuntu:16.04:LTS linux-azure 0 4.11.0-1009.9
Ubuntu:16.04:LTS linux-gcp 0 4.10.0-1004.4
Ubuntu:16.04:LTS linux-hwe 0 4.8.0-39.42~16.04.1
Ubuntu:16.04:LTS linux-hwe-edge 0 No fix
Ubuntu:16.04:LTS linux-oracle 0 4.15.0-1007.9~16.04.1
Ubuntu:18.04:LTS linux 0 4.15.0-13.14
Ubuntu:18.04:LTS linux-aws 0 4.15.0-1003.3
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-1082.92
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-1005.8
Ubuntu:18.04:LTS linux-gcp 0 No fix
Ubuntu:18.04:LTS linux-gcp-4.15 0 4.15.0-1071.81
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 No fix
Ubuntu:18.04:LTS linux-gkeop-5.4 0 No fix
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-1003.3
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-1007.9
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.13.0-1005.5
Ubuntu:18.04:LTS linux-snapdragon 0 4.4.0-1077.82
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 No fix
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 No fix
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 No fix
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-gke-5.15 0 5.15.0-1011.14~20.04.1
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 No fix
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 No fix
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-allwinner-5.19 0 5.19.0-1007.7~22.04.1
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-5.19 0 5.19.0-1020.21~22.04.1
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-5.19 0 5.19.0-1020.22~22.04.2
Ubuntu:22.04:LTS linux-gcp-6.5 0 6.5.0-1010.10~22.04.3
Ubuntu:22.04:LTS linux-gcp-6.8 0 6.8.0-1010.11~22.04.1
Ubuntu:22.04:LTS linux-gke 0 5.15.0-1002.2
Ubuntu:22.04:LTS linux-gkeop 0 5.15.0-1001.2
Ubuntu:22.04:LTS linux-hwe-5.19 0 5.19.0-28.29~22.04.1
Ubuntu:22.04:LTS linux-hwe-6.5 0 6.5.0-14.14~22.04.1
Ubuntu:22.04:LTS linux-hwe-6.8 0 6.8.0-38.38~22.04.1
Ubuntu:22.04:LTS linux-ibm 0 5.15.0-1002.2
Ubuntu:22.04:LTS linux-intel-iot-realtime 0 No fix
Ubuntu:22.04:LTS linux-intel-iot-realtime 0 5.15.0-1021.26
Ubuntu:22.04:LTS linux-intel-iotg 0 5.15.0-1004.6
Ubuntu:22.04:LTS linux-kvm 0 5.13.0-1004.4
Ubuntu:22.04:LTS linux-lowlatency 0 5.15.0-22.22
Ubuntu:22.04:LTS linux-lowlatency-hwe-5.19 0 5.19.0-1017.18~22.04.1
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.5 0 6.5.0-14.14.1~22.04.1
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.8 0 6.8.0-38.38.1~22.04.2
Ubuntu:22.04:LTS linux-nvidia 0 5.15.0-1005.5
Ubuntu:22.04:LTS linux-nvidia-6.2 0 6.2.0-1003.3~22.04.1
Ubuntu:22.04:LTS linux-nvidia-6.5 0 6.5.0-1004.4
Ubuntu:22.04:LTS linux-nvidia-6.8 0 6.8.0-1008.8~22.04.1
Ubuntu:22.04:LTS linux-oem-5.17 0 5.17.0-1003.3
Ubuntu:22.04:LTS linux-oem-6.0 0 6.0.0-1006.6
Ubuntu:22.04:LTS linux-oem-6.1 0 6.1.0-1004.4
Ubuntu:22.04:LTS linux-oem-6.5 0 6.5.0-1003.3
Ubuntu:22.04:LTS linux-oracle 0 5.13.0-1008.10
Ubuntu:22.04:LTS linux-oracle-6.5 0 6.5.0-1013.13~22.04.4
Ubuntu:22.04:LTS linux-oracle-6.8 0 6.8.0-1006.6~22.04.3
Ubuntu:22.04:LTS linux-raspi 0 5.13.0-1008.9
Ubuntu:22.04:LTS linux-realtime 0 No fix
Ubuntu:22.04:LTS linux-riscv 0 No fix
Ubuntu:22.04:LTS linux-riscv-6.5 0 6.5.0-17.17.1.1~22.04.1
Ubuntu:22.04:LTS linux-riscv-6.8 0 6.8.0-38.38.1~22.04.1
Ubuntu:22.04:LTS linux-starfive-6.5 0 6.5.0-1007.8~22.04.1
Ubuntu:22.04:LTS linux-xilinx-zynqmp 0 5.15.0-1022.26
Ubuntu:22.04:LTS:for:NVIDIA:BlueField linux-bluefield 0 5.15.0-1011.13
Ubuntu:24.04:LTS linux 0 6.5.0-9.9

Related vulnerabilities