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

0.0 CVSS

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().

Classification

CVE ID: CVE-2024-46742

CVSS Base Severity: LOW

CVSS Base Score: 0.0

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.06% (scored less or equal to compared to others)

EPSS Date: 2025-02-03 (when was this score calculated)

References

https://git.kernel.org/stable/c/07f384c5be1f8633b13f0a22616e227570450bc6
https://git.kernel.org/stable/c/3b692794b81f2ecad69a4adbba687f3836824ada
https://git.kernel.org/stable/c/4e8771a3666c8f216eefd6bd2fd50121c6c437db

Timeline