CVE-2022-50178: wifi: rtw89: 8852a: rfk: fix div 0 exception
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 phydiv() 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: wpasupplicant Not tainted 5.10.114-16019-g462a1661811a #1 <HASH:d024 28> RIP: 0010:rtw8852adpk+0x14ae/0x288f [rtw89core] 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: rtw89corestaadd+0x95/0x9c [rtw89core <HASH:d239 29>] rtw89opsstastate+0x5d/0x108 [rtw89core <HASH:d239 29>] drvstastate+0x115/0x66f [mac80211 <HASH:81fe 30>] stainfoinsertrcu+0x45c/0x713 [mac80211 <HASH:81fe 30>] stainfoinsert+0xf/0x1b [mac80211 <HASH:81fe 30>] ieee80211prepconnection+0x9d6/0xb0c [mac80211 <HASH:81fe 30>] ieee80211mgdauth+0x2aa/0x352 [mac80211 <HASH:81fe 30>] cfg80211mlmeauth+0x160/0x1f6 [cfg80211 <HASH:00cd 31>] nl80211authenticate+0x2e5/0x306 [cfg80211 <HASH:00cd 31>] genlrcvmsg+0x371/0x3a1 ? nl80211stopschedscan+0xe5/0xe5 [cfg80211 <HASH:00cd 31>] ? genlrcv+0x36/0x36 netlinkrcvskb+0x8a/0xf9 genlrcv+0x28/0x36 netlinkunicast+0x27b/0x3a0 netlinksendmsg+0x2aa/0x469 socksendmsgnosec+0x49/0x4d syssendmsg+0xe5/0x213 syssendmsg+0xec/0x157 ? syscallenterfromusermode+0xd7/0x116 dosyscall64+0x43/0x55 entrySYSCALL64afterhwframe+0x44/0xa9 RIP: 0033:0x7fa99f6e689b
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.0.2-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1
Event History
Frequently Asked Questions
What is the severity of CVE-2022-50178?
CVE-2022-50178 has been classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2022-50178?
To fix CVE-2022-50178, update your Linux kernel to the latest stable version that addresses this vulnerability.
What systems are affected by CVE-2022-50178?
CVE-2022-50178 affects systems running the Linux kernel specifically with the rtw89 driver.
What kind of issue does CVE-2022-50178 resolve?
CVE-2022-50178 resolves a divide by zero exception in the rtw89 driver of the Linux kernel.
Is CVE-2022-50178 a permanent fix or a temporary patch?
CVE-2022-50178 provides a permanent fix with the appropriate kernel update.