AI for Security Summit: Join Figma, Perplexity & Wiz. [Register]

CVE-2021-47337
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47337 addresses a NULL pointer dereference vulnerability in the Linux kernel's SCSI subsystem. The issue was introduced by commit 66a834d09293 which changed the allocation logic in scsi_host_alloc() but failed to properly handle error cases when the error handler thread fails to spawn (NVD).

Technical details

The vulnerability occurs in the SCSI core subsystem when the error handler thread fails to spawn during host initialization. In such cases, shost->ehandler is set to ERR_PTR(-ENOMEM), but the cleanup code in scsi_host_dev_release() attempts to call kthread_stop() if shost->ehandler is non-NULL. This leads to dereferencing an invalid pointer since the error handler thread was never successfully created. The issue manifests as a kernel NULL pointer dereference at address 0x0000010c (Kernel Patch).

Impact

When triggered, this vulnerability results in a kernel panic due to NULL pointer dereference, which can lead to system crashes and potential denial of service conditions. The issue affects systems using the SCSI subsystem, particularly during device initialization or cleanup phases (NVD).

Exploitability

The vulnerability can be triggered during SCSI host allocation when the error handler thread fails to spawn. It has been observed in the wild particularly with IBM virtual SCSI devices, as demonstrated by the crash logs showing the issue occurring during ibmvscsi driver initialization (Kernel Patch).

Mitigation and workarounds

The issue has been fixed by nulling shost->ehandler when the kthread fails to spawn, preventing the invalid pointer dereference during cleanup. The fix was implemented in the Linux kernel through a patch that adds a single line of code to set shost->ehandler to NULL in the error path (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-89771HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoNoSep 11, 2026
CVE-2026-89763HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-aws-5.4
NoYesSep 11, 2026
CVE-2026-89760HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.14
NoNoSep 11, 2026
CVE-2026-89759MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-debug-modules
NoYesSep 11, 2026
CVE-2026-89757LOW3.6
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency
NoYesSep 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management