{"id":"CVE-2022-49780","aliases":["CVE-2022-49780"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: target: tcm_loop: Se corrige una posible fuga de nombre en tcm_loop_setup_hba_bus(). Si device_register() falla en tcm_loop_setup_hba_bus(), se debe liberar el nombre asignado por dev_set_name(). Como se indica en el comentario de device_register(), se debe usar put_device() para liberar la referencia en la ruta de error. Para solucionar esto, se debe llamar a put_device(); luego, el nombre se puede liberar en kobject_cleanup(). El 'tl_hba' se liberará en tcm_loop_release_adapter(), por lo que no es necesario ir a la etiqueta de error en este caso.","source":"nvd"}],"published":"2025-05-01T14:09:15.135Z","modified":"2026-11-05T20:17:10.647Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"3703b2c5d041a68095cdd22380c23ce27d449ad7","fixed":"41a6b8b527a5957fab41c3c05e25ad125268e2e9","status":"affected"},{"type":"git","introduced":"3703b2c5d041a68095cdd22380c23ce27d449ad7","fixed":"28f7ff5e7559d226e63c7c5de74eb075a83d8c53","status":"affected"},{"type":"git","introduced":"3703b2c5d041a68095cdd22380c23ce27d449ad7","fixed":"75205f1b47a88c3fac4f30bd7567e89b2887c7fd","status":"affected"},{"type":"git","introduced":"3703b2c5d041a68095cdd22380c23ce27d449ad7","fixed":"a636772988bafab89278e7bb3420d8e8eacfe912","status":"affected"},{"type":"git","introduced":"3703b2c5d041a68095cdd22380c23ce27d449ad7","fixed":"dce0589a3faec9e2e543e97bca7e62592ec85585","status":"affected"},{"type":"git","introduced":"3703b2c5d041a68095cdd22380c23ce27d449ad7","fixed":"bc68e428d4963af0201e92159629ab96948f0893","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.39","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.39","status":"unaffected"},{"type":"semver","introduced":"4.19.267","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.225","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.156","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.80","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.10","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.39","fixed":"4.19.267"},{"status":"affected","introduced":"4.20","fixed":"5.4.225"},{"status":"affected","introduced":"5.5","fixed":"5.10.156"},{"status":"affected","introduced":"5.11","fixed":"5.15.80"},{"status":"affected","introduced":"5.16","fixed":"6.0.10"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/41a6b8b527a5957fab41c3c05e25ad125268e2e9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/28f7ff5e7559d226e63c7c5de74eb075a83d8c53","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/75205f1b47a88c3fac4f30bd7567e89b2887c7fd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a636772988bafab89278e7bb3420d8e8eacfe912","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dce0589a3faec9e2e543e97bca7e62592ec85585","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc68e428d4963af0201e92159629ab96948f0893","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T19:47:35.495Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49780","url":"https://www.cve.org/CVERecord?id=CVE-2022-49780","licence":"CVE Terms of Use","modified":"2026-11-05T19:49:47.812Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49780","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49780","licence":"Public domain","modified":"2026-11-05T20:17:10.647Z"}],"updatedAt":"2026-11-25T22:58:20.866Z","epss":{"score":0.00217,"percentile":0.12888,"date":"2026-12-01T12:00:22.000Z"}}