PT-2025-18559 · Linux+2 · Linux Kernel+2

Published

2022-10-28

·

Updated

2025-07-10

·

CVE-2022-49842

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A use-after-free issue has been identified in the Linux kernel, specifically in the ASoC core. The issue arises when snd soc util init() fails, but its return value is ignored, leading to soc dummy dev being unregistered twice. This results in a use-after-free error, as reported by KASAN. The error occurs in the device del() function and is triggered when the rmmod task attempts to delete a module. To fix this issue, the error handling in snd soc init() has been improved to stop initialization when util init() fails, and debugfs is cleaned when util init() or driver register() fails.
Recommendations To resolve this issue, update the Linux kernel to a version that includes the fix for the use-after-free error in the ASoC core. As a temporary workaround, consider disabling the snd soc exit() function until a patch is available. Additionally, restrict access to the vulnerable device del() function to minimize the risk of exploitation. Avoid using the platform device unregister() function with the soc dummy dev device until the issue is resolved.

Exploit

Fix

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-10253
CVE-2022-49842
OESA-2025-1513
SUSE-SU-2025:01918-1
SUSE-SU-2025:01966-1
SUSE-SU-2025:01982-1
SUSE-SU-2025:01983-1
SUSE-SU-2025:01995-1
SUSE-SU-2025:02173-1
SUSE-SU-2025:02262-1
SUSE-SU-2025:2173-1
SUSE-SU-2025_01982-1
SUSE-SU-2025_01983-1
SUSE-SU-2025_02173-1
SUSE-SU-2025_02262-1

Affected Products

Astra Linux
Linux Kernel
Suse