What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.10.10, 6.6.51. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-46742 or the next vulnerability affects your stack