5.5medium
smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.26% (higher than 19% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before 878f32878351104448b86ef5b85d1f8ed6f599fb, from 0626e6641f6b467447c81dd7678a69c66f7746cf before ec28c35029b7930f31117f9284874b63bea4f31b, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 07f384c5be1f8633b13f0a22616e227570450bc6, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3b692794b81f2ecad69a4adbba687f3836824ada, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 4e8771a3666c8f216eefd6bd2fd50121c6c437db, 5.15 Not affected: before 5.15, from 5.15.181 up to 5.15.*, from 6.1.135 up to 6.1.*, from 6.6.51 up to 6.6.*, from 6.10.10 up to 6.10.*, from 6.11 up to * | CVE List |
| linux linux_kernel | before 6.6.51, from 6.7 before 6.10.10, 6.11 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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().
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: smb/server: se corrige la posible eliminación de referencia nula de lease_ctx_info en smb2_open(). La eliminación de referencia nula de lease_ctx_info ocurrirá cuando (req_op_level == SMB2_OPLOCK_LEVEL_LEASE) y parse_lease_state() devuelvan NULL. Corrija esto verificando si 'lease_ctx_info' es NULL. Además, elimine los paréntesis redundantes en parse_durable_handle_context().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-46742 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-46742 changed 2026-06-17 | Public domain |