CVE-2026-139528: wifi: carl9170: NUL terminate string in debugfs
In the Linux kernel, the following vulnerability has been resolved:
wifi: carl9170: NUL terminate string in debugfs
The "buf" buffer comes from the user. We use it to store a number or two so it doesn't need to be large. It gets passed to sscanf() in the write functions such as carl9170debugfserpwrite(). Ensure that buffer is NUL terminated.
This is debugfs so it's root only.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
NUL-terminate the user-provided buffer in the carl9170 debugfs write functions, such as carl9170_debugfs_erp_write(), before passing it to sscanf().
Event History
Frequently Asked Questions
Who can realistically exploit this issue?
Exploitation requires root-level access because the affected interface is debugfs, which is root only. This is therefore primarily relevant where an attacker already has privileged local access or where untrusted root-equivalent processes can write to the carl9170 debugfs files.
What access is needed to trigger the vulnerable code path?
An attacker needs to provide input through affected carl9170 debugfs write functions, such as carl9170_debugfs_erp_write(). The issue arises because user-supplied buffer data is passed to sscanf() without guaranteed NUL termination.
What can be done if the kernel update cannot be applied immediately?
Restrict root access and prevent untrusted privileged processes from writing to the carl9170 debugfs interface. Since the affected surface is debugfs, limiting access to debugfs reduces exposure.