CVE-2022-50422Use After Free in Linux

Severity
7.8HIGHNVD
EPSS
0.0%
top 97.42%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 1

Description

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->timer". 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() ...

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages4 packages

NVDlinux/linux_kernel2.6.195.4.220+4
Debianlinux/linux_kernel< 5.10.158-1+3
CVEListV5linux/linux2908d778ab3e244900c310974e1fc1c69066e450117331a2a5227fb4369c2a1f321d3e3e2e2ef8fe+6
debiandebian/linux< linux 6.0.3-1 (bookworm)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-j5vv-gj42-cwrm: In the Linux kernel, the following vulnerability has been resolved: scsi: libsas: Fix use-after-free bug in smp_execute_task_sg() When executing SMP2025-10-01
OSV
CVE-2022-50422: 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 t2025-10-01

📋Vendor Advisories

2
Red Hat
kernel: scsi: libsas: Fix use-after-free bug in smp_execute_task_sg()2025-10-01
Debian
CVE-2022-50422: linux - In the Linux kernel, the following vulnerability has been resolved: scsi: libsa...2022