CVE-2026-139555

soundwire: debugfs: replace writable string helper

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:

soundwire: debugfs: replace writable string helper

debugfs_create_str() is being made read-only because its generic write
path is hard to make safe without adding more locking to the helper.

Convert the SoundWire firmware_file entry to a local write-only file
operation before removing writable string support from
debugfs_create_str().

Copy the firmware name before request_firmware() so later debugfs writes
cannot replace the string while it is being used.

Analysis

AI-generated

Technical impact

The vulnerable component is the Linux kernel’s debugfs interface for the SoundWire firmware file. The function debugfs_create_str() was exposed as a writable string, allowing a process to replace the firmware name while the kernel was in the middle of loading it. Based on the description, it is inferred that such a race could lead to incorrect firmware loading or, more gravely, to kernel memory corruption that could result in a crash or loss of service. The weakness is a classic example of improper integrity protection (CWE‑284) combined with a timing issue (CWE‑366). The patch removes the unsafe writable helper, makes the debugfs file read‑only, and replaces it with a safe local write‑only operation while copying the firmware name before the request_firmware() call, thereby eliminating the race condition.

Affected Systems

The affected product is the Linux kernel itself, as any distribution that ships a kernel exposing the writable debugfs entry for the SoundWire firmware file is impacted. Version information is not specified, so the flaw may exist in a broad range of kernel releases until the patch is applied.

Risk and Exploitability

The CVSS score of 4.4 indicates low‑to‑moderate severity. The EPSS score of "< 1%" shows that exploitation is highly unlikely, and the flaw is not listed in CISA’s KEV catalog. Exploitation would require write access to /sys/kernel/debug, which is normally limited to root, so local root privileges are a prerequisite. While no public exploits are known, the kernel memory nature of the flaw makes it a serious technical concern, warranting timely remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the change making the SoundWire debugfs helper read‑only and removing the writable entry.
  • If an update is not yet available, secure the /sys/kernel/debug directory so that only privileged users have write permission, limiting the attack surface.
  • After installing the updated kernel, reboot the system to reload the kernel and activate the new debugfs configuration.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-284
Type Values Removed Values Added
Weaknesses CWE-366
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-284
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: soundwire: debugfs: replace writable string helper debugfs_create_str() is being made read-only because its generic write path is hard to make safe without adding more locking to the helper. Convert the SoundWire firmware_file entry to a local write-only file operation before removing writable string support from debugfs_create_str(). Copy the firmware name before request_firmware() so later debugfs writes cannot replace the string while it is being used.
Title soundwire: debugfs: replace writable string helper
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-366

    Race Condition within a Thread

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