# CVE-2024-53185: smb: client: fix NULL ptr deref in crypto\_aead\_setkey()

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.63% (percentile 44, 2026-11-26)
- **CWE:** CWE-476, CWE-416
- **Published:** 2024-12-27T13:49:28.304Z
- **Modified:** 2026-08-05T11:44:28.415Z

## Who should check

- Anyone running Linux \>= 8f14a476abba13144df5434871a7225fd29af633, \< 92c5b62879073b489793a067dbe8d4f2728cdcad; \>= ef51c0d544b1518b35364480317ab6d3468f205d, \< 4a788ebbb10db9da453d52eaf44a41c13dc446df; \>= bce966530fd5542bbb422cb45ecb775f7a1a6bc3, \< 44c495818d9c4a741ab9e6bc9203ccc9f55f6f40; \>= 0809fb86ad13b29e1d6d491364fc7ea4fb545995, \< 46f8e25926817272ec8d5bfbd003569bdeb9a8c8; \>= 538c26d9bf70c90edc460d18c81008a4e555925a, \< 22127c1dc04364cda3da812161e70921e6c3c0af; \>= b0abcd65ec545701b8793e12bc27dc98042b151a, \< 9b8904b53b5ace0519c74cd89fc3ca763f3856d4; \>= b0abcd65ec545701b8793e12bc27dc98042b151a, \< 4bdec0d1f658f7c98749bd2c5a486e6cfa8565d2; \>= 6.6.57, \< 6.6.64; \>= 6.11.4, \< 6.11.11
- Anyone running Linux 6.12

## Description

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

smb: client: fix NULL ptr deref in crypto\_aead\_setkey()

Neither SMB3.0 or SMB3.02 supports encryption negotiate context, so
when SMB2\_GLOBAL\_CAP\_ENCRYPTION flag is set in the negotiate response,
the client uses AES-128-CCM as the default cipher.  See MS-SMB2
3.3.5.4.

Commit b0abcd65ec54 ("smb: client: fix UAF in async decryption") added
a @server-\>cipher\_type check to conditionally call
smb3\_crypto\_aead\_allocate(), but that check would always be false as
@server-\>cipher\_type is unset for SMB3.02.

Fix the following KASAN splat by setting @server-\>cipher\_type for
SMB3.02 as well.

mount.cifs //srv/share /mnt -o vers=3.02,seal,...

