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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2024-09-18T07:12:03.251Z
- Modified: 2026-06-17T07:55:50.400Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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().

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: before 6.6.51; from 6.7 before 6.10.10; 6.11

## References

- <https://git.kernel.org/stable/c/878f32878351104448b86ef5b85d1f8ed6f599fb>
- <https://git.kernel.org/stable/c/ec28c35029b7930f31117f9284874b63bea4f31b>
- <https://git.kernel.org/stable/c/07f384c5be1f8633b13f0a22616e227570450bc6> (patch)
- <https://git.kernel.org/stable/c/3b692794b81f2ecad69a4adbba687f3836824ada> (patch)
- <https://git.kernel.org/stable/c/4e8771a3666c8f216eefd6bd2fd50121c6c437db> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2024-46742](https://www.cve.org/CVERecord?id=CVE-2024-46742), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-46742](https://nvd.nist.gov/vuln/detail/CVE-2024-46742), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-46742 · Whole record: https://cve.day/CVE-2024-46742.json · Rebuilt by cve.day 2026-11-25T22:58:45.549Z
