CVE-2023-52757 smb: client: fix potential deadlock when releasing mids
A race condition in the Linux kernel SMB client can cause a deadlock, leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52757?
CVE-2023-52757 is a high-severity vulnerability in Debian Debian Linux, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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*
Which versions are affected by CVE-2023-52757?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2023-52757?
Apply the vendor's patch.
Is CVE-2023-52757 being exploited?
There is no known exploitation of CVE-2023-52757 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-54774, BELL-CVE-2023-52757, DEBIAN-CVE-2023-52757, GHSA-jp9q-c7f4-2fxf, ROOT-OS-UBUNTU-2204-CVE-2023-52757, UBUNTU-CVE-2023-52757.