BUG: KASAN: null-ptr-deref in crypto\_aead\_setkey+0x2c/0x130
Read of size 8 at addr 0000000000000020 by task mount.cifs/1095
CPU: 1 UID: 0 PID: 1095 Comm: mount.cifs Not tainted 6.12.0 \#1
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-3.fc41
04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x5d/0x80
 ? crypto\_aead\_setkey+0x2c/0x130
 kasan\_report+0xda/0x110
 ? crypto\_aead\_setkey+0x2c/0x130
 crypto\_aead\_setkey+0x2c/0x130
 crypt\_message+0x258/0xec0 \[cifs\]
 ? \_\_asan\_memset+0x23/0x50
 ? \_\_pfx\_crypt\_message+0x10/0x10 \[cifs\]
 ? mark\_lock+0xb0/0x6a0
 ? hlock\_class+0x32/0xb0
 ? mark\_lock+0xb0/0x6a0
 smb3\_init\_transform\_rq+0x352/0x3f0 \[cifs\]
 ? lock\_acquire.part.0+0xf4/0x2a0
 smb\_send\_rqst+0x144/0x230 \[cifs\]
 ? \_\_pfx\_smb\_send\_rqst+0x10/0x10 \[cifs\]
 ? hlock\_class+0x32/0xb0
 ? smb2\_setup\_request+0x225/0x3a0 \[cifs\]
 ? \_\_pfx\_cifs\_compound\_last\_callback+0x10/0x10 \[cifs\]
 compound\_send\_recv+0x59b/0x1140 \[cifs\]
 ? \_\_pfx\_compound\_send\_recv+0x10/0x10 \[cifs\]
 ? \_\_create\_object+0x5e/0x90
 ? hlock\_class+0x32/0xb0
 ? do\_raw\_spin\_unlock+0x9a/0xf0
 cifs\_send\_recv+0x23/0x30 \[cifs\]
 SMB2\_tcon+0x3ec/0xb30 \[cifs\]
 ? \_\_pfx\_SMB2\_tcon+0x10/0x10 \[cifs\]
 ? lock\_acquire.part.0+0xf4/0x2a0
 ? \_\_pfx\_lock\_release+0x10/0x10
 ? do\_raw\_spin\_trylock+0xc6/0x120
 ? lock\_acquire+0x3f/0x90
 ? \_get\_xid+0x16/0xd0 \[cifs\]
 ? \_\_pfx\_SMB2\_tcon+0x10/0x10 \[cifs\]
 ? cifs\_get\_smb\_ses+0xcdd/0x10a0 \[cifs\]
 cifs\_get\_smb\_ses+0xcdd/0x10a0 \[cifs\]
 ? \_\_pfx\_cifs\_get\_smb\_ses+0x10/0x10 \[cifs\]
 ? cifs\_get\_tcp\_session+0xaa0/0xca0 \[cifs\]
 cifs\_mount\_get\_session+0x8a/0x210 \[cifs\]
 dfs\_mount\_share+0x1b0/0x11d0 \[cifs\]
 ? \_\_pfx\_\_\_lock\_acquire+0x10/0x10
 ? \_\_pfx\_dfs\_mount\_share+0x10/0x10 \[cifs\]
 ? lock\_acquire.part.0+0xf4/0x2a0
 ? find\_held\_lock+0x8a/0xa0
 ? hlock\_class+0x32/0xb0
 ? lock\_release+0x203/0x5d0
 cifs\_mount+0xb3/0x3d0 \[cifs\]
 ? do\_raw\_spin\_trylock+0xc6/0x120
 ? \_\_pfx\_cifs\_mount+0x10/0x10 \[cifs\]
 ? lock\_acquire+0x3f/0x90
 ? find\_nls+0x16/0xa0
 ? smb3\_update\_mnt\_flags+0x372/0x3b0 \[cifs\]
 cifs\_smb3\_do\_mount+0x1e2/0xc80 \[cifs\]
 ? \_\_pfx\_vfs\_parse\_fs\_string+0x10/0x10
 ? \_\_pfx\_cifs\_smb3\_do\_mount+0x10/0x10 \[cifs\]
 smb3\_get\_tree+0x1bf/0x330 \[cifs\]
 vfs\_get\_tree+0x4a/0x160
 path\_mount+0x3c1/0xfb0
 ? kasan\_quarantine\_put+0xc7/0x1d0
 ? \_\_pfx\_path\_mount+0x10/0x10
 ? kmem\_cache\_free+0x118/0x3e0
 ? user\_path\_at+0x74/0xa0
 \_\_x64\_sys\_mount+0x1a6/0x1e0
 ? \_\_pfx\_\_\_x64\_sys\_mount+0x10/0x10
 ? mark\_held\_locks+0x1a/0x90
 do\_syscall\_64+0xbb/0x1d0
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

## Affected and fixed versions

- Linux: \>= 8f14a476abba13144df5434871a7225fd29af633, \< 92c5b62879073b489793a067dbe8d4f2728cdcad; \>= ef51c0d544b1518b35364480317ab6d3468f205d, \< 4a788ebbb10db9da453d52eaf44a41c13dc446df; \>= bce966530fd5542bbb422cb45ecb775f7a1a6bc3, \< 44c495818d9c4a741ab9e6bc9203ccc9f55f6f40; \>= 0809fb86ad13b29e1d6d491364fc7ea4fb545995, \< 46f8e25926817272ec8d5bfbd003569bdeb9a8c8; \>= 538c26d9bf70c90edc460d18c81008a4e555925a, \< 22127c1dc04364cda3da812161e70921e6c3c0af; \>= b0abcd65ec545701b8793e12bc27dc98042b151a, \< 9b8904b53b5ace0519c74cd89fc3ca763f3856d4; \>= b0abcd65ec545701b8793e12bc27dc98042b151a, \< 4bdec0d1f658f7c98749bd2c5a486e6cfa8565d2; \>= 6.6.57, \< 6.6.64; \>= 6.11.4, \< 6.11.11 (cvelist)
- Linux: 6.12 (cvelist)

