Skip to main content
Network Thinking Solutions Logo

CVE-2022-49780

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.

All CVEs
CVE-2022-49780Published 5/1/2025

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.

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
5/1/2025
Last modified
11/5/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 2.6.39, < 4.19.267

Verify advisory

Source
linux kernel
linux
≥ 4.20, < 5.4.225

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.156

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.80

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.0.10

Verify advisory

Source
linux kernel
linux
6.1

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 3703b2c5d041a68095cdd22380c23ce27d449ad7, < 41a6b8b527a5957fab41c3c05e25ad125268e2e9

Verify advisory

Source
Linux
Linux
≥ 3703b2c5d041a68095cdd22380c23ce27d449ad7, < 28f7ff5e7559d226e63c7c5de74eb075a83d8c53

Verify advisory

Source
Linux
Linux
≥ 3703b2c5d041a68095cdd22380c23ce27d449ad7, < 75205f1b47a88c3fac4f30bd7567e89b2887c7fd

Verify advisory

Source
Linux
Linux
≥ 3703b2c5d041a68095cdd22380c23ce27d449ad7, < a636772988bafab89278e7bb3420d8e8eacfe912

Verify advisory

Source
Linux
Linux
≥ 3703b2c5d041a68095cdd22380c23ce27d449ad7, < dce0589a3faec9e2e543e97bca7e62592ec85585

Verify advisory

Source
Linux
Linux
≥ 3703b2c5d041a68095cdd22380c23ce27d449ad7, < bc68e428d4963af0201e92159629ab96948f0893

Verify advisory

Source
Linux
Linux
2.6.39

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.