{"id":"CVE-2022-49493","aliases":["CVE-2022-49493"],"related":[],"kind":"vulnerability","state":"published","title":"ASoC: rt5645: Fix errorenous cleanup order","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: rt5645: Fix errorenous cleanup order\n\nThere is a logic error when removing rt5645 device as the function\nrt5645_i2c_remove() first cancel the &rt5645->jack_detect_work and\ndelete the &rt5645->btn_check_timer latter. However, since the timer\nhandler rt5645_btn_check_callback() will re-queue the jack_detect_work,\nthis cleanup order is buggy.\n\nThat is, once the del_timer_sync in rt5645_i2c_remove is concurrently\nrun with the rt5645_btn_check_callback, the canceled jack_detect_work\nwill be rescheduled again, leading to possible use-after-free.\n\nThis patch fix the issue by placing the del_timer_sync function before\nthe cancel_delayed_work_sync.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: rt5645: Fix errorenous cleanup order\n\nThere is a logic error when removing rt5645 device as the function\nrt5645_i2c_remove() first cancel the &rt5645->jack_detect_work and\ndelete the &rt5645->btn_check_timer latter. However, since the timer\nhandler rt5645_btn_check_callback() will re-queue the jack_detect_work,\nthis cleanup order is buggy.\n\nThat is, once the del_timer_sync in rt5645_i2c_remove is concurrently\nrun with the rt5645_btn_check_callback, the canceled jack_detect_work\nwill be rescheduled again, leading to possible use-after-free.\n\nThis patch fix the issue by placing the del_timer_sync function before\nthe cancel_delayed_work_sync.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ASoC: rt5645: Se corrige el orden de depuración erróneo Hay un error lógico al eliminar el dispositivo rt5645, ya que la función rt5645_i2c_remove() primero cancela &amp;rt5645-&gt;jack_detect_work y elimina &amp;rt5645-&gt;btn_check_timer después. Sin embargo, dado que el controlador del temporizador rt5645_btn_check_callback() volverá a poner en cola jack_detect_work, este orden de limpieza tiene errores. Es decir, una vez que del_timer_sync en rt5645_i2c_remove se ejecuta simultáneamente con rt5645_btn_check_callback, el jack_detect_work cancelado se reprogramará nuevamente, lo que provocará un posible use-after-free. Este parche soluciona el problema colocando la función del_timer_sync antes de cancel_delayed_work_sync.","source":"nvd"}],"published":"2025-02-26T02:13:29.518Z","modified":"2026-06-17T05:18:13.600Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"236d29c5857f02e0a53fdf15d3dce1536c4322ce","status":"affected"},{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"0941150100173d4eaf3fe08ff4b16740e7c3026f","status":"affected"},{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"abe7554da62cb489712a54de69ef5665c250e564","status":"affected"},{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"1a5a3dfd9f172dcb115072f0aea5e27d3083c20e","status":"affected"},{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"061a6159cea583f1155f67d1915917a6b9282662","status":"affected"},{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"88c09e4812d72c3153afc8e5a45ecac2d0eae3ff","status":"affected"},{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"453f0920ffc1a28e28ddb9c3cd5562472b2895b0","status":"affected"},{"type":"git","introduced":"a6ff8ddcf3f38ec84337e5e7eb3e0e9a73754cf5","fixed":"2def44d3aec59e38d2701c568d65540783f90f2f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"4.14.283","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.247","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.198","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.121","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.46","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.14","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.3","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.9.318"},{"status":"affected","introduced":"4.10","fixed":"4.14.283"},{"status":"affected","introduced":"4.15","fixed":"4.19.247"},{"status":"affected","introduced":"4.20","fixed":"5.4.198"},{"status":"affected","introduced":"5.5","fixed":"5.10.121"},{"status":"affected","introduced":"5.11","fixed":"5.15.46"},{"status":"affected","introduced":"5.16","fixed":"5.17.14"},{"status":"affected","introduced":"5.18","fixed":"5.18.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/236d29c5857f02e0a53fdf15d3dce1536c4322ce","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0941150100173d4eaf3fe08ff4b16740e7c3026f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/abe7554da62cb489712a54de69ef5665c250e564","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a5a3dfd9f172dcb115072f0aea5e27d3083c20e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/061a6159cea583f1155f67d1915917a6b9282662","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88c09e4812d72c3153afc8e5a45ecac2d0eae3ff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/453f0920ffc1a28e28ddb9c3cd5562472b2895b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2def44d3aec59e38d2701c568d65540783f90f2f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-27T18:15:46.025Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49493","url":"https://www.cve.org/CVERecord?id=CVE-2022-49493","licence":"CVE Terms of Use","modified":"2026-05-11T19:00:58.111Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49493","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49493","licence":"Public domain","modified":"2026-06-17T05:18:13.600Z"}],"updatedAt":"2026-11-25T22:58:20.688Z","epss":{"score":0.00268,"percentile":0.20314,"date":"2026-12-01T12:00:22.000Z"}}