---
id: CVE-2023-3867
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ksmbd: fix out of bounds read in smb2_sess_setup

  ksmbd does not consider the case of that smb2 session setup is
  in compound request
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ksmbd: fix out of bounds read in smb2_sess_setup

  ksmbd does not consider the case of that smb2 session setup is
  in compound request. If this is the second payload of t…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'
cwe:
  - CWE-125
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.15, < 5.15.145'
  - 'linux_kernel >= 5.16, < 6.1.40'
  - 'linux_kernel >= 6.2, < 6.4.5'
patched:
  - linux_kernel 6.4.5
published: '2025-08-16'
updated: '2026-08-15'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-3867'
references:
  - url: 'https://git.kernel.org/stable/c/2ba03cecb12ac7ac9e0170e251543c56832d9959'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/676392184785ace61e939831e7ca44a03d438c3b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/98422bdd4cb3ca4d08844046f6507d7ec2c2b8d8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ef572ffa8eb44111eed2925fbb2adca78bdcbf61'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-3867.json
  - url: 'https://access.redhat.com/security/cve/CVE-2023-3867'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2385248'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2023-3867'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2023-3867'
  - url: 'https://lore.kernel.org/all/20230624040141.16088-1-linkinjeon@kernel.org/'
  - url: 'https://www.zerodayinitiative.com/advisories/ZDI-23-981/'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.06059
epssPercentile: 0.93344
ingestedAt: '2026-08-15T13:26:45.312Z'
scores:
  nvd: 9.1
  vendor: 7.2
zeroDay: true
---

## Overview

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

ksmbd: fix out of bounds read in smb2_sess_setup

ksmbd does not consider the case of that smb2 session setup is
in compound request. If this is the second payload of the compound,
OOB read issue occurs while processing the first payload in
the smb2_sess_setup().

## Affected

- `linux_kernel >= 5.15, < 5.15.145`
- `linux_kernel >= 5.16, < 6.1.40`
- `linux_kernel >= 6.2, < 6.4.5`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.4.5`

## Vendor advisories

- **Red Hat VEX** · Important · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-3867.json)
