CVE-2023-52652
NTB: fix possible name leak in ntb_register_device()
Check your servers for CVE-2023-52652
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-2023-52652 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:
NTB: fix possible name leak in ntb_register_device()
If device_register() fails in ntb_register_device(), the device name allocated by dev_set_name() should be freed. As per the comment in device_register(), callers should use put_device() to give up the reference in the error path. So fix this by calling put_device() in the error path so that the name can be freed in kobject_cleanup().
As a result of this, put_device() in the error path of ntb_register_device() is removed and the actual error is returned.
[mani: reworded commit message]
Exploitation
EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 17 Jul 2024):
- 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 a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b, before a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06 affected from a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b, before 6632a54ac8057cc0b0d789c6f73883e871bcd25c affected from a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b, before a039690d323221eb5865f1f31db3ec264e7a14b6 affected from a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b, before e8025439ef8e16029dc313d78a351ef192469b7b affected from a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b, before 913421f9f7fd8324dcc41753d0f28b52e177ef04 affected from a1bd3baeb2f18b2b3d0f98ce5fdaa725149b950b, before aebfdfe39b9327a3077d0df8db3beb3160c9bdd0
Other versions: unaffected
|
| Linux |
affected 4.2 unaffected before 4.2 unaffected from 5.15.153 up to and including 5.15.* unaffected from 6.1.83 up to and including 6.1.* unaffected from 6.6.23 up to and including 6.6.* unaffected from 6.7.11 up to and including 6.7.* unaffected from 6.8.2 up to and including 6.8.* unaffected 6.9 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-2023-52652 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52652
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-2023-52652
trivy image --scanners vuln IMAGE | grep CVE-2023-52652
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/a62b9f3d7bbfac874cc0c638bc1776dcf1f8ec06 git.kernel.org
- https://git.kernel.org/stable/c/6632a54ac8057cc0b0d789c6f73883e871bcd25c git.kernel.org
- https://git.kernel.org/stable/c/a039690d323221eb5865f1f31db3ec264e7a14b6 git.kernel.org
- https://git.kernel.org/stable/c/e8025439ef8e16029dc313d78a351ef192469b7b git.kernel.org
- https://git.kernel.org/stable/c/913421f9f7fd8324dcc41753d0f28b52e177ef04 git.kernel.org
- https://git.kernel.org/stable/c/aebfdfe39b9327a3077d0df8db3beb3160c9bdd0 git.kernel.org
Source: the record CVE-2023-52652 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