Buffer Overflow Vulnerability in Linux Kernel's r8188eu Driver

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49405: In the Linux kernel, the following vulnerability has been resolved: staging: r8188eu: prevent ->Ssid overflow in rtw_wx_set_scan() This code has a check to prevent read overflow but it needs another check to prevent writ... Affects linux versions < 5.18.5-1. Fixed in 5.18.5-1. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interactions. The r8188eu driver is a staging driver for Realtek's RTL8188E wireless chipset, enabling wireless communication. This driver is crucial for systems relying on Realtek wireless hardware, but it has been identified as vulnerable to a buffer overflow issue that can compromise system integrity.

Vulnerability Detail

The vulnerability, identified as CVE-2022-49405, arises from insufficient checks in the rtw_wx_set_scan() function of the r8188eu driver. While there is a check to prevent reading beyond the buffer, the code lacks a corresponding check to prevent writing past the end of the ->Ssid[] array. This oversight can lead to a buffer overflow, potentially allowing an attacker to execute arbitrary code or crash the system, thereby compromising the security and stability of the affected systems.

How To Fix

Minimum fixed version

5.18.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

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

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the patch by updating the Linux kernel to the fixed version as described above.

Conclusion

CVE-2022-49405 is a critical vulnerability in the Linux kernel's r8188eu driver that can lead to buffer overflow issues. Users are urged to update their systems to the patched version to ensure security and stability. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the integrity of your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49405 is a vulnerability in the Linux kernel's r8188eu driver that can lead to a buffer overflow due to insufficient checks in the code.

This vulnerability can allow attackers to execute arbitrary code or crash the system, posing a significant security risk.

You should update your Linux kernel to version 5.18.5-1 or later to mitigate the vulnerability.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.

More information can be found in the official CVE database or through security advisories related to the Linux kernel.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.18.5-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

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