CVE-2024-46742 smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel SMB server can cause a denial of service when processing specific lease requests.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-46742?

CVE-2024-46742 is a medium-severity vulnerability in Linux kernel, published on 18 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()

null-ptr-deref will occur when (req_op_level == SMB2_OPLOCK_LEVEL_LEASE) and parse_lease_state() return NULL.

Fix this by check if 'lease_ctx_info' is NULL.

Additionally, remove the redundant parentheses in parse_durable_handle_context().

Weakness: CWE-476

Which versions are affected by CVE-2024-46742?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46742?

Apply the vendor's patch.

Is CVE-2024-46742 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-49421, BELL-CVE-2024-46742, DEBIAN-CVE-2024-46742, GHSA-c922-2344-3839, ROOT-OS-UBUNTU-2204-CVE-2024-46742, ROOT-OS-UBUNTU-2404-CVE-2024-46742 and 1 more.

Is CVE-2024-46742 in your software?

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

Check your SBOMs for free