CVE-2026-139529: wifi: b43legacy: debugfs: NUL terminate string in debugfs
In the Linux kernel, the following vulnerability has been resolved:
wifi: b43legacy: debugfs: NUL terminate string in debugfs
The "buf" buffer is PAGESIZE and allocated with kzalloc(). We store a string from the user in it and then pass it to sscanf() in the write functions such as tsfwritefile(). The buffer is only used to store a number so we never come close to filling up the whole PAGESIZE. Reserve the last character of the page for a NUL terminator.
This is debugfs so it's root only.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Exploitation requires root access because the affected interface is debugfs. It is therefore primarily relevant to systems where a root user or root-level process can write to the b43legacy debugfs files.
What input is involved?
The affected debugfs write handlers accept a user-supplied string and pass it to sscanf(). The fix reserves the final byte of the PAGE_SIZE buffer for NUL termination before parsing.
What can be done if updating is not immediately possible?
Restrict root access and prevent untrusted root-level processes from writing to the relevant debugfs interfaces. The issue is limited to debugfs, which the provided information identifies as root-only.