LiveActive security incident?Get immediate response
CVE Record

CVE-2021-47258: scsi: core: Fix error handling of scsi_host_alloc()

In the Linux kernel, the following vulnerability has been resolved: scsi: core: Fix error handling of scsi_host_alloc() After device is initialized via device_initialize(), or its name is set via dev_set_name(), the device has to be freed via put_device(). Otherwise device name will be leaked because it is allocated dynamically in dev_set_name(). Fix the leak by replacing kfree() with put_device(). Since scsi_host_dev_release() properly handles IDA and kthread removal, remove special-casing these from the error handling as well.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysisunknown

Security readout for executives and security teams

Plain-English summary

CVE-2021-47258 is a Linux kernel SCSI core resource-leak bug in an allocation error path. The public record describes leaked device names when cleanup uses the wrong release function. It is not listed in KEV, and the bundle provides no CVSS score, exploit report, or business-impact details.

Executive priority

Handle through normal kernel patch management unless a critical storage platform uses an affected unsupported kernel. There is no sourced evidence of active exploitation or a remote attack path, but kernel resource leaks still matter for operational resilience.

Technical view

After device_initialize() or dev_set_name(), Linux kernel device cleanup must use put_device(). In scsi_host_alloc() error handling, kfree() could leave the dynamically allocated device name leaked and bypass normal release cleanup. Stable kernel commits replace kfree() with put_device() and rely on scsi_host_dev_release() for IDA and kthread cleanup.

Likely exposure

Exposure is limited to Linux systems running affected kernel versions or unpatched backports containing the vulnerable SCSI core behavior. Systems using SCSI-backed storage, virtualization storage, or storage appliances are the most relevant to review. The sources do not establish remote reachability or attacker prerequisites.

Exploitation context

No supplied source reports active exploitation, and KEV is false. The evidence describes a kernel resource leak during error handling, not a complete attack path. Treat exploitability and practical impact as unproven from the provided material.

Researcher notes

The record is narrow and implementation-specific. Key evidence is the SCSI core cleanup change from kfree() to put_device() after device initialization/name assignment. Public metadata lacks CVSS, CWE, exploitability detail, and concrete impact beyond the described leak.

Mitigation direction

  • Check Linux distribution advisories for CVE-2021-47258 coverage.
  • Update affected kernels to vendor-supported builds containing the stable fixes.
  • Prioritize storage-heavy Linux servers, hypervisors, and appliances for review.
  • Track unsupported kernels for replacement or compensating lifecycle controls.

Validation and detection

  • Inventory running Linux kernel versions across managed assets.
  • Confirm vendor backport status for the listed stable kernel commits.
  • Review vulnerability scanner results against actual running kernels, not package cache only.
  • Document exceptions where vendor guidance is unavailable or unclear.
Prepared
Confidence
medium
Sources
9

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.

cve · low confidence lookup

CVE-2021-47258 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
Unknown
CVSS
Not scored
Known Exploited
No
Published
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.

0CVSS vectors
3Timeline events
2ADP providers
8Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
CVECVE Program Container
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux1fa5ae857bb14f6046205171d98506d8112dd74e, 1fa5ae857bb14f6046205171d98506d8112dd74e, 1fa5ae857bb14f6046205171d98506d8112dd74e, 1fa5ae857bb14f6046205171d98506d8112dd74e, 1fa5ae857bb14f6046205171d98506d8112dd74e, 1fa5ae857bb14f6046205171d98506d8112dd74e, 1fa5ae857bb14f6046205171d98506d8112dd74eunaffected
LinuxLinux2.6.30, 0, 4.9.273, 4.14.237, 4.19.195, 5.4.126, 5.10.44, 5.12.11, 5.13affected
Weakness

CWE details

No CWE listed

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