CVE-2022-49780

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49780
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49780.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49780
Downstream
Published
2025-05-01T15:16:01Z
Modified
2025-08-09T20:01:26Z
Summary
[none]
Details

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

scsi: target: tcmloop: Fix possible name leak in tcmloopsetuphba_bus()

If deviceregister() fails in tcmloopsetuphbabus(), the name allocated by devsetname() need be freed. As comment of deviceregister() says, it should use putdevice() to give up the reference in the error path. So fix this by calling putdevice(), then the name can be freed in kobjectcleanup(). The 'tlhba' will be freed in tcmlooprelease_adapter(), so it don't need goto error label in this case.

References

Affected packages