CVE-2022-20009: Android Linux Kernel - USB Gadget Subsystem Out of Bounds Write

:linux_kernel: Updated 02 Oct 2025

Summary

01/05/2022
Yes i
High
Not published

CVE-2022-20009: In various functions of the USB gadget subsystem, there is a possible out of bounds write due to a missing bounds check. Affects :linux_kernel: versions >= :0, < :2022-05-05. Fixed in :2022-05-05. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Android Linux Kernel is a key component of the Android operating system that provides the core functionality and interfaces with hardware devices. The USB gadget subsystem is responsible for managing USB device functionality on Android devices. It allows Android devices to act as USB devices and provides support for various USB gadget functions. These functions enable communication and data transfer between the Android device and other USB hosts.

This vulnerability specifically affects the USB gadget subsystem in the Android Linux Kernel.

Vulnerability Detail

The vulnerability in the USB gadget subsystem arises from a missing bounds check in various functions. This missing check allows for an out of bounds write, which can lead to a buffer overflow during the data transfer phase. An attacker can exploit this vulnerability to perform a local escalation of privilege without requiring additional execution privileges. Notably, user interaction is not necessary for exploitation.

The lack of proper bounds checking in the affected functions poses a significant security risk as it can be leveraged to overwrite critical memory regions, potentially leading to arbitrary code execution or other malicious activities.

How To Fix

Minimum fixed version

:2022-05-05

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

No specific workaround has been provided for this vulnerability. It is recommended to apply the available patches to the Android Linux Kernel as mentioned in the 'how_to_fix' section.

Conclusion

The Android Linux Kernel's USB gadget subsystem is vulnerable to an out of bounds write issue, which can lead to a local escalation of privilege. It is recommended to apply the provided patches to the Android Linux Kernel to mitigate this vulnerability. Failure to address this vulnerability may result in unauthorized access, data theft, or other malicious activities. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for :linux_kernel: →

Share this vulnerability

FAQ

This vulnerability allows for a local escalation of privilege on Android devices. An attacker can exploit the vulnerability to gain elevated privileges without requiring additional execution privileges. This can lead to unauthorized access, data theft, or other malicious activities.

No, user interaction is not needed for exploitation of this vulnerability. An attacker can exploit the vulnerability without any user involvement.

The vulnerability affects Android devices that utilize the Android Linux Kernel. However, the impact may vary depending on the specific device and its kernel version. It is recommended to apply the provided patches to mitigate the vulnerability.

No, this vulnerability requires local access to the Android device to exploit it. Remote exploitation is not possible.

There are no known instances of this vulnerability being exploited in the wild. However, it is crucial to apply the patches to prevent potential exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for :linux_kernel:.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

:2022-05-05

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback