CVE-2024-26952 ksmbd: fix potencial out-of-bounds when buffer offset is invalid

High 8.3 Published Updated

An out-of-bounds memory access in the ksmbd kernel module allows attackers to potentially execute code or cause a system crash.

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-2024-26952?

CVE-2024-26952 is a high-severity memory corruption vulnerability in Linux kernel, published on 1 May 2024. 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 potencial out-of-bounds when buffer offset is invalid

I found potencial out-of-bounds when buffer offset fields of a few requests is invalid. This patch set the minimum value of buffer offset field to ->Buffer offset to validate buffer length.

Weakness: CWE-120, CWE-125

Which versions are affected by CVE-2024-26952?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26952?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-26952 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-42175, AZL-42207, BELL-CVE-2024-26952, DEBIAN-CVE-2024-26952, GHSA-7qch-65fq-c3xh, UBUNTU-CVE-2024-26952.

Is CVE-2024-26952 in your software?

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

Check your SBOMs for free