CVE-2026-139530: wifi: b43: don't pass unterminated string to sscanf()

Published Nov 30, 2026
·
Updated

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

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description

Frequently Asked Questions

1

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.

2

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203