# CVE-2024-46795: ksmbd: unset the binding mark of a reused connection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.39% (percentile 25, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-09-18T07:12:50.259Z
- **Modified:** 2026-06-17T07:55:56.980Z

## Who should check

- Anyone running Linux \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 9914f1bd61d5e838bb1ab15a71076d37a6db65d1; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 93d54a4b59c4b3d803d20aa645ab5ca71f3b3b02; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 41bc256da7e47b679df87c7fc7a5b393052b9cce; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 4c8496f44f5bb5c06cdef5eb130ab259643392a1; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 78c5a6f1f630172b19af4912e755e1da93ef0ab5
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: unset the binding mark of a reused connection

Steve French reported null pointer dereference error from sha256 lib.
cifs.ko can send session setup requests on reused connection.
If reused connection is used for binding session, conn-\>binding can
still remain true and generate\_preauth\_hash() will not set
sess-\>Preauth\_HashValue and it will be NULL.
It is used as a material to create an encryption key in
ksmbd\_gen\_smb311\_encryptionkey. -\>Preauth\_HashValue cause null pointer
dereference error from crypto\_shash\_update().

BUG: kernel NULL pointer dereference, address: 0000000000000000
\#PF: supervisor read access in kernel mode
\#PF: error\_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: 0000 \[\#1\] PREEMPT SMP PTI
CPU: 8 PID: 429254 Comm: kworker/8:39
Hardware name: LENOVO 20MAS08500/20MAS08500, BIOS N2CET69W (1.52 )
Workqueue: ksmbd-io handle\_ksmbd\_work \[ksmbd\]
RIP: 0010:lib\_sha256\_base\_do\_update.isra.0+0x11e/0x1d0 \[sha256\_ssse3\]
\<TASK\>
? show\_regs+0x6d/0x80
? \_\_die+0x24/0x80
? page\_fault\_oops+0x99/0x1b0
? do\_user\_addr\_fault+0x2ee/0x6b0
? exc\_page\_fault+0x83/0x1b0
? asm\_exc\_page\_fault+0x27/0x30
? \_\_pfx\_sha256\_transform\_rorx+0x10/0x10 \[sha256\_ssse3\]
? lib\_sha256\_base\_do\_update.isra.0+0x11e/0x1d0 \[sha256\_ssse3\]
? \_\_pfx\_sha256\_transform\_rorx+0x10/0x10 \[sha256\_ssse3\]
? \_\_pfx\_sha256\_transform\_rorx+0x10/0x10 \[sha256\_ssse3\]
\_sha256\_update+0x77/0xa0 \[sha256\_ssse3\]
sha256\_avx2\_update+0x15/0x30 \[sha256\_ssse3\]
crypto\_shash\_update+0x1e/0x40
hmac\_update+0x12/0x20
crypto\_shash\_update+0x1e/0x40
generate\_key+0x234/0x380 \[ksmbd\]
generate\_smb3encryptionkey+0x40/0x1c0 \[ksmbd\]
ksmbd\_gen\_smb311\_encryptionkey+0x72/0xa0 \[ksmbd\]
ntlm\_authenticate.isra.0+0x423/0x5d0 \[ksmbd\]
smb2\_sess\_setup+0x952/0xaa0 \[ksmbd\]
\_\_process\_request+0xa3/0x1d0 \[ksmbd\]
\_\_handle\_ksmbd\_work+0x1c4/0x2f0 \[ksmbd\]
handle\_ksmbd\_work+0x2d/0xa0 \[ksmbd\]
process\_one\_work+0x16c/0x350
worker\_thread+0x306/0x440
? \_\_pfx\_worker\_thread+0x10/0x10
kthread+0xef/0x120
? \_\_pfx\_kthread+0x10/0x10
ret\_from\_fork+0x44/0x70
? \_\_pfx\_kthread+0x10/0x10
ret\_from\_fork\_asm+0x1b/0x30
\</TASK\>

## Affected and fixed versions

- Linux: \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 9914f1bd61d5e838bb1ab15a71076d37a6db65d1; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 93d54a4b59c4b3d803d20aa645ab5ca71f3b3b02; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 41bc256da7e47b679df87c7fc7a5b393052b9cce; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 4c8496f44f5bb5c06cdef5eb130ab259643392a1; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 78c5a6f1f630172b19af4912e755e1da93ef0ab5 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 78c5a6f1f630172b19af4912e755e1da93ef0ab5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-46795. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46795.md
Affected: Linux >= f5a544e3bab78142207e0242d22442db85ba1eff, < 9914f1bd61d5e838bb1ab15a71076d37a6db65d1; >= f5a544e3bab78142207e0242d22442db85ba1eff, < 93d54a4b59c4b3d803d20aa645ab5ca71f3b3b02; >= f5a544e3bab78142207e0242d22442db85ba1eff, < 41bc256da7e47b679df87c7fc7a5b393052b9cce; >= f5a544e3bab78142207e024…
Fixed in: Linux 9914f1bd61d5e838bb1ab15a71076d37a6db65d1, Linux 93d54a4b59c4b3d803d20aa645ab5ca71f3b3b02, Linux 41bc256da7e47b679df87c7fc7a5b393052b9cce, Linux 4c8496f44f5bb5c06cdef5eb130ab259643392a1, Linux 78c5a6f1f630172b19af4912e755e1da93ef0ab5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-46795 being exploited?

There is no confirmed exploitation: CVE-2024-46795 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-46795?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-46795?

Linux \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 9914f1bd61d5e838bb1ab15a71076d37a6db65d1; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 93d54a4b59c4b3d803d20aa645ab5ca71f3b3b02; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 41bc256da7e47b679df87c7fc7a5b393052b9cce; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 4c8496f44f5bb5c06cdef5eb130ab259643392a1; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 78c5a6f1f630172b19af4912e755e1da93ef0ab5; Linux 5.15.

### Is there a fix for CVE-2024-46795?

Yes. Fixed in Linux 9914f1bd61d5e838bb1ab15a71076d37a6db65d1, Linux 93d54a4b59c4b3d803d20aa645ab5ca71f3b3b02, Linux 41bc256da7e47b679df87c7fc7a5b393052b9cce, Linux 4c8496f44f5bb5c06cdef5eb130ab259643392a1, Linux 78c5a6f1f630172b19af4912e755e1da93ef0ab5. Upgrade Linux to 78c5a6f1f630172b19af4912e755e1da93ef0ab5 or later.

### How do I check if I'm affected by CVE-2024-46795?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9914f1bd61d5e838bb1ab15a71076d37a6db65d1>
- patch: <https://git.kernel.org/stable/c/93d54a4b59c4b3d803d20aa645ab5ca71f3b3b02>
- patch: <https://git.kernel.org/stable/c/41bc256da7e47b679df87c7fc7a5b393052b9cce>
- patch: <https://git.kernel.org/stable/c/4c8496f44f5bb5c06cdef5eb130ab259643392a1>
- patch: <https://git.kernel.org/stable/c/78c5a6f1f630172b19af4912e755e1da93ef0ab5>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-46795>

HTML: <https://flawdb.com/CVE-2024-46795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-46795>
