CVE-2026-139536

ASoC: rt5682-sdw: always cancel jack work on remove

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ASoC: rt5682-sdw: always cancel jack work on remove

rt5682_sdw_remove() cancels jack_detect_work only when hw_init is true.
rt5682_update_status() clears hw_init when the SoundWire slave becomes
unattached, but jack_detect_work may already have been queued by
rt5682_interrupt_callback() or the jack initialization path.

A remove after that status update can therefore skip the cancellation and
leave delayed work pending after the codec private data has been freed.

The work object is initialized during probe, so cancel it unconditionally
instead of relying on the mutable hw_init state.

Analysis

AI-generated

Technical impact

During removal of the rt5682 SoundWire audio codec driver, the kernel only cancels scheduled jack detection work when an internal initialization flag remains true. The flag can be cleared by a status update, causing work to stay queued after the driver’s private data is freed and resulting in a use‑after‑free scenario. If an attacker can trigger the removal sequence at the wrong time, they may execute arbitrary kernel code or crash the system. Based on the description, it is inferred that the attacker would need to induce a removal event after the hw_init flag has been cleared, which likely requires local privileged access or a driver that can manipulate the hardware state.

Affected Systems

The vulnerability exists within the Linux kernel’s ASoC subsystem, specifically the rt5682‑sdw driver that supports certain audio codec hardware. Any Linux system that runs a kernel including this driver—and does not apply the upstream fix—is affected. Standard distributions that ship the default kernel with this driver enabled, and custom builds that include the driver, are potentially vulnerable.

Risk and Exploitability

The vulnerability is not listed in the CISA KEV catalog and has an EPSS score of less than 1%, indicating a low likelihood of exploitation but still possible. The CVSS score of 4.1 reflects a moderate severity. Exploitation would still require local privileged access or the ability to trigger the removal sequence after the hw_init flag has been cleared. Should an attacker succeed, the ensuing use‑after‑free could lead to kernel panic or arbitrary code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the rt5682_sdw patch enforcing unconditional cancellation of jack_detect_work upon removal
  • If an update is not immediately possible, disable or unload the rt5682_sdw driver to eliminate the vulnerable code path
  • Check the distribution’s security advisories for guidance on applying vendor‑issued updates or rolling back to a safe kernel version

Generated by OpenCVE AI on December 2, 2026 at 15:36 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-416
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ASoC: rt5682-sdw: always cancel jack work on remove rt5682_sdw_remove() cancels jack_detect_work only when hw_init is true. rt5682_update_status() clears hw_init when the SoundWire slave becomes unattached, but jack_detect_work may already have been queued by rt5682_interrupt_callback() or the jack initialization path. A remove after that status update can therefore skip the cancellation and leave delayed work pending after the codec private data has been freed. The work object is initialized during probe, so cancel it unconditionally instead of relying on the mutable hw_init state.
Title ASoC: rt5682-sdw: always cancel jack work on remove
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

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