CVE-2023-52757
smb: client: fix potential deadlock when releasing mids
Check your servers for CVE-2023-52757
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-52757 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:
smb: client: fix potential deadlock when releasing mids
All release_mid() callers seem to hold a reference of @mid so there is no need to call kref_put(&mid->refcount, __release_mid) under @server->mid_lock spinlock. If they don't, then an use-after-free bug would have occurred anyways.
By getting rid of such spinlock also fixes a potential deadlock as shown below
CPU 0 CPU 1 ------------------------------------------------------------------ cifs_demultiplex_thread() cifs_debug_data_proc_show() release_mid() spin_lock(&server->mid_lock); spin_lock(&cifs_tcp_ses_lock) spin_lock(&server->mid_lock) __release_mid() smb2_find_smb_tcon() spin_lock(&cifs_tcp_ses_lock) *deadlock*
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.64% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 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 7b71843fa7028475b052107664cbe120156a2cfc, before 99f476e27aad5964ab13777d84fda67d1356dec1 affected from 7b71843fa7028475b052107664cbe120156a2cfc, before ce49569079a9d4cad26c0f1d4653382fd9a5ca7a affected from 7b71843fa7028475b052107664cbe120156a2cfc, before 9eb44db68c5b7f5aa22b8fc7de74a3e2e08d1f29 affected from 7b71843fa7028475b052107664cbe120156a2cfc, before b9bb9607b1fc12fca51f5632da25b36975f599bf affected from 7b71843fa7028475b052107664cbe120156a2cfc, before c1a5962f1462b64fe7b69f20a4b6af8067bc2d26 affected from 7b71843fa7028475b052107664cbe120156a2cfc, before e6322fd177c6885a21dd4609dc5e5c973d1a2eb7 affected 9871dea42034ee6e73bb2b97ba0284d3d462b230 affected from 5.4.6, before 5.5
Other versions: unaffected
|
| Linux |
affected 5.5 unaffected before 5.5 unaffected from 5.10.237 up to and including 5.10.* unaffected from 5.15.181 up to and including 5.15.* unaffected from 6.1.64 up to and including 6.1.* unaffected from 6.5.13 up to and including 6.5.* unaffected from 6.6.3 up to and including 6.6.* unaffected 6.7 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-52757 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52757
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-52757
trivy image --scanners vuln IMAGE | grep CVE-2023-52757
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/99f476e27aad5964ab13777d84fda67d1356dec1 git.kernel.org
- https://git.kernel.org/stable/c/ce49569079a9d4cad26c0f1d4653382fd9a5ca7a git.kernel.org
- https://git.kernel.org/stable/c/9eb44db68c5b7f5aa22b8fc7de74a3e2e08d1f29 git.kernel.org
- https://git.kernel.org/stable/c/b9bb9607b1fc12fca51f5632da25b36975f599bf git.kernel.org
- https://git.kernel.org/stable/c/c1a5962f1462b64fe7b69f20a4b6af8067bc2d26 git.kernel.org
- https://git.kernel.org/stable/c/e6322fd177c6885a21dd4609dc5e5c973d1a2eb7 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
Source: the record CVE-2023-52757 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