CVE-2026-139353

ASoC: rt5645: Shut down the button timer on removal

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: rt5645: Shut down the button timer on removal

jack_detect_work can rearm btn_check_timer, and the timer callback can
queue jack_detect_work. Deleting the timer before cancelling the work
does not break this cycle: an already running worker can rearm the timer
after timer_delete_sync() returns. The timer can then outlive removal.

Use timer_shutdown_sync() before cancelling the delayed work so that
subsequent attempts to rearm the timer are ignored. The IRQ producer has
already been removed at this point. Keep the restartable timer deletion
in the suspend path.

This issue was identified as part of our ongoing research while
reviewing kernel code.

Analysis

AI-generated

Technical impact

During removal of the rt5645 audio codec, the work queue re‑arrests its button timer after the timer has been deleted, causing a cycle that lets the timer outlive the device removal. This improper shutdown can result in a use‑after‑free scenario that may corrupt kernel memory and potentially allow an attacker to execute arbitrary code with elevated privileges.

Affected Systems

The flaw affects the Linux kernel’s ASoC driver for the rt5645 codec, as distributed by the upstream Linux project. No specific kernel versions are identified beyond the presence of the driver.

Risk and Exploitability

No CVSS score is provided and EPSS is not available, so the quantitative risk cannot be precisely measured. The issue was discovered during internal kernel research and is not currently listed in CISA’s KEV catalog. Because it involves an in‑kernel resource managed during device removal, the likely attack vector is local, requiring the ability to trigger removal or reload of the rt5645 driver. While a remote exploit has not been documented, the potential for memory corruption makes it a high‑severity concern for systems that allow local users to manipulate hardware devices.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that applies timer_shutdown_sync to rt5645 work queues before canceling delayed work
  • If an immediate kernel update is not feasible, modify the driver configuration so that timer_shutdown_sync is called before removing the rt5645 device, or disable the button timer feature entirely
  • Restrict device removal or reload of the rt5645 driver to trusted users only, to prevent accidental re‑arming of the timer

Generated by OpenCVE AI on December 1, 2026 at 06:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CWE-754
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ASoC: rt5645: Shut down the button timer on removal jack_detect_work can rearm btn_check_timer, and the timer callback can queue jack_detect_work. Deleting the timer before cancelling the work does not break this cycle: an already running worker can rearm the timer after timer_delete_sync() returns. The timer can then outlive removal. Use timer_shutdown_sync() before cancelling the delayed work so that subsequent attempts to rearm the timer are ignored. The IRQ producer has already been removed at this point. Keep the restartable timer deletion in the suspend path. This issue was identified as part of our ongoing research while reviewing kernel code.
Title ASoC: rt5645: Shut down the button timer on removal
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-416

    Use After Free

  • CWE-754

    Improper Check for Unusual or Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM