CVE-2026-139530

wifi: b43: don't pass unterminated string to sscanf()

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A debugfs write path in the b43 wireless driver accepts a user‑supplied string that is not guaranteed to be null‑terminated before passing it to sscanf(). While the string is stored in a PAGE_SIZE buffer with the last byte reserved for a NUL terminator, the code still uses the raw data without checks. This flaw can cause sscanf() to read beyond the intended string boundary, potentially interpreting arbitrary memory and leading to erratic kernel behaviour or a crash. It does not directly produce a buffer overflow but represents a classic instance of malformed input being processed by a low‑level routine.

Affected Systems

All Linux kernel releases that ship with the default b43 wireless driver and expose the debugfs interface are potentially affected. The issue exists in any version before the patch that added proper string termination handling. Because the CNA vendor listing is generic, the specific kernel under‑release is unknown, but any distribution kernel containing b43 and having debugfs enabled may be vulnerable.

Risk and Exploitability

The bug is confined to the debugfs subsystem, which is writable only by the root user. A local attacker with root privileges could craft a write operation that exploits the unterminated string and trigger a crash or kernel instability. The EPSS score is not available and the vulnerability is not listed in CISA KEV, suggesting no documented exploitation. Consequently the realistic risk is limited to local‑privileged users capable of manipulating the debugfs interface. Applying the patched kernel removes the vector entirely.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the b43 driver fix
  • If debugfs is not required, unmount or disable it or restrict write access to trusted users
  • Enable audit logging for debugfs write operations to detect unusual activity

Generated by OpenCVE AI on December 1, 2026 at 13:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-131
CWE-20
Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-131
CWE-20
Type Values Removed Values Added
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.
Title wifi: b43: don't pass unterminated string to sscanf()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:35 PM