CVE-2023-53358 ksmbd: fix racy issue under cocurrent smb2 tree disconnect

High 8.8 Published Updated

A use-after-free vulnerability in the Linux kernel's ksmbd module allows attackers to execute arbitrary code or escalate privileges via concurrent SMB2 tree disconnects.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-53358?

CVE-2023-53358 is a high-severity use after free vulnerability in Linux kernel, published on 17 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix racy issue under cocurrent smb2 tree disconnect

There is UAF issue under cocurrent smb2 tree disconnect. This patch introduce TREE_CONN_EXPIRE flags for tcon to avoid cocurrent access.

Weakness: CWE-416

Which versions are affected by CVE-2023-53358?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53358?

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-53358 being exploited?

There is no known exploitation of CVE-2023-53358 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53358, DEBIAN-CVE-2023-53358, GHSA-j8wr-29h3-4xqr, UBUNTU-CVE-2023-53358.

Is CVE-2023-53358 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free