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

  ksmbd: fix out of bounds in init_smb2_rsp_hdr()

  If client send smb2 negotiate request and then send smb1 negotiate
  request, init_smb2_rsp_hdr is called for smb1 negoti…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  ksmbd: fix out of bounds in init_smb2_rsp_hdr()

  If client send smb2 negotiate request and then send smb1 negotiate
  request, init_smb2_rsp_hdr is called for smb1 negoti…
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-119
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.15.0, < 5.15.145'
  - 'linux_kernel >= 5.16.0, < 6.1.53'
  - 'linux_kernel >= 6.2.0, < 6.4.16'
patched:
  - linux_kernel 6.4.16
published: '2024-02-21'
updated: '2026-08-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2023-52441'
references:
  - url: 'https://git.kernel.org/stable/c/330d900620dfc9893011d725b3620cd2ee0bc2bc'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/536bb492d39bb6c080c92f31e8a55fe9934f452b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5c0df9d30c289d6b9d7d44e2a450de2f8e3cf40b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/aa669ef229ae8dd779da9caa24e254964545895f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/330d900620dfc9893011d725b3620cd2ee0bc2bc'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/536bb492d39bb6c080c92f31e8a55fe9934f452b'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/5c0df9d30c289d6b9d7d44e2a450de2f8e3cf40b'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/aa669ef229ae8dd779da9caa24e254964545895f'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00679
epssPercentile: 0.50387
ingestedAt: '2026-08-04T10:39:37.571Z'
---

## Overview

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

ksmbd: fix out of bounds in init_smb2_rsp_hdr()

If client send smb2 negotiate request and then send smb1 negotiate
request, init_smb2_rsp_hdr is called for smb1 negotiate request since
need_neg is set to false. This patch ignore smb1 packets after ->need_neg
is set to false.

## Affected

- `linux_kernel >= 5.15.0, < 5.15.145`
- `linux_kernel >= 5.16.0, < 6.1.53`
- `linux_kernel >= 6.2.0, < 6.4.16`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.4.16`
