CVE-2024-50286 ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create

Critical 9.8 Published Updated

A race condition in the Linux kernel ksmbd module allows a use-after-free, potentially enabling code execution or privilege escalation.

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

CVE-2024-50286 is a critical use after free vulnerability in Linux kernel, published on 19 Nov 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: fix slab-use-after-free in ksmbd_smb2_session_create

There is a race condition between ksmbd_smb2_session_create and ksmbd_expire_session. This patch add missing sessions_table_lock while adding/deleting session from global session table.

Weakness: CWE-416

Which versions are affected by CVE-2024-50286?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50286?

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-2024-50286 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-50286, DEBIAN-CVE-2024-50286, GHSA-jh47-c26g-fr5q, ROOT-OS-UBUNTU-2204-CVE-2024-50286, UBUNTU-CVE-2024-50286.

Is CVE-2024-50286 in your software?

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

Check your SBOMs for free