CVE-2024-26936 ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

High 8.2 Published Updated

An out-of-bounds write in the Linux kernel ksmbd module allows attackers to cause memory corruption, potentially leading to code execution or system crashes.

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

CVE-2024-26936 is a high-severity memory corruption vulnerability in Linux kernel, published on 1 May 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:

ksmbd: validate request buffer size in smb2_allocate_rsp_buf()

The response buffer should be allocated in smb2_allocate_rsp_buf before validating request. But the fields in payload as well as smb2 header is used in smb2_allocate_rsp_buf(). This patch add simple buffer size validation to avoid potencial out-of-bounds in request buffer.

Weakness: CWE-120

Which versions are affected by CVE-2024-26936?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26936?

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

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-26936, DEBIAN-CVE-2024-26936, GHSA-54v9-xvg8-m8r8, UBUNTU-CVE-2024-26936.

Is CVE-2024-26936 in your software?

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

Check your SBOMs for free