Critical Division by Zero Vulnerability in Linux Kernel's WiFi Driver (CVE-2022-50178)

linux Updated 02 Oct 2025

Summary

18/06/2025
N/A
Yes i
Unrated
Not published

CVE-2022-50178: In the Linux kernel, the following vulnerability has been resolved: wifi: rtw89: 8852a: rfk: fix div 0 exception The DPK is a kind of RF calibration whose algorithm is to fine tune parameters and calibrate, and check the... Affects linux versions < 6.0.2-1. Fixed in 6.0.2-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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of the Linux operating system, responsible for managing hardware resources and providing essential services to software applications. It supports a wide range of hardware and is known for its stability and performance. The vulnerability in question affects the WiFi driver, specifically the rtw89 module, which is responsible for handling wireless communication. This vulnerability can lead to a system crash due to a division by zero error during the RF calibration process.

Vulnerability Detail

The vulnerability arises from a flaw in the RF calibration algorithm used in the rtw89 WiFi driver. During the calibration process, the algorithm attempts to read and display calibration results, which may sometimes yield a negative value. This negative result can lead to a division by zero, causing a core dump and crashing the system. The issue was identified in the function rtw8852a_dpk, where the division operation does not check if the divisor is zero before performing the calculation. This oversight can lead to severe system instability and crashes, particularly affecting users relying on wireless connectivity.

How To Fix

Minimum fixed version

6.0.2-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

As a temporary workaround, users can disable the rtw89 WiFi driver until the system is updated to a patched version. This can be done by running the following command:

sudo modprobe -r rtw89_core

This command will remove the WiFi driver from the kernel, preventing the vulnerability from being exploited until an update is applied.

Conclusion

CVE-2022-50178 is a critical vulnerability in the Linux kernel's WiFi driver that can lead to system crashes due to a division by zero error. Users are strongly encouraged to update their kernel to the patched version 6.0.2-1 to ensure system stability and security. Temporary workarounds are available for those unable to update immediately.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-50178 is a vulnerability in the Linux kernel's WiFi driver that can cause a system crash due to a division by zero error during RF calibration.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

Exploitation of this vulnerability can lead to system instability, crashes, and loss of wireless connectivity, affecting users' ability to connect to networks.

Yes, a patch is available in version 6.0.2-1 of the Linux kernel. Users are advised to update their systems to this version or later.

If you cannot update your kernel immediately, consider disabling the rtw89 WiFi driver as a temporary workaround to mitigate the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.0.2-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