CVE-2023-53377 cifs: prevent use-after-free by freeing the cfile later
A use-after-free vulnerability in the Linux kernel CIFS module allows attackers to cause system crashes or potentially execute arbitrary code.
- 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-53377?
CVE-2023-53377 is a high-severity use after free vulnerability in Linux kernel, published on 18 Sep 2025. 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:
cifs: prevent use-after-free by freeing the cfile later
In smb2_compound_op we have a possible use-after-free which can cause hard to debug problems later on.
This was revealed during stress testing with KASAN enabled kernel. Fixing it by moving the cfile free call to a few lines below, after the usage.
Weakness: CWE-416
Which versions are affected by CVE-2023-53377?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53377?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-53377 being exploited?
There is no known exploitation of CVE-2023-53377 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53377, DEBIAN-CVE-2023-53377, GHSA-2h3h-p2mp-rw5q, UBUNTU-CVE-2023-53377.