CVE-2026-139530: wifi: b43: don't pass unterminated string to sscanf()
In the Linux kernel, the following vulnerability has been resolved:
wifi: b43: don't pass unterminated string to sscanf()
The "buf" buffer is a 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 shm32writewritefile(). Only a few numbers are stored in the buffer so it never comes 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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the wifi b43 write functions, reserve the final byte of the PAGE_SIZE buffer for a NUL terminator before passing the user-provided string to sscanf().
Event History
Frequently Asked Questions
Who can realistically exploit this issue?
Exploitation requires root-level access because the affected interface is provided through debugfs. Systems where untrusted users do not have root access have a substantially narrower exposure path.
What input path is affected?
The issue affects debugfs write handlers, including functions such as shm32write__write_file(), which store user-supplied text in a PAGE_SIZE buffer and pass it to sscanf(). The fix reserves the final byte of the page for a NUL terminator.