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.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47258.json"
[
{
"events": [
{
"introduced": "0"
},
{
"fixed": "4.9.273"
}
]
},
{
"events": [
{
"introduced": "4.10"
},
{
"fixed": "4.14.237"
}
]
},
{
"events": [
{
"introduced": "4.15"
},
{
"fixed": "4.19.195"
}
]
},
{
"events": [
{
"introduced": "4.20"
},
{
"fixed": "5.4.126"
}
]
},
{
"events": [
{
"introduced": "5.5"
},
{
"fixed": "5.10.44"
}
]
},
{
"events": [
{
"introduced": "5.11"
},
{
"fixed": "5.12.11"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc1"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc2"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc3"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc4"
}
]
},
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "5.13-rc5"
}
]
}
]