CVE-2021-47258

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47258
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47258.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47258
Related
Published
2024-05-21T15:15:14Z
Modified
2024-09-18T01:00:22Z
Summary
[none]
Details

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

scsi: core: Fix error handling of scsihostalloc()

After device is initialized via deviceinitialize(), or its name is set via devsetname(), the device has to be freed via putdevice(). Otherwise device name will be leaked because it is allocated dynamically in devsetname().

Fix the leak by replacing kfree() with putdevice(). Since scsihostdevrelease() properly handles IDA and kthread removal, remove special-casing these from the error handling as well.

References

Affected packages

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.46-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.46-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.46-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}