# CVE-2023-52434: smb: client: fix potential OOBs in smb2\_parse\_contexts()

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

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; 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:** 1.33% (percentile 71, 2026-11-26)
- **CWE:** CWE-119
- **Published:** 2024-02-20T18:04:44.006Z
- **Modified:** 2026-08-05T09:09:53.429Z

## Who should check

- Anyone running Linux \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 6726429c18c62dbf5e96ebbd522f262e016553fb; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 13fb0fc4917621f3dfa285a27eaf7151d770b5e5; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 890bc4fac3c0973a49cac35f634579bebba7fe48; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 1ae3c59355dc9882e09c020afe8ffbd895ad0f29; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 17a0f64cc02d4972e21c733d9f21d1c512963afa; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< af1689a9b7701d9907dfc84d2a4b57c4bc907144
- Anyone running Linux 3.7

## Description

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

smb: client: fix potential OOBs in smb2\_parse\_contexts()

Validate offsets and lengths before dereferencing create contexts in
smb2\_parse\_contexts().

This fixes following oops when accessing invalid create contexts from
server:

  BUG: unable to handle page fault for address: ffff8881178d8cc3
  \#PF: supervisor read access in kernel mode
  \#PF: error\_code(0x0000) - not-present page
  PGD 4a01067 P4D 4a01067 PUD 0
  Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
  CPU: 3 PID: 1736 Comm: mount.cifs Not tainted 6.7.0-rc4 \#1
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS
  rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014
  RIP: 0010:smb2\_parse\_contexts+0xa0/0x3a0 \[cifs\]
  Code: f8 10 75 13 48 b8 93 ad 25 50 9c b4 11 e7 49 39 06 0f 84 d2 00
  00 00 8b 45 00 85 c0 74 61 41 29 c5 48 01 c5 41 83 fd 0f 76 55 \<0f\> b7
  7d 04 0f b7 45 06 4c 8d 74 3d 00 66 83 f8 04 75 bc ba 04 00
  RSP: 0018:ffffc900007939e0 EFLAGS: 00010216
  RAX: ffffc90000793c78 RBX: ffff8880180cc000 RCX: ffffc90000793c90
  RDX: ffffc90000793cc0 RSI: ffff8880178d8cc0 RDI: ffff8880180cc000
  RBP: ffff8881178d8cbf R08: ffffc90000793c22 R09: 0000000000000000
  R10: ffff8880180cc000 R11: 0000000000000024 R12: 0000000000000000
  R13: 0000000000000020 R14: 0000000000000000 R15: ffffc90000793c22
  FS: 00007f873753cbc0(0000) GS:ffff88806bc00000(0000)
  knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: ffff8881178d8cc3 CR3: 00000000181ca000 CR4: 0000000000750ef0
  PKRU: 55555554
  Call Trace:
   \<TASK\>
   ? \_\_die+0x23/0x70
   ? page\_fault\_oops+0x181/0x480
   ? search\_module\_extables+0x19/0x60
   ? srso\_alias\_return\_thunk+0x5/0xfbef5
   ? exc\_page\_fault+0x1b6/0x1c0
   ? asm\_exc\_page\_fault+0x26/0x30
   ? smb2\_parse\_contexts+0xa0/0x3a0 \[cifs\]
   SMB2\_open+0x38d/0x5f0 \[cifs\]
   ? smb2\_is\_path\_accessible+0x138/0x260 \[cifs\]
   smb2\_is\_path\_accessible+0x138/0x260 \[cifs\]
   cifs\_is\_path\_remote+0x8d/0x230 \[cifs\]
   cifs\_mount+0x7e/0x350 \[cifs\]
   cifs\_smb3\_do\_mount+0x128/0x780 \[cifs\]
   smb3\_get\_tree+0xd9/0x290 \[cifs\]
   vfs\_get\_tree+0x2c/0x100
   ? capable+0x37/0x70
   path\_mount+0x2d7/0xb80
   ? srso\_alias\_return\_thunk+0x5/0xfbef5
   ? \_raw\_spin\_unlock\_irqrestore+0x44/0x60
   \_\_x64\_sys\_mount+0x11a/0x150
   do\_syscall\_64+0x47/0xf0
   entry\_SYSCALL\_64\_after\_hwframe+0x6f/0x77
  RIP: 0033:0x7f8737657b1e

## Affected and fixed versions

- Linux: \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 6726429c18c62dbf5e96ebbd522f262e016553fb; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 13fb0fc4917621f3dfa285a27eaf7151d770b5e5; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 890bc4fac3c0973a49cac35f634579bebba7fe48; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 1ae3c59355dc9882e09c020afe8ffbd895ad0f29; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 17a0f64cc02d4972e21c733d9f21d1c512963afa; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< af1689a9b7701d9907dfc84d2a4b57c4bc907144 (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52434.md
Affected: Linux >= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, < 6726429c18c62dbf5e96ebbd522f262e016553fb; >= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, < 13fb0fc4917621f3dfa285a27eaf7151d770b5e5; >= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, < 890bc4fac3c0973a49cac35f634579bebba7fe48; >= b8c32dbb0deb287a5fcb782…
Fixed in: Linux 6726429c18c62dbf5e96ebbd522f262e016553fb, Linux 13fb0fc4917621f3dfa285a27eaf7151d770b5e5, Linux 890bc4fac3c0973a49cac35f634579bebba7fe48, Linux 1ae3c59355dc9882e09c020afe8ffbd895ad0f29, Linux 17a0f64cc02d4972e21c733d9f21d1c512963afa

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-2023-52434 being exploited?

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

### How serious is CVE-2023-52434?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-52434?

Linux \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 6726429c18c62dbf5e96ebbd522f262e016553fb; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 13fb0fc4917621f3dfa285a27eaf7151d770b5e5; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 890bc4fac3c0973a49cac35f634579bebba7fe48; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 1ae3c59355dc9882e09c020afe8ffbd895ad0f29; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< 17a0f64cc02d4972e21c733d9f21d1c512963afa; \>= b8c32dbb0deb287a5fcb78251e4eae6c7275760d, \< af1689a9b7701d9907dfc84d2a4b57c4bc907144; Linux 3.7.

### Is there a fix for CVE-2023-52434?

Yes. Fixed in Linux 6726429c18c62dbf5e96ebbd522f262e016553fb, Linux 13fb0fc4917621f3dfa285a27eaf7151d770b5e5, Linux 890bc4fac3c0973a49cac35f634579bebba7fe48, Linux 1ae3c59355dc9882e09c020afe8ffbd895ad0f29, Linux 17a0f64cc02d4972e21c733d9f21d1c512963afa. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52434?

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/6726429c18c62dbf5e96ebbd522f262e016553fb>
- patch: <https://git.kernel.org/stable/c/13fb0fc4917621f3dfa285a27eaf7151d770b5e5>
- patch: <https://git.kernel.org/stable/c/890bc4fac3c0973a49cac35f634579bebba7fe48>
- patch: <https://git.kernel.org/stable/c/1ae3c59355dc9882e09c020afe8ffbd895ad0f29>
- patch: <https://git.kernel.org/stable/c/17a0f64cc02d4972e21c733d9f21d1c512963afa>
- patch: <https://git.kernel.org/stable/c/af1689a9b7701d9907dfc84d2a4b57c4bc907144>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://security.netapp.com/advisory/ntap-20250117-0009/>

## 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-2023-52434>

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