CVE-2022-49780
scsi: target: tcm_loop: Fix possible name leak in tcm_loop_setup_hba_bus()
Check your servers for CVE-2022-49780
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49780 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3703b2c5d041a68095cdd22380c23ce27d449ad7, before 41a6b8b527a5957fab41c3c05e25ad125268e2e9 affected from 3703b2c5d041a68095cdd22380c23ce27d449ad7, before 28f7ff5e7559d226e63c7c5de74eb075a83d8c53 affected from 3703b2c5d041a68095cdd22380c23ce27d449ad7, before 75205f1b47a88c3fac4f30bd7567e89b2887c7fd affected from 3703b2c5d041a68095cdd22380c23ce27d449ad7, before a636772988bafab89278e7bb3420d8e8eacfe912 affected from 3703b2c5d041a68095cdd22380c23ce27d449ad7, before dce0589a3faec9e2e543e97bca7e62592ec85585 affected from 3703b2c5d041a68095cdd22380c23ce27d449ad7, before bc68e428d4963af0201e92159629ab96948f0893
Other versions: unaffected
|
| Linux |
affected 2.6.39 unaffected before 2.6.39 unaffected from 4.19.267 up to and including 4.19.* unaffected from 5.4.225 up to and including 5.4.* unaffected from 5.10.156 up to and including 5.10.* unaffected from 5.15.80 up to and including 5.15.* unaffected from 6.0.10 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49780 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49780
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49780
trivy image --scanners vuln IMAGE | grep CVE-2022-49780
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/41a6b8b527a5957fab41c3c05e25ad125268e2e9 git.kernel.org
- https://git.kernel.org/stable/c/28f7ff5e7559d226e63c7c5de74eb075a83d8c53 git.kernel.org
- https://git.kernel.org/stable/c/75205f1b47a88c3fac4f30bd7567e89b2887c7fd git.kernel.org
- https://git.kernel.org/stable/c/a636772988bafab89278e7bb3420d8e8eacfe912 git.kernel.org
- https://git.kernel.org/stable/c/dce0589a3faec9e2e543e97bca7e62592ec85585 git.kernel.org
- https://git.kernel.org/stable/c/bc68e428d4963af0201e92159629ab96948f0893 git.kernel.org
Source: the record CVE-2022-49780 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse