CVE-2026-139533

ASoC: rt712-sdca: always cancel jack work on remove

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ASoC: rt712-sdca: always cancel jack work on remove

rt712_sdca_sdw_remove() cancels the jack work only when hw_init is true.
rt712_sdca_update_status() clears hw_init when the SoundWire slave
becomes unattached, but jack work may already have been queued by
rt712_sdca_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 objects are initialized during probe, so cancel them
unconditionally instead of relying on the mutable hw_init state.

Analysis

AI-generated

Technical impact

The flaw occurs in the rt712 SDCA driver when the device is removed after its status is cleared. The driver cancels delayed jack work only under a mutable flag, so if the work had already been queued by an interrupt callback it may remain scheduled even though the codec private data has been freed. A pending work item running after the data is freed can use freed memory, resulting in a use‑after‑free and potential kernel corruption. The weakness is a classic use‑after‑free scenario.

Affected Systems

Any Linux kernel installation that incorporates the rt712 SDCA sound driver is affected. No specific kernel release range is listed, so any system running the driver before the known fix is potentially vulnerable.

Risk and Exploitability

The vulnerability is a kernel bug with high impact. It requires the attacker to trigger a removal sequence of the codec device while an interrupt or initialization path has queued work, which is typically a local privilege scenario. No EPSS data is available, and the CVE is not in the CISA KEV catalog, but the nature of the use‑after‑free indicates a serious risk if the affected kernel is in use. The vulnerability can be exploited by executing kernel code via a freed object if the attacker can control the state of the driver.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the rt712 SDCA driver patch that cancels jack work unconditionally; the fix is published in the Linux kernel source tree.
  • If an immediate kernel upgrade is not possible, manually apply the upstream patch identified in the advisory (e.g., the commit referenced at https://git.kernel.org/stable/c/05a2165e99a8db9c478c8d5dc4479fb8a4f45e0f). This patch removes the conditional cancellation logic and forces unconditionally canceling the delayed work during device removal.
  • If the RT712 codec is not required for operation, disable the driver module or ensure that removal operations are performed only after confirming that no delayed work is queued, thus preventing the race condition.

Generated by OpenCVE AI on November 30, 2026 at 23:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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: rt712-sdca: always cancel jack work on remove rt712_sdca_sdw_remove() cancels the jack work only when hw_init is true. rt712_sdca_update_status() clears hw_init when the SoundWire slave becomes unattached, but jack work may already have been queued by rt712_sdca_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 objects are initialized during probe, so cancel them unconditionally instead of relying on the mutable hw_init state.
Title ASoC: rt712-sdca: 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

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