## Mitigation

- Upgrade Linux to 6.11.11 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-53185. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53185.md
Affected: Linux >= 8f14a476abba13144df5434871a7225fd29af633, < 92c5b62879073b489793a067dbe8d4f2728cdcad; >= ef51c0d544b1518b35364480317ab6d3468f205d, < 4a788ebbb10db9da453d52eaf44a41c13dc446df; >= bce966530fd5542bbb422cb45ecb775f7a1a6bc3, < 44c495818d9c4a741ab9e6bc9203ccc9f55f6f40; >= 0809fb86ad13b29e1d6d491…
Fixed in: Linux 92c5b62879073b489793a067dbe8d4f2728cdcad, Linux 4a788ebbb10db9da453d52eaf44a41c13dc446df, Linux 44c495818d9c4a741ab9e6bc9203ccc9f55f6f40, Linux 46f8e25926817272ec8d5bfbd003569bdeb9a8c8, Linux 22127c1dc04364cda3da812161e70921e6c3c0af, Linux 9b8904b53b5ace0519c74cd89fc3ca763f3856d4, Linux 4bdec…

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-53185 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 8f14a476abba13144df5434871a7225fd29af633, \< 92c5b62879073b489793a067dbe8d4f2728cdcad; \>= ef51c0d544b1518b35364480317ab6d3468f205d, \< 4a788ebbb10db9da453d52eaf44a41c13dc446df; \>= bce966530fd5542bbb422cb45ecb775f7a1a6bc3, \< 44c495818d9c4a741ab9e6bc9203ccc9f55f6f40; \>= 0809fb86ad13b29e1d6d491364fc7ea4fb545995, \< 46f8e25926817272ec8d5bfbd003569bdeb9a8c8; \>= 538c26d9bf70c90edc460d18c81008a4e555925a, \< 22127c1dc04364cda3da812161e70921e6c3c0af; \>= b0abcd65ec545701b8793e12bc27dc98042b151a, \< 9b8904b53b5ace0519c74cd89fc3ca763f3856d4; \>= b0abcd65ec545701b8793e12bc27dc98042b151a, \< 4bdec0d1f658f7c98749bd2c5a486e6cfa8565d2; \>= 6.6.57, \< 6.6.64; \>= 6.11.4, \< 6.11.11; Linux 6.12.

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

Yes. Fixed in Linux 92c5b62879073b489793a067dbe8d4f2728cdcad, Linux 4a788ebbb10db9da453d52eaf44a41c13dc446df, Linux 44c495818d9c4a741ab9e6bc9203ccc9f55f6f40, Linux 46f8e25926817272ec8d5bfbd003569bdeb9a8c8, Linux 22127c1dc04364cda3da812161e70921e6c3c0af, Linux 9b8904b53b5ace0519c74cd89fc3ca763f3856d4, Linux 4bdec0d1f658f7c98749bd2c5a486e6cfa8565d2, Linux 6.6.64, Linux 6.11.11. Upgrade Linux to 6.11.11 or later.

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

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/46f8e25926817272ec8d5bfbd003569bdeb9a8c8>
- patch: <https://git.kernel.org/stable/c/22127c1dc04364cda3da812161e70921e6c3c0af>
- patch: <https://git.kernel.org/stable/c/9b8904b53b5ace0519c74cd89fc3ca763f3856d4>
- patch: <https://git.kernel.org/stable/c/4bdec0d1f658f7c98749bd2c5a486e6cfa8565d2>
- other: <https://git.kernel.org/stable/c/92c5b62879073b489793a067dbe8d4f2728cdcad>
- other: <https://git.kernel.org/stable/c/4a788ebbb10db9da453d52eaf44a41c13dc446df>
- other: <https://git.kernel.org/stable/c/44c495818d9c4a741ab9e6bc9203ccc9f55f6f40>

## 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-53185>

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