# CVE-2022-50178: wifi: rtw89: 8852a: rfk: fix div 0 exception

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **CWE:** CWE-369
- **Published:** 2025-06-18T11:03:28.226Z
- **Modified:** 2026-06-17T05:22:55.170Z

## Who should check

- Anyone running Linux \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 065e83ac83c0c0e615b96947145c85c4bd76c09a; \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 5abc81a138f873ab55223ec674afc3a3f945d60f; \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 683a4647a7a3044868cfdc14c117525091b9fa0c
- Anyone running Linux 5.16

## Description

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 result. If the result isn't good
enough, it could adjust parameters and try again.

This issue is to read and show the result, but it could be a negative
calibration result that causes divisor 0 and core dump. So, fix it by
phy\_div() that does division only if divisor isn't zero; otherwise,
zero is adopted.

  divide error: 0000 \[\#1\] PREEMPT SMP NOPTI
  CPU: 1 PID: 728 Comm: wpa\_supplicant Not tainted 5.10.114-16019-g462a1661811a \#1 \<HASH:d024 28\>
  RIP: 0010:rtw8852a\_dpk+0x14ae/0x288f \[rtw89\_core\]
  RSP: 0018:ffffa9bb412a7520 EFLAGS: 00010246
  RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
  RDX: 0000000000000000 RSI: 00000000000180fc RDI: ffffa141d01023c0
  RBP: ffffa9bb412a76a0 R08: 0000000000001319 R09: 00000000ffffff92
  R10: ffffffffc0292de3 R11: ffffffffc00d2f51 R12: 0000000000000000
  R13: ffffa141d01023c0 R14: ffffffffc0290250 R15: ffffa141d0102638
  FS:  00007fa99f5c2740(0000) GS:ffffa142e5e80000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000013e8e010 CR3: 0000000110d2c000 CR4: 0000000000750ee0
  PKRU: 55555554
  Call Trace:
   rtw89\_core\_sta\_add+0x95/0x9c \[rtw89\_core \<HASH:d239 29\>\]
   rtw89\_ops\_sta\_state+0x5d/0x108 \[rtw89\_core \<HASH:d239 29\>\]
   drv\_sta\_state+0x115/0x66f \[mac80211 \<HASH:81fe 30\>\]
   sta\_info\_insert\_rcu+0x45c/0x713 \[mac80211 \<HASH:81fe 30\>\]
   sta\_info\_insert+0xf/0x1b \[mac80211 \<HASH:81fe 30\>\]
   ieee80211\_prep\_connection+0x9d6/0xb0c \[mac80211 \<HASH:81fe 30\>\]
   ieee80211\_mgd\_auth+0x2aa/0x352 \[mac80211 \<HASH:81fe 30\>\]
   cfg80211\_mlme\_auth+0x160/0x1f6 \[cfg80211 \<HASH:00cd 31\>\]
   nl80211\_authenticate+0x2e5/0x306 \[cfg80211 \<HASH:00cd 31\>\]
   genl\_rcv\_msg+0x371/0x3a1
   ? nl80211\_stop\_sched\_scan+0xe5/0xe5 \[cfg80211 \<HASH:00cd 31\>\]
   ? genl\_rcv+0x36/0x36
   netlink\_rcv\_skb+0x8a/0xf9
   genl\_rcv+0x28/0x36
   netlink\_unicast+0x27b/0x3a0
   netlink\_sendmsg+0x2aa/0x469
   sock\_sendmsg\_nosec+0x49/0x4d
   \_\_\_\_sys\_sendmsg+0xe5/0x213
   \_\_sys\_sendmsg+0xec/0x157
   ? syscall\_enter\_from\_user\_mode+0xd7/0x116
   do\_syscall\_64+0x43/0x55
   entry\_SYSCALL\_64\_after\_hwframe+0x44/0xa9
  RIP: 0033:0x7fa99f6e689b

## Affected and fixed versions

- Linux: \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 065e83ac83c0c0e615b96947145c85c4bd76c09a; \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 5abc81a138f873ab55223ec674afc3a3f945d60f; \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 683a4647a7a3044868cfdc14c117525091b9fa0c (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 683a4647a7a3044868cfdc14c117525091b9fa0c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50178. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50178.md
Affected: Linux >= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, < 065e83ac83c0c0e615b96947145c85c4bd76c09a; >= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, < 5abc81a138f873ab55223ec674afc3a3f945d60f; >= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, < 683a4647a7a3044868cfdc14c117525091b9fa0c; Linux 5.16
Fixed in: Linux 065e83ac83c0c0e615b96947145c85c4bd76c09a, Linux 5abc81a138f873ab55223ec674afc3a3f945d60f, Linux 683a4647a7a3044868cfdc14c117525091b9fa0c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50178 being exploited?

There is no confirmed exploitation: CVE-2022-50178 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50178?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50178?

Linux \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 065e83ac83c0c0e615b96947145c85c4bd76c09a; \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 5abc81a138f873ab55223ec674afc3a3f945d60f; \>= e3ec7017f6a20d12ddd9fe23d345ebb7b8c104dd, \< 683a4647a7a3044868cfdc14c117525091b9fa0c; Linux 5.16.

### Is there a fix for CVE-2022-50178?

Yes. Fixed in Linux 065e83ac83c0c0e615b96947145c85c4bd76c09a, Linux 5abc81a138f873ab55223ec674afc3a3f945d60f, Linux 683a4647a7a3044868cfdc14c117525091b9fa0c. Upgrade Linux to 683a4647a7a3044868cfdc14c117525091b9fa0c or later.

### How do I check if I'm affected by CVE-2022-50178?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/065e83ac83c0c0e615b96947145c85c4bd76c09a>
- patch: <https://git.kernel.org/stable/c/5abc81a138f873ab55223ec674afc3a3f945d60f>
- patch: <https://git.kernel.org/stable/c/683a4647a7a3044868cfdc14c117525091b9fa0c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50178>

HTML: <https://flawdb.com/CVE-2022-50178> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50178>
