LiveActive security incident?Get immediate response
CVE Record

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

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() ... | del_timer() | ... | ... sas_free_task(task) | kfree(task->slow_task) //FREE| | task->slow_task->... //USE Fix by calling del_timer_sync() in smp_execute_task_sg(), which makes sure the timer handler have finished before the "task->slow_task" is deallocated.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

A flaw in the Linux kernel's SAS storage driver could let a local user crash the system or potentially gain higher privileges by triggering a race condition between a timer and a cleanup routine. It only affects systems running unpatched Linux kernels with SAS hardware in use, and exploitation requires existing local access. Stable kernel updates are available from kernel.org.

Executive priority

Schedule kernel patching on Linux hosts with SAS storage in the next standard maintenance window. There is no evidence of active exploitation, but the high CVSS and local privilege-escalation potential warrant timely remediation, especially on multi-tenant or shared-administration systems.

Technical view

A use-after-free in libsas's smp_execute_task_sg() arises because del_timer() does not wait for an in-flight sas_task_internal_timedout() handler. The timer can dereference task->slow_task after sas_free_task() releases it. The fix replaces del_timer() with del_timer_sync() to ensure the handler completes before deallocation. CWE-416. CVSS 3.1 base 7.8 (AV:L/AC:L/PR:L/UI:N/C:H/I:H/A:H).

Likely exposure

Linux servers and appliances using libsas/SAS storage controllers on kernels prior to 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, and 6.1. Embedded storage arrays, hypervisors, and bare-metal hosts with SAS HBAs are most likely impacted. Cloud workloads on virtualized disks without SAS pass-through are typically not exposed.

Exploitation context

No public exploitation or KEV listing is cited. The CVSS vector requires local, low-privilege access without user interaction; impact is high across CIA. Race-condition timing on SMP task failure paths reduces opportunistic reliability.

Researcher notes

Root cause is asynchronous timer cancellation: del_timer() returns without synchronizing against a running handler, so kfree(task->slow_task) can race with sas_task_internal_timedout(). Fix substitutes del_timer_sync(). Reproducing requires inducing SMP task failure on a libsas-backed device. Backports landed across multiple stable trees; verify the specific commit hash present in your build matches one of the six referenced kernel.org commits.

Mitigation direction

  • Upgrade Linux kernel to 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1, or later stable releases.
  • Apply distribution kernel updates from your Linux vendor that include the libsas del_timer_sync() fix.
  • Restrict local shell access on hosts with SAS controllers to trusted administrators only.
  • Reboot systems after kernel update so the patched kernel is in active use.
  • For appliances, consult the hardware vendor for firmware or kernel rollups carrying this fix.

Validation and detection

  • Run uname -r and confirm the kernel meets or exceeds the fixed stable versions listed by kernel.org.
  • Check distribution security advisories for CVE-2022-50422 and confirm the package version matches the patched build.
  • Inventory hosts using SAS HBAs (lspci, lsscsi) to scope which systems require priority patching.
  • Compare deployed kernel commit to the upstream fix commits referenced in git.kernel.org links.
  • After patch, verify no regression in SAS storage health via dmesg and vendor diagnostics.
Prepared
Confidence
medium
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-416: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-50422 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2022-50422Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux2908d778ab3e244900c310974e1fc1c69066e450, 2908d778ab3e244900c310974e1fc1c69066e450, 2908d778ab3e244900c310974e1fc1c69066e450, 2908d778ab3e244900c310974e1fc1c69066e450, 2908d778ab3e244900c310974e1fc1c69066e450, 2908d778ab3e244900c310974e1fc1c69066e450unaffected
LinuxLinux2.6.19, 0, 5.4.220, 5.10.150, 5.15.75, 5.19.17, 6.0.3, 6.1affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-416 · source CWE mapping

Use After Free

Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.