Buffer Overflow Vulnerability in wl1251_cmd_scan

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

GSD-2021-1001429: wl1251: Fix possible buffer overflow in wl1251_cmd_scan. Affects Kernel versions < 0f6c0488368c9ac1aa685821916fadba32f5d1ef. No fix is published. 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 wl1251 package is a wireless LAN driver for Texas Instruments wl1251 chipset. It is used in Linux Kernel and provides functionality for wireless communication. The package is responsible for handling scan commands, which allow the device to search for available wireless networks. However, a buffer overflow vulnerability has been discovered in the wl1251_cmd_scan function, which could potentially be exploited by an attacker.

Vulnerability Detail

The vulnerability in wl1251_cmd_scan function arises from a possible buffer overflow. This occurs when the function does not properly validate the length of user-supplied input before copying it into a fixed-size buffer. An attacker could craft a malicious scan command with excessive data, causing a buffer overflow and potentially overwriting adjacent memory. This could lead to arbitrary code execution, denial of service, or other security compromises.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can apply the patch manually to their existing Kernel version. The patch can be obtained from the commit 0f6c0488368c9ac1aa685821916fadba32f5d1ef. By applying the patch, the vulnerable code will be modified to prevent the buffer overflow vulnerability.

Conclusion

In conclusion, the wl1251 package in the Linux Kernel is vulnerable to a buffer overflow in the wl1251_cmd_scan function. This vulnerability can be mitigated by updating the Kernel to version v4.14.240 or later. Alternatively, users can apply the provided patch manually. It is important to take action to protect systems from potential exploits. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The buffer overflow vulnerability in wl1251_cmd_scan could potentially allow an attacker to execute arbitrary code, cause a denial of service, or compromise the security of the system.

You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, no known exploits for this vulnerability have been reported. However, it is important to apply the fix or workaround as soon as possible to mitigate any potential risks.

Yes, this vulnerability can be exploited remotely if the affected system is accessible over the network. An attacker could send a specially crafted scan command to trigger the buffer overflow and potentially execute arbitrary code on the target system.

The recommended solution is to update the Linux Kernel to the patched version. However, if updating is not feasible, implementing strong network security measures, such as firewalls and intrusion detection systems, can help reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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