CVE-2024-49988 ksmbd: add refcnt to ksmbd_conn struct

High 8.8 Published Updated

A use-after-free vulnerability in the Linux kernel's ksmbd SMB server allows attackers to cause denial of service or execute arbitrary code via multichannel oplock break requests.

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

CVE-2024-49988 is a high-severity use after free vulnerability in Linux kernel, published on 21 Oct 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: add refcnt to ksmbd_conn struct

When sending an oplock break request, opinfo->conn is used, But freed ->conn can be used on multichannel. This patch add a reference count to the ksmbd_conn struct so that it can be freed when it is no longer used.

Weakness: CWE-416

Which versions are affected by CVE-2024-49988?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-49988?

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

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-51771, BELL-CVE-2024-49988, DEBIAN-CVE-2024-49988, GHSA-94p2-m4qf-5m97, ROOT-OS-DEBIAN-12-CVE-2024-49988, ROOT-OS-UBUNTU-2204-CVE-2024-49988 and 1 more.

Is CVE-2024-49988 in your software?

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

Check your SBOMs for free