Cloudanix VulnDB

CVE-2020-27784

Medium · 5.5

CVSS

5.5

EPSS

0.2%

Published

Sep 1, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the Linux kernel can make computers crash when they handle certain operations with USB printers.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Denial Of Service
Component
OS kernel
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

A local process can invoke printer_ioctl on a USB printer device after gprinter_free has released the backing printer_dev instance, resulting in a use-after-free that dereferences freed kernel memory and typically triggers a denial-of-service crash.

Why it matters to the business

Systems that expose USB printer devices to untrusted local users risk unexpected kernel panics that halt printing services and any workloads dependent on the affected host.

How an attack unfolds

An attacker with local shell access loads or opens the USB printer gadget, then calls printer_ioctl with arguments that race against or follow the gprinter_free path, causing the kernel to access the already-released printer_dev object and panic.

How to fix it

Upgrade the Linux kernel to a version containing commit e8d5f92b8d30bb4ade76494490c3c065e12411b1 (or the equivalent back-port supplied by the distribution) and reboot.

How to confirm the fix worked

Confirm the running kernel contains the cited commit via git log or distribution package version; inspect the printer.c source to verify the freed object is no longer referenced after gprinter_free.

Typical attack path

  1. Obtain a local shell or unprivileged process on the target Linux system
  2. Ensure the USB printer gadget or printer device node is present and accessible
  3. Trigger allocation and subsequent free of a printer_dev instance via module unload or device removal
  4. Call printer_ioctl on the dangling reference to force use-after-free access
  5. Observe kernel panic or system reboot

How to detect it

Search kernel logs (dmesg, /var/log/kern.log, journalctl) for strings referencing printer_ioctl, gprinter_free, or use-after-free involving printer_dev structures around the time of any unexpected reboots.

  • printer_ioctl
  • gprinter_free
  • printer_dev
  • use-after-free

What your security team should do

  • Apply the kernel update containing e8d5f92b8d30bb4ade76494490c3c065e12411b1 on all affected hosts within the next maintenance window
  • Limit local user access to USB printer device nodes via udev rules or device cgroup policies until patches are deployed
  • Monitor kernel logs for printer-related oops and panic entries

The record

