CVE-2024-56627 ksmbd: fix Out-of-Bounds Read in ksmbd_vfs_stream_read

High 8.1 Published Updated

A negative offset in ksmbd stream reads causes out-of-bounds memory access, potentially leaking data or crashing the system.

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

CVE-2024-56627 is a high-severity memory corruption vulnerability in Linux kernel, published on 27 Dec 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 Out-of-Bounds Read in ksmbd_vfs_stream_read

An offset from client could be a negative value, It could lead to an out-of-bounds read from the stream_buf. Note that this issue is coming when setting 'vfs objects = streams_xattr parameter' in ksmbd.conf.

Weakness: CWE-125

Which versions are affected by CVE-2024-56627?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-56627?

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

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-56627, DEBIAN-CVE-2024-56627, GHSA-7822-7h76-h235, UBUNTU-CVE-2024-56627.

Is CVE-2024-56627 in your software?

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

Check your SBOMs for free