CVE-2026-142935: wifi: rtw88: debugfs: don't vzalloc(0) when rsvd_page is read unconfigured
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: debugfs: don't vzalloc(0) when rsvdpage is read unconfigured
Reading the rsvdpage debugfs entry before writing a page offset and count to it calls vzalloc() with a size of zero, because rsvdpage.pagenum defaults to 0. vmalloc warns about this:
WARNING: mm/vmalloc.c:4019 at vmallocnoderangenoprof+0x9ac/0xa30 ... Call Trace: vmallocnodenoprof+0x4c/0x70 rtwdebugfsgetrsvdpage+0x4c/0x110 [rtw88core] seqreaditer+0x132/0x4b0 seqread+0x12e/0x1c0 fullproxyread+0x6f/0xc0 vfsread+0xdd/0x490
rtwfwdumpfifo() would reject the zero size anyway, but only after the allocation. Check for a zero buffer size first and print a short usage hint instead of allocating.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Compensating control
Check for a zero buffer size before allocating and print a short usage hint instead of calling vzalloc(0) when rsvd_page is read unconfigured.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using the Linux kernel rtw88 Wi-Fi driver are exposed only when the rsvd_page debugfs entry is read before a page offset and count have been configured.
What does an attacker or local user need to do to trigger it?
They need access to read the rtw88 rsvd_page debugfs entry while its page count remains at the default value of zero. This causes the driver to call vzalloc() with a zero-size allocation and emit a vmalloc warning.
What is the impact of triggering the issue?
The described effect is a kernel warning from a zero-size allocation attempt. The firmware dump routine rejects the zero-size request afterward, so the data does not indicate that a firmware dump is performed.
What can be done if the fix cannot be applied immediately?
Avoid reading the rsvd_page debugfs entry until a valid page offset and count have been written to it. Restricting access to debugfs can also prevent unconfigured reads.