CVE-2025-37924 ksmbd: fix use-after-free in kerberos authentication

Critical 9.8 Published Updated

A use-after-free flaw in the Linux kernel's ksmbd module allows attackers to potentially execute code or escalate privileges via Kerberos authentication.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-37924?

CVE-2025-37924 is a critical use after free vulnerability in Debian Debian Linux, published on 20 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

ksmbd: fix use-after-free in kerberos authentication

Setting sess->user = NULL was introduced to fix the dangling pointer created by ksmbd_free_user. However, it is possible another thread could be operating on the session and make use of sess->user after it has been passed to ksmbd_free_user but before sess->user is set to NULL.

Weakness: CWE-416

Which versions are affected by CVE-2025-37924?

It affects 2 products.

Products include Debian Debian Linux, Linux kernel.

How do I fix CVE-2025-37924?

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

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

All Debian Debian Linux vulnerabilities

Sources

Also known as BELL-CVE-2025-37924, DEBIAN-CVE-2025-37924, GHSA-3x67-44wh-mrgf, ROOT-OS-DEBIAN-12-CVE-2025-37924, ROOT-OS-UBUNTU-2204-CVE-2025-37924, ROOT-OS-UBUNTU-2404-CVE-2025-37924 and 1 more.

Is CVE-2025-37924 in your software?

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

Check your SBOMs for free