CVE-2023-52757
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
21/05/2024
Last modified:
25/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
smb: client: fix potential deadlock when releasing mids<br />
<br />
All release_mid() callers seem to hold a reference of @mid so there is<br />
no need to call kref_put(&mid->refcount, __release_mid) under<br />
@server->mid_lock spinlock. If they don&#39;t, then an use-after-free bug<br />
would have occurred anyways.<br />
<br />
By getting rid of such spinlock also fixes a potential deadlock as<br />
shown below<br />
<br />
CPU 0 CPU 1<br />
------------------------------------------------------------------<br />
cifs_demultiplex_thread() cifs_debug_data_proc_show()<br />
release_mid()<br />
spin_lock(&server->mid_lock);<br />
spin_lock(&cifs_tcp_ses_lock)<br />
spin_lock(&server->mid_lock)<br />
__release_mid()<br />
smb2_find_smb_tcon()<br />
spin_lock(&cifs_tcp_ses_lock) *deadlock*
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.10.237 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.181 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.64 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.5.13 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6 (including) | 6.6.3 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/99f476e27aad5964ab13777d84fda67d1356dec1
- https://git.kernel.org/stable/c/9eb44db68c5b7f5aa22b8fc7de74a3e2e08d1f29
- https://git.kernel.org/stable/c/b9bb9607b1fc12fca51f5632da25b36975f599bf
- https://git.kernel.org/stable/c/c1a5962f1462b64fe7b69f20a4b6af8067bc2d26
- https://git.kernel.org/stable/c/ce49569079a9d4cad26c0f1d4653382fd9a5ca7a
- https://git.kernel.org/stable/c/e6322fd177c6885a21dd4609dc5e5c973d1a2eb7
- https://git.kernel.org/stable/c/9eb44db68c5b7f5aa22b8fc7de74a3e2e08d1f29
- https://git.kernel.org/stable/c/b9bb9607b1fc12fca51f5632da25b36975f599bf
- https://git.kernel.org/stable/c/c1a5962f1462b64fe7b69f20a4b6af8067bc2d26
- https://git.kernel.org/stable/c/e6322fd177c6885a21dd4609dc5e5c973d1a2eb7
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html



