{"id":"CVE-2024-46742","summary":"smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open()\n\nnull-ptr-deref will occur when (req_op_level == SMB2_OPLOCK_LEVEL_LEASE)\nand parse_lease_state() return NULL.\n\nFix this by check if 'lease_ctx_info' is NULL.\n\nAdditionally, remove the redundant parentheses in\nparse_durable_handle_context().","modified":"2026-04-16T04:43:56.501504095Z","published":"2024-09-18T07:12:03.251Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46742.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/07f384c5be1f8633b13f0a22616e227570450bc6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3b692794b81f2ecad69a4adbba687f3836824ada"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4e8771a3666c8f216eefd6bd2fd50121c6c437db"},{"type":"WEB","url":"https://git.kernel.org/stable/c/878f32878351104448b86ef5b85d1f8ed6f599fb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ec28c35029b7930f31117f9284874b63bea4f31b"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46742.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46742"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"878f32878351104448b86ef5b85d1f8ed6f599fb"},{"fixed":"ec28c35029b7930f31117f9284874b63bea4f31b"},{"fixed":"07f384c5be1f8633b13f0a22616e227570450bc6"},{"fixed":"3b692794b81f2ecad69a4adbba687f3836824ada"},{"fixed":"4e8771a3666c8f216eefd6bd2fd50121c6c437db"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-46742.json"}}],"schema_version":"1.7.5"}