CVE-2022-49780 Details
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus() If device_register() fails in tcm_loop_setup_hba_bus(), the name allocated by dev_set_name() need be freed. As comment of device_register() says, it should use put_device() to give up the reference in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanup(). The 'tl_hba' will be freed in tcm_loop_release_adapter(), so it don't need goto error label in this case.
A vulnerability in the Linux kernel's SCSI target TCM loop module could lead to a name leak. This issue arises in the 'tcm_loop_setup_hba_bus()' function, where the 'device_register()' failure does not properly free the name assigned by 'dev_set_name()'. The error handling needs to be improved by calling 'put_device()' to release the reference, allowing the name to be cleaned up correctly. The vulnerability could potentially expose internal device names, causing unintended information disclosure.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/28f7ff5e7559d226e63c7c5de74eb075a83d8c53 | kernel.org | Patch |
| https://git.kernel.org/stable/c/41a6b8b527a5957fab41c3c05e25ad125268e2e9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/75205f1b47a88c3fac4f30bd7567e89b2887c7fd | kernel.org | Patch |
| https://git.kernel.org/stable/c/a636772988bafab89278e7bb3420d8e8eacfe912 | kernel.org | Patch |
| https://git.kernel.org/stable/c/bc68e428d4963af0201e92159629ab96948f0893 | kernel.org | Patch |
| https://git.kernel.org/stable/c/dce0589a3faec9e2e543e97bca7e62592ec85585 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 2.6.39, < 4.19.267 >= 4.20, < 5.4.225 >= 5.5, < 5.10.156 >= 5.11, < 5.15.80 >= 5.16, < 6.0.10 6.1 rc1 6.1 rc2 6.1 rc3 6.1 rc4 6.1 rc5 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Modified | kernel.org |
| Nov 5, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 7, 2025 | Initial Analysis | [email protected] |
| May 1, 2025 | New CVE Received | kernel.org |