CVE-2026-139529

wifi: b43legacy: debugfs: NUL terminate string in debugfs

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: b43legacy: debugfs: NUL terminate string in debugfs

The "buf" buffer is 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 tsf_write_file(). The buffer is only used to store a
number so we never come 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 recent flaw in the Linux kernel’s Wi‑Fi driver for legacy Broadcom devices allowed a user to write a string to a PAGE_SIZE buffer without ensuring the null terminator was correctly placed. Based on the description, it is inferred that this oversight could allow the kernel’s sscanf call in debugfs write functions to read past the intended data, potentially causing a crash or unpredictable behavior. The flaw is limited to the debugfs interface, which is accessible only to the superuser, so the primary risk is a local denial‑of‑service for systems running the affected kernel version.

Affected Systems

The vulnerability arises in the b43legacy driver bundled with the mainline Linux kernel. All Linux kernels that ship the driver in the affected state are impacted; the exact build identifiers are not provided, but any kernel compiling b43legacy with debugfs enabled should be considered vulnerable.

Risk and Exploitability

The CVSS score of 4.4 indicates a medium severity, and the EPSS score of < 1% shows a very low risk of exploitation in the wild. The CISA KEV catalog does not list this issue, indicating no known active exploitation. Because debugfs access requires root privileges, an attacker would need local root to trigger the fault, limiting the attack surface to systems with compromised superuser accounts. The likely attack vector is local root privileges used to write to the debugfs interface. Based on the description, it is inferred that the lack of a null terminator could still trigger a kernel panic or memory corruption, leading to service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the patch correcting the null‑termination handling in b43legacy debugfs code
  • Disable debugfs for the b43legacy driver by editing /sys/kernel/debug/ to deny non‑root access
  • Unbind the b43legacy driver or use a firmware list that does not expose debugfs interfaces

Generated by OpenCVE AI on December 2, 2026 at 15:40 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-119
CWE-193
Type Values Removed Values Added
Weaknesses CWE-170
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-119
CWE-193
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: wifi: b43legacy: debugfs: NUL terminate string in debugfs The "buf" buffer is 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 tsf_write_file(). The buffer is only used to store a number so we never come 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: b43legacy: debugfs: NUL terminate string in debugfs
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-170

    Improper Null Termination

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