{"schema_version":"1.9.0","id":"CVE-2022-49780","published":"2025-05-01T14:09:15.135Z","modified":"2026-08-12T03:51:12.421025795Z","related":["SUSE-SU-2025:02334-1"],"summary":"scsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus()\n\nIf device_register() fails in tcm_loop_setup_hba_bus(), the name allocated\nby dev_set_name() need be freed. As comment of device_register() says, it\nshould use put_device() to give up the reference in the error path. So fix\nthis by calling put_device(), then the name can be freed in kobject_cleanup().\nThe 'tl_hba' will be freed in tcm_loop_release_adapter(), so it don't need\ngoto error label in this case.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3703b2c5d041a68095cdd22380c23ce27d449ad7"},{"fixed":"41a6b8b527a5957fab41c3c05e25ad125268e2e9"},{"fixed":"28f7ff5e7559d226e63c7c5de74eb075a83d8c53"},{"fixed":"75205f1b47a88c3fac4f30bd7567e89b2887c7fd"},{"fixed":"a636772988bafab89278e7bb3420d8e8eacfe912"},{"fixed":"dce0589a3faec9e2e543e97bca7e62592ec85585"},{"fixed":"bc68e428d4963af0201e92159629ab96948f0893"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49780.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.39"},{"fixed":"4.19.267"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.225"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.156"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.80"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49780.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/28f7ff5e7559d226e63c7c5de74eb075a83d8c53"},{"type":"WEB","url":"https://git.kernel.org/stable/c/41a6b8b527a5957fab41c3c05e25ad125268e2e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/75205f1b47a88c3fac4f30bd7567e89b2887c7fd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a636772988bafab89278e7bb3420d8e8eacfe912"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc68e428d4963af0201e92159629ab96948f0893"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dce0589a3faec9e2e543e97bca7e62592ec85585"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49780.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49780"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49780.json"}}