CVE-2022-50422: scsi: libsas: Fix use-after-free bug in smp_execute_task_sg()

Published Oct 1, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: libsas: Fix use-after-free bug in smpexecutetasksg()

When executing SMP task failed, the smpexecutetasksg() calls deltimer() to delete "slowtask->timer". However, if the timer handler sastaskinternaltimedout() is running, the deltimer() in smpexecutetasksg() will not stop it and a UAF will happen. The process is shown below:

(thread 1) | (thread 2) smpexecutetasksg() | sastaskinternaltimedout() ... | deltimer() | ... | ... sasfreetask(task) | kfree(task->slowtask) //FREE| | task->slowtask->... //USE

Fix by calling deltimersync() in smpexecutetasksg(), which makes sure the timer handler have finished before the "task->slowtask" is deallocated.

Affected Software

6 affected components
Linux Linux kernel
Linux Linux kernel>=2.6.19<5.4.220
Linux Linux kernel>=5.5<5.10.150
Linux Linux kernel>=5.11<5.15.75
Linux Linux kernel>=5.16<5.19.17
Linux Linux kernel>=6.0<6.0.3

Event History

Oct 1, 2025
CVE Published
via MITRE·11:41 AM
Data Sourced
via MITRE·11:41 AM
Description
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50422?

CVE-2022-50422 is classified as a medium severity vulnerability in the Linux kernel due to the use-after-free bug that could potentially lead to denial of service.

2

How do I fix CVE-2022-50422?

To address CVE-2022-50422, update your Linux kernel to a version that includes the patches for this vulnerability, specifically versions following the fixes provided in the kernel commits.

3

What are the affected versions for CVE-2022-50422?

CVE-2022-50422 affects multiple versions of the Linux kernel ranging from 2.6.19 to version 6.0.3.

4

What kind of impact can CVE-2022-50422 have on systems?

CVE-2022-50422 can lead to a denial of service if exploited, impacting the availability of the affected systems.

5

Is CVE-2022-50422 readily exploitable?

Exploitation of CVE-2022-50422 may require specific conditions and privileges, which could limit its overall impact but still poses a risk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203