{"id":"DEBIAN-CVE-2022-50422","details":"In the Linux kernel, the following vulnerability has been resolved:  scsi: libsas: Fix use-after-free bug in smp_execute_task_sg()  When executing SMP task failed, the smp_execute_task_sg() calls del_timer() to delete \"slow_task-\u003etimer\". However, if the timer handler sas_task_internal_timedout() is running, the del_timer() in smp_execute_task_sg() will not stop it and a UAF will happen. The process is shown below:        (thread 1)               |        (thread 2) smp_execute_task_sg()          | sas_task_internal_timedout()  ...                           |  del_timer()                   |  ...                           |  ...  sas_free_task(task)           |   kfree(task-\u003eslow_task) //FREE|                                |  task-\u003eslow_task-\u003e... //USE  Fix by calling del_timer_sync() in smp_execute_task_sg(), which makes sure the timer handler have finished before the \"task-\u003eslow_task\" is deallocated.","modified":"2026-09-01T16:05:35.182973043Z","published":"2025-10-01T12:15:33.533Z","upstream":["CVE-2022-50422"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-50422"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50422.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50422.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50422.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}