smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()
CVE-2024-46742
What is CVE-2024-46742?
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().

Human OS v1.0:
Ageing Is an Unpatched Zero-Day Vulnerability.
Remediate biological technical debt. Prime Ageing uses 95% high-purity SIRT6 activation to maintain genomic integrity and bolster systemic resilience.
Affected Version(s)
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf < 878f32878351104448b86ef5b85d1f8ed6f599fb
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf
Linux 0626e6641f6b467447c81dd7678a69c66f7746cf < 07f384c5be1f8633b13f0a22616e227570450bc6
References
CVSS V3.1
Timeline
Vulnerability published
Vulnerability Reserved