CVE-2022-50305

ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove()

HIGH
7.8
CVSS Score
Published: September 15, 2025 at 02:46 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove() sof_es8336_remove() calls cancel_delayed_work(). However, that function does not wait until the work function finishes. This means that the callback function may still be running after the driver's remove function has finished, which would result in a use-after-free. Fix by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.0.11 ≤ v < 6.0.166.1 ≤ v < 6.1.26.1 ≤ v < 6.26.1.1 ≤ v < 6.1.26.0.116.16.1 rc66.1 rc76.1 rc889cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68b60ee210a76cabdc2dd5396de299a1860b4945cd
Vendor states this is fixed in 1b41beaa7a58467505ec3023af8aad74f878b888 (fixed)
Vendor states this is fixed in 390a1a98288a53b2e7555097d83c6e55d579b166 (fixed)
Vendor states this is fixed in b85102a3aa3810a09eb55692e8cd6ffbb304e57d (fixed)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1b41beaa7a58467505ec3023af8aad74f878b888
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/390a1a98288a53b2e7555097d83c6e55d579b166
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b85102a3aa3810a09eb55692e8cd6ffbb304e57d

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card