CVE-2022-20227: RNDIS USB Gadget Heap Buffer Overflow in Android Linux Kernel

:linux_kernel: Updated 02 Oct 2025

Summary

01/07/2022
Yes i
High
Not published

CVE-2022-20227: In USB driver, there is a possible out of bounds read due to a heap buffer overflow. Affects :linux_kernel: versions >= :0, < :2022-07-05. Fixed in :2022-07-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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The RNDIS USB Gadget is a feature in the Android Linux Kernel that enables USB tethering functionality. It allows users to share their device's internet connection with other devices via USB. However, a vulnerability has been discovered in the USB driver, which can lead to a heap buffer overflow. This vulnerability affects the Android ecosystem and requires user execution privileges to exploit. No user interaction is necessary for the exploitation to occur.

Vulnerability Detail

The vulnerability in the RNDIS USB Gadget driver is an out-of-bounds read issue caused by a heap buffer overflow. This can result in local information disclosure, potentially exposing sensitive kernel memory contents. An attacker with user execution privileges can exploit this vulnerability to gain unauthorized access to kernel memory. The vulnerability was introduced in the Android ecosystem and was fixed on July 5, 2022.

How To Fix

Minimum fixed version

:2022-07-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

There is no specific workaround provided for this vulnerability. It is recommended to apply the fix mentioned in the 'how_to_fix' section to address the issue.

Conclusion

The RNDIS USB Gadget vulnerability in the Android Linux Kernel can lead to local information disclosure and unauthorized access to kernel memory. To mitigate this vulnerability, it is crucial to update the affected Android devices to a version that includes the fix. For further assistance and support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for :linux_kernel: →

Share this vulnerability

FAQ

This vulnerability can lead to local information disclosure, potentially exposing sensitive kernel memory contents. An attacker with user execution privileges can exploit this vulnerability to gain unauthorized access to kernel memory.

Yes, it is recommended to update your Android device to a version that includes the fix for this vulnerability. By updating the kernel to a version that includes the necessary commits, you can protect your device from potential exploitation.

No, user interaction is not needed for exploitation. An attacker with user execution privileges can exploit this vulnerability without any user interaction.

This vulnerability was fixed on July 5, 2022, with the implementation of the necessary commits in the Android kernel.

The vulnerability affects the Android ecosystem. It is recommended to update all affected Android devices to a version that includes the fix.

Related vulnerabilities

Recent vulnerabilities recorded for :linux_kernel:.

How To Fix

Minimum fixed version

:2022-07-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