{"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-05-15T11:53:36.939782370Z","published":"2024-09-18T07:12:03.251Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46742.json"},"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":[{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.181"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.135"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.51"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.10.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46742.json"}}],"schema_version":"1.7.5"}