CVE-2024-44992 smb/client: avoid possible NULL dereference in cifs_free_subrequest()

High 7.5 Published Updated

A null pointer dereference in the Linux kernel SMB client can cause a system crash, requiring a kernel patch to prevent denial of service.

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

What is CVE-2024-44992?

CVE-2024-44992 is a high-severity vulnerability in Linux kernel, published on 4 Sep 2024. 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:

smb/client: avoid possible NULL dereference in cifs_free_subrequest()

Clang static checker (scan-build) warning: cifsglob.h:line 890, column 3 Access to field 'ops' results in a dereference of a null pointer.

Commit 519be989717c ("cifs: Add a tracepoint to track credits involved in R/W requests") adds a check for 'rdata->server', and let clang throw this warning about NULL dereference.

When 'rdata->credits.value != 0 && rdata->server == NULL' happens, add_credits_and_wake_if() will call rdata->server->ops->add_credits(). This will cause NULL dereference problem. Add a check for 'rdata->server' to avoid NULL dereference.

Weakness: CWE-476

Which versions are affected by CVE-2024-44992?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-44992?

Apply the vendor's patch.

Is CVE-2024-44992 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-44992, DEBIAN-CVE-2024-44992, GHSA-53cv-6gxv-7335, UBUNTU-CVE-2024-44992.

Is CVE-2024-44992 in your software?

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

Check your SBOMs for free