wifi: b43: don't pass unterminated string to sscanf()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
wifi: b43: don't pass unterminated string to sscanf()
The "buf" buffer is a PAGE_SIZE 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 shm32write__write_file(). Only a few numbers are stored in the buffer so it never comes close to filling up the whole PAGE_SIZE. Reserve the last character of the page for a NUL terminator.
This is debugfs so it's root only.
| Product | Versions |
|---|---|
| Linux Linux | 75388acd0cd827dc1498043daa7d1c760902cd67 to before 121dea9a571365a450821c8da2c483f3d4b37e37 Affected75388acd0cd827dc1498043daa7d1c760902cd67 to before d3376b0734720a40070cc6a94d666ccb56c057fc Affected75388acd0cd827dc1498043daa7d1c760902cd67 to before bda7840ca647a20f1ecec9195e2eb1d95ef688a6 Affected75388acd0cd827dc1498043daa7d1c760902cd67 to before 494ac73985380fa82a34bdcbf4b3e5f84f7a26e7 Affected75388acd0cd827dc1498043daa7d1c760902cd67 to before 55a0aaef979be4f9ea9d7d290e5ce600547a8926 Affected75388acd0cd827dc1498043daa7d1c760902cd67 to before c8b4e863db282d576001e2b509f6562bd04c2ca1 Affected75388acd0cd827dc1498043daa7d1c760902cd67 to before 1186781e4d00dae4836cdeb2251cf3b422bc503d Affected75388acd0cd827dc1498043daa7d1c760902cd67 to before 9b6cb072f9249e2cdb7c32be2b8069774c7e01e6 Affected |
| Linux Linux | 2.6.24 Affectedbefore 2.6.24 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/121dea9a571365a450821c8da2c483f3d4b37e37
- https://git.kernel.org/stable/c/d3376b0734720a40070cc6a94d666ccb56c057fc
- https://git.kernel.org/stable/c/bda7840ca647a20f1ecec9195e2eb1d95ef688a6
- https://git.kernel.org/stable/c/494ac73985380fa82a34bdcbf4b3e5f84f7a26e7
- https://git.kernel.org/stable/c/55a0aaef979be4f9ea9d7d290e5ce600547a8926
- https://git.kernel.org/stable/c/c8b4e863db282d576001e2b509f6562bd04c2ca1
- https://git.kernel.org/stable/c/1186781e4d00dae4836cdeb2251cf3b422bc503d
- https://git.kernel.org/stable/c/9b6cb072f9249e2cdb7c32be2b8069774c7e01e6
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.