{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49780","id":"CVE-2022-49780","title":"scsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus()","description":"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(), t","descriptionLong":"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.","published":"2025-05-01T14:09:15.135Z","updated":"2026-11-07T02:30:44.636055952Z","reserved":"2025-04-16T07:17:33.806Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3703b2c5d041a68095cdd22380c23ce27d449ad7","lessThan":"41a6b8b527a5957fab41c3c05e25ad125268e2e9","status":"affected","versionType":"git"},{"version":"3703b2c5d041a68095cdd22380c23ce27d449ad7","lessThan":"28f7ff5e7559d226e63c7c5de74eb075a83d8c53","status":"affected","versionType":"git"},{"version":"3703b2c5d041a68095cdd22380c23ce27d449ad7","lessThan":"75205f1b47a88c3fac4f30bd7567e89b2887c7fd","status":"affected","versionType":"git"},{"version":"3703b2c5d041a68095cdd22380c23ce27d449ad7","lessThan":"a636772988bafab89278e7bb3420d8e8eacfe912","status":"affected","versionType":"git"},{"version":"3703b2c5d041a68095cdd22380c23ce27d449ad7","lessThan":"dce0589a3faec9e2e543e97bca7e62592ec85585","status":"affected","versionType":"git"},{"version":"3703b2c5d041a68095cdd22380c23ce27d449ad7","lessThan":"bc68e428d4963af0201e92159629ab96948f0893","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.39","status":"affected"},{"version":"0","lessThan":"2.6.39","status":"unaffected","versionType":"semver"},{"version":"4.19.267","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.225","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.156","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.80","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.10","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/41a6b8b527a5957fab41c3c05e25ad125268e2e9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/28f7ff5e7559d226e63c7c5de74eb075a83d8c53","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/75205f1b47a88c3fac4f30bd7567e89b2887c7fd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a636772988bafab89278e7bb3420d8e8eacfe912","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dce0589a3faec9e2e543e97bca7e62592ec85585","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bc68e428d4963af0201e92159629ab96948f0893","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49780.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49780","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00216,"epssPercentile":0.12143,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49780","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49780","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49780","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49780","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}