CVE-2023-32246 ksmbd: call rcu_barrier() in ksmbd_server_exit()

Medium 5.5 Published Updated

A race condition in the Linux kernel ksmbd module allows local attackers to execute arbitrary code and bypass Kernel Lockdown protections.

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-32246?

CVE-2023-32246 is a medium-severity vulnerability in Linux kernel, published on 16 Aug 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:

ksmbd: call rcu_barrier() in ksmbd_server_exit()

racy issue is triggered the bug by racing between closing a connection and rmmod. In ksmbd, rcu_barrier() is not called at module unload time, so nothing prevents ksmbd from getting unloaded while it still has RCU callbacks pending. It leads to trigger unintended execution of kernel code locally and use to defeat protections such as Kernel Lockdown

Which versions are affected by CVE-2023-32246?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-32246?

Apply the vendor's patch.

Is CVE-2023-32246 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-32246, DEBIAN-CVE-2023-32246, GHSA-75h4-6q93-6c34, ROOT-OS-DEBIAN-11-CVE-2023-32246, UBUNTU-CVE-2023-32246.

Is CVE-2023-32246 in your software?

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

Check your SBOMs for free