CVE-2025-38437 ksmbd: fix potential use-after-free in oplock/lease break ack

High 8.8 Published Updated

A use-after-free vulnerability in the Linux kernel's ksmbd module allows attackers to potentially execute code or escalate privileges via crafted oplock/lease break acknowledgments.

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

CVE-2025-38437 is a high-severity use after free vulnerability in Debian Debian Linux, published on 25 Jul 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 potential use-after-free in oplock/lease break ack

If ksmbd_iov_pin_rsp return error, use-after-free can happen by accessing opinfo->state and opinfo_put and ksmbd_fd_put could called twice.

Weakness: CWE-416

Which versions are affected by CVE-2025-38437?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-38437?

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

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

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-65702, BELL-CVE-2025-38437, DEBIAN-CVE-2025-38437, GHSA-c6c4-gfjc-9wrj, ROOT-OS-DEBIAN-12-CVE-2025-38437, ROOT-OS-UBUNTU-2204-CVE-2025-38437 and 2 more.

Is CVE-2025-38437 in your software?

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

Check your SBOMs for free