PT-2025-8426
CVE-2022-49493
·
Published
2022-05-16
·
Updated
2025-09-03
Description by
CVSS 3.1
7.8
HighMetricsAV: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 logic error in the Linux kernel's ASoC rt5645 device removal process can lead to a potential use-after-free issue. The error occurs because the
rt5645 i2c remove() function cancels the &rt5645->jack detect work before deleting the &rt5645->btn check timer. However, the timer handler rt5645 btn check callback() can re-queue the jack detect work, causing the canceled work to be rescheduled and potentially leading to a use-after-free scenario when del timer sync is run concurrently with rt5645 btn check callback.Recommendations
To resolve this issue, apply the patch that fixes the cleanup order by placing the
del timer sync function before the cancel delayed work sync in the rt5645 i2c remove() function.Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