5.5

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

Analyzed
AliasesUBUNTU-CVE-2021-47258DEBIAN-CVE-2021-47258
Published 21-05-2024Last modified 11-05-2026

Vulnerability summary

CVE-2021-47258 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.24%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 5

Timeline

  1. 21-05-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

15%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.24% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu87 products
  • linuxAll versions (No fix recorded) | < 4.15.0-156.163 | < 5.4.0-81.91
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 4.15.0-1111.118 | < 5.4.0-1055.58
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 1fa5ae857bb14f6046205171d98506d8112dd74e, < 8958181c1663e24a13434448e7d6b96b5d04900a | ≥ 1fa5ae857bb14f6046205171d98506d8112dd74e, < db08ce595dd64ea9859f7d088b51cbfc8e685c66 | ≥ 1fa5ae857bb14f6046205171d98506d8112dd74e, < 2dc85045ae65b9302a1d2e2ddd7ce4c030153a6a | ≥ 1fa5ae857bb14f6046205171d98506d8112dd74e, < 79296e292d67fa7b5fb8d8c27343683e823872c8 | ≥ 1fa5ae857bb14f6046205171d98506d8112dd74e, < 7a696ce1d5d16a33a6cd6400bbcc0339b2460e11 | ≥ 1fa5ae857bb14f6046205171d98506d8112dd74e, < 45d83db4728127944b237c0c8248987df9d478e7 | ≥ 1fa5ae857bb14f6046205171d98506d8112dd74e, < 66a834d092930cf41d809c0e989b13cd6f9ca006 | 2.6.30
  • linux_kernel< 4.9.273 | ≥ 4.10, < 4.14.237 | ≥ 4.15, < 4.19.195 | ≥ 4.20, < 5.4.126 | ≥ 5.5, < 5.10.44 | ≥ 5.11, < 5.12.11 | 5.13:rc1 | 5.13:rc2 | 5.13:rc3 | 5.13:rc4 | 5.13:rc5
Debian1 product
  • linux< 5.10.46-1

3 vendors · 90 products

References

11 links
Show all 11 references