CVE-2025-21967 ksmbd: fix use-after-free in ksmbd_free_work_struct

High 8.8 Published Updated

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

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-2025-21967?

CVE-2025-21967 is a high-severity use after free vulnerability in Linux kernel, published on 1 Apr 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 use-after-free in ksmbd_free_work_struct

->interim_entry of ksmbd_work could be deleted after oplock is freed. We don't need to manage it with linked list. The interim request could be immediately sent whenever a oplock break wait is needed.

Weakness: CWE-416

Which versions are affected by CVE-2025-21967?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-21967?

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-2025-21967 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-21967, DEBIAN-CVE-2025-21967, GHSA-p3jf-39f4-gqr8, ROOT-OS-DEBIAN-12-CVE-2025-21967, ROOT-OS-UBUNTU-2204-CVE-2025-21967, ROOT-OS-UBUNTU-2404-CVE-2025-21967 and 1 more.

Is CVE-2025-21967 in your software?

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

Check your SBOMs for free