A vulnerability was found in the Linux kernel, where accessing a deallocated instance in printer_ioctl() printer_ioctl() tries to access of a printer_dev instance. However, use-after-free arises because it had been freed by gprinter_free().

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 5.9.6-1
Debian:12 linux 0 5.9.6-1
Debian:13 linux 0 5.9.6-1
SUSE:Enterprise Storage 7 kernel-default 0 5.3.18-150200.24.129.1
SUSE:Enterprise Storage 7 kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Enterprise Storage 7 kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Enterprise Storage 7 kernel-obs-build 0 5.3.18-150200.24.129.1
SUSE:Enterprise Storage 7 kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Enterprise Storage 7 kernel-source 0 5.3.18-150200.24.129.1
SUSE:Enterprise Storage 7 kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Availability Extension 15 SP2 kernel-default 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Availability Extension 15 SP3 kernel-default 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-default 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-obs-build 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-source 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-default 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-obs-build 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-source 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Live Patching 15 SP2 kernel-default 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_30 0 1-150200.5.3.1
SUSE:Linux Enterprise Live Patching 15 SP3 kernel-default 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_24 0 1-150300.7.3.1
SUSE:Linux Enterprise Micro 5.1 kernel-default 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Micro 5.1 kernel-default-base 0 5.3.18-150300.59.93.1.150300.18.54.1
SUSE:Linux Enterprise Micro 5.1 kernel-rt 0 5.3.18-150300.106.1
SUSE:Linux Enterprise Micro 5.2 kernel-default 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Micro 5.2 kernel-default-base 0 5.3.18-150300.59.93.1.150300.18.54.1
SUSE:Linux Enterprise Micro 5.2 kernel-rt 0 5.3.18-150300.106.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-64kb 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-default 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-default-base 0 5.3.18-150300.59.93.1.150300.18.54.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-preempt 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-source 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 kernel-zfcpdump 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-docs 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-obs-build 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-preempt 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-source 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Development Tools 15 SP3 kernel-syms 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Legacy 15 SP3 kernel-default 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP3 kernel-azure 0 5.3.18-150300.38.80.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP3 kernel-source-azure 0 5.3.18-150300.38.80.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP3 kernel-syms-azure 0 5.3.18-150300.38.80.1
SUSE:Linux Enterprise Server 15 SP2-BCL kernel-default 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-BCL kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Linux Enterprise Server 15 SP2-BCL kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-BCL kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-BCL kernel-source 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-BCL kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-LTSS kernel-default 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-LTSS kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Linux Enterprise Server 15 SP2-LTSS kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-LTSS kernel-obs-build 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-LTSS kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-LTSS kernel-source 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server 15 SP2-LTSS kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 kernel-default 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 kernel-obs-build 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 kernel-source 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP2 kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Linux Enterprise Workstation Extension 15 SP3 kernel-default 0 5.3.18-150300.59.93.1
SUSE:Linux Enterprise Workstation Extension 15 SP3 kernel-preempt 0 5.3.18-150300.59.93.1
SUSE:Manager Proxy 4.1 kernel-default 0 5.3.18-150200.24.129.1
SUSE:Manager Proxy 4.1 kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Manager Proxy 4.1 kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Manager Proxy 4.1 kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Manager Proxy 4.1 kernel-source 0 5.3.18-150200.24.129.1
SUSE:Manager Proxy 4.1 kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Manager Retail Branch Server 4.1 kernel-default 0 5.3.18-150200.24.129.1
SUSE:Manager Retail Branch Server 4.1 kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Manager Retail Branch Server 4.1 kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Manager Retail Branch Server 4.1 kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Manager Retail Branch Server 4.1 kernel-source 0 5.3.18-150200.24.129.1
SUSE:Manager Retail Branch Server 4.1 kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Manager Server 4.1 kernel-default 0 5.3.18-150200.24.129.1
SUSE:Manager Server 4.1 kernel-default-base 0 5.3.18-150200.24.129.1.150200.9.61.1
SUSE:Manager Server 4.1 kernel-docs 0 5.3.18-150200.24.129.1
SUSE:Manager Server 4.1 kernel-obs-build 0 5.3.18-150200.24.129.1
SUSE:Manager Server 4.1 kernel-preempt 0 5.3.18-150200.24.129.1
SUSE:Manager Server 4.1 kernel-source 0 5.3.18-150200.24.129.1
SUSE:Manager Server 4.1 kernel-syms 0 5.3.18-150200.24.129.1
SUSE:Real Time Module 15 SP3 kernel-rt 0 5.3.18-150300.106.1
SUSE:Real Time Module 15 SP3 kernel-rt_debug 0 5.3.18-150300.106.1
SUSE:Real Time Module 15 SP3 kernel-source-rt 0 5.3.18-150300.106.1
SUSE:Real Time Module 15 SP3 kernel-syms-rt 0 5.3.18-150300.106.1
Ubuntu:14.04:LTS linux 0 3.11.0-12.19
Ubuntu:16.04:LTS linux 0 4.4.0-197.229
Ubuntu:16.04:LTS linux-aws 0 4.4.0-1118.132
Ubuntu:16.04:LTS linux-aws-hwe 0 4.15.0-1091.96~16.04.1
Ubuntu:16.04:LTS linux-azure 0 4.15.0-1103.114~16.04.1
Ubuntu:16.04:LTS linux-gcp 0 4.15.0-1091.104~16.04.1
Ubuntu:16.04:LTS linux-hwe 0 4.15.0-129.132~16.04.1
Ubuntu:16.04:LTS linux-hwe-edge 0 No fix
Ubuntu:16.04:LTS linux-kvm 0 4.4.0-1084.93
Ubuntu:16.04:LTS linux-oracle 0 4.15.0-1062.68~16.04.1
Ubuntu:18.04:LTS linux 0 4.15.0-129.132
Ubuntu:18.04:LTS linux-aws 0 4.15.0-1091.96
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-1030.31~18.04.1
Ubuntu:18.04:LTS linux-azure 0 No fix
Ubuntu:18.04:LTS linux-azure-4.15 0 4.15.0-1103.114
Ubuntu:18.04:LTS linux-azure-5.3 0 No fix
Ubuntu:18.04:LTS linux-azure-5.4 0 5.4.0-1032.33~18.04.1
Ubuntu:18.04:LTS linux-azure-edge 0 No fix
Ubuntu:18.04:LTS linux-dell300x 0 4.15.0-1010.14
Ubuntu:18.04:LTS linux-gcp 0 No fix
Ubuntu:18.04:LTS linux-gcp-4.15 0 4.15.0-1091.104
Ubuntu:18.04:LTS linux-gcp-5.3 0 No fix
Ubuntu:18.04:LTS linux-gcp-5.4 0 5.4.0-1030.32~18.04.1
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-56.62~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-1082.84
Ubuntu:18.04:LTS linux-oem 0 No fix
Ubuntu:18.04:LTS linux-oracle 0 4.15.0-1062.68
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-1030.32~18.04.1
Ubuntu:18.04:LTS linux-raspi-5.4 0 5.4.0-1023.26~18.04.1
Ubuntu:18.04:LTS linux-raspi2 0 4.15.0-1077.82
Ubuntu:18.04:LTS linux-snapdragon 0 4.15.0-1094.103
Ubuntu:20.04:LTS linux 0 5.4.0-56.62
Ubuntu:20.04:LTS linux-aws 0 5.4.0-1030.31
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-1032.33
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-1030.32
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-1028.29
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-1030.32
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-1023.26
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-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-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

Related vulnerabilities