CVE-2025-71297·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: wifi: rtw88: 8822b: Avoid WARNING in rtw8822b_config_trx_mode() rtw8822b_set_antenna() can be called from userspace when the chip is powered off. In that case a WARNING is triggered in rtw8822b_config_trx_mode() because trying to read the RF registers when the chip is powered off returns an unexpected value. Call rtw8822b_config_trx_mode() in rtw8822b_set_antenna() only when the chip is powered on. ------------[ cut here ]------------ write RF mode table fail WARNING: CPU: 0 PID: 7183 at rtw8822b.c:824 rtw8822b_config_trx_mode.constprop.0+0x835/0x840 [rtw88_8822b] CPU: 0 UID: 0 PID: 7183 Comm: iw Tainted: G W OE 6.17.5-arch1-1 #1 PREEMPT(full) 01c39fc421df2af799dd5e9180b572af860b40c1 Tainted: [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE Hardware name: LENOVO 82KR/LNVNB161216, BIOS HBCN18WW 08/27/2021 RIP: 0010:rtw8822b_config_trx_mode.constprop.0+0x835/0x840 [rtw88_8822b] Call Trace: <TASK> rtw8822b_set_antenna+0x57/0x70 [rtw88_8822b 370206f42e5890d8d5f48eb358b759efa37c422b] rtw_ops_set_antenna+0x50/0x80 [rtw88_core 711c8fb4f686162be4625b1d0b8e8c6a5ac850fb] ieee80211_set_antenna+0x60/0x100 [mac80211 f1845d85d2ecacf3b71867635a050ece90486cf3] nl80211_set_wiphy+0x384/0xe00 [cfg80211 296485ee85696d2150309a6d21a7fbca83d3dbda] ? netdev_run_todo+0x63/0x550 genl_family_rcv_msg_doit+0xfc/0x160 genl_rcv_msg+0x1aa/0x2b0 ? __pfx_nl80211_pre_doit+0x10/0x10 [cfg80211 296485ee85696d2150309a6d21a7fbca83d3dbda] ? __pfx_nl80211_set_wiphy+0x10/0x10 [cfg80211 296485ee85696d2150309a6d21a7fbca83d3dbda] ? __pfx_nl80211_post_doit+0x10/0x10 [cfg80211 296485ee85696d2150309a6d21a7fbca83d3dbda] ? __pfx_genl_rcv_msg+0x10/0x10 netlink_rcv_skb+0x59/0x110 genl_rcv+0x28/0x40 netlink_unicast+0x285/0x3c0 ? __alloc_skb+0xdb/0x1a0 netlink_sendmsg+0x20d/0x430 ____sys_sendmsg+0x39f/0x3d0 ? import_iovec+0x2f/0x40 ___sys_sendmsg+0x99/0xe0 ? refill_obj_stock+0x12e/0x240 __sys_sendmsg+0x8a/0xf0 do_syscall_64+0x81/0x970 ? do_syscall_64+0x81/0x970 ? ksys_read+0x73/0xf0 ? do_syscall_64+0x81/0x970 ? count_memcg_events+0xc2/0x190 ? handle_mm_fault+0x1d7/0x2d0 ? do_user_addr_fault+0x21a/0x690 ? exc_page_fault+0x7e/0x1a0 entry_SYSCALL_64_after_hwframe+0x76/0x7e </TASK> ---[ end trace 0000000000000000 ]---
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.6
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.6
Fixed in: 6.19.6
How to fix this CVE
Update your Linux kernel to version 6.19.6 or later to resolve this vulnerability affecting the RTW88 WiFi driver. The fix adds a power-state check before attempting to configure RF transmit/receive modes, preventing spurious kernel warnings when antenna configuration is requested while the wireless chipset is powered down. Systems running kernel versions 6.19 through 6.19.5 should prioritize this update to maintain system stability.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check your current kernel version; compare against the affected range 6.19.0-6.19.5
- Check if RTW88 driver is loaded: `lsmod | grep rtw88` (affects systems with RTL8822B WiFi adapters)
- Search kernel logs for the specific warning: `sudo dmesg | grep -i 'write RF mode table fail'` or `sudo journalctl -k | grep rtw8822b_config_trx_mode`
- Verify the fix by updating to 6.19.6+ and confirming no new warnings appear in logs after changing antenna configuration via `iw phy0 set antenna` commands
FAQ
What is CVE-2025-71297?
This vulnerability exists in the Linux kernel's RTW88 WiFi driver for Realtek RTL8822B chips. When user-space tools attempt to modify antenna settings while the wireless chipset is powered off, the driver tries to read RF registers that return invalid data, triggering a kernel warning that can indicate driver instability.
Is CVE-2025-71297 being actively exploited?
No. This vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploits are currently available. It is a local denial-of-service issue triggered by normal user operations, not a remote attack vector.
What versions of Kernel are affected by CVE-2025-71297?
Linux kernel versions 6.19 through 6.19.5 are vulnerable. Kernel 6.19.6 and later versions contain the fix. Users on older stable branches (6.18 and earlier) are not affected.
How do I check if my server is vulnerable to CVE-2025-71297?
Run `uname -r` to display your kernel version. If the output is 6.19.0, 6.19.1, 6.19.2, 6.19.3, 6.19.4, or 6.19.5, you are vulnerable. Additionally, check `lsmod | grep rtw88` to confirm the affected driver is present on your system.
Does Defensia detect CVE-2025-71297?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2025-71297 will appear in your dashboard with remediation steps and affected device inventory.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0d0c2fb80ca4c284c397dd7546743a3b5fdf4020
- https://git.kernel.org/stable/c/44510ff07b5198e4a835a3074b716cec8357695b
- https://git.kernel.org/stable/c/44d1f624bbdd2d60319374ba85f7195a28d00c90
- https://git.kernel.org/stable/c/509becaee5680a39bde00c2c7d448dfeb39a8e05
- https://git.kernel.org/stable/c/7852ca1cc65ad43fb8b620e6a65d5cb15e4e4487
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-71297. Free for 1 server.
Get started free