---
id: CVE-2023-53794
title: 'cifs: fix session state check in reconnect to avoid use-after-free issue'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  cifs: fix session state check in reconnect to avoid use-after-free issue

  Don't collect exiting session in smb2_reconnect_server(), because it
  will be released soon.

  N…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 4fcd1813e6404dd4420c7d12fb483f9320f0bf93 <
    7e4f5c3f01fb0e51ca438e43262d858daf9a0a76
  - >-
    Linux >= 4fcd1813e6404dd4420c7d12fb483f9320f0bf93 <
    759ffc164d95a32c09528766d74d9b4fb054e8f4
  - >-
    Linux >= 4fcd1813e6404dd4420c7d12fb483f9320f0bf93 <
    99f280700b4cc02d5f141b8d15f8e9fad0418f65
  - Linux 655e0c067f0e02ece03fd0591dabe3db2ae27552
  - Linux 875cc09c0767a4ac06b57af383709657f98b3ea1
  - Linux 599fe1409085059ba12a2c3897c853be9fa9e7cf
  - Linux 2e4378ee60049b752c9dce16f62ce6fbd11b379a
  - Linux 59b520454b323ec43b2ae757217332cea33091e0
  - Linux e20c888e2b3576e5f498c167729d274ef60b86f8
  - Linux 4ce7aa4e44d88ce64ea8ae2337b8910f3670b0ba
  - Linux 419fad68e4c4135ff9859e9214dd6cf954413ca1
  - Linux >= 3.10.103 < 3.11
  - Linux >= 3.12.63 < 3.13
  - Linux >= 3.14.74 < 3.15
  - Linux >= 3.16.37 < 3.17
  - Linux >= 3.18.37 < 3.19
  - Linux >= 4.1.28 < 4.2
  - Linux >= 4.4.16 < 4.5
  - Linux >= 4.6.5 < 4.7
  - Linux 4.7
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-15T21:37:15.568860Z'
published: '2025-12-09'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T21:41:36.158Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-53794'
references:
  - url: 'https://git.kernel.org/stable/c/7e4f5c3f01fb0e51ca438e43262d858daf9a0a76'
  - url: 'https://git.kernel.org/stable/c/759ffc164d95a32c09528766d74d9b4fb054e8f4'
  - url: 'https://git.kernel.org/stable/c/99f280700b4cc02d5f141b8d15f8e9fad0418f65'
tags:
  - cve.org
epss: 0.00511
epssPercentile: 0.42121
ingestedAt: '2026-10-15T22:48:25.421Z'
---

## Overview

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

cifs: fix session state check in reconnect to avoid use-after-free issue

Don't collect exiting session in smb2_reconnect_server(), because it
will be released soon.

Note that the exiting session will stay in server->smb_ses_list until
it complete the cifs_free_ipc() and logoff() and then delete itself
from the list.

## Affected

- `Linux >= 4fcd1813e6404dd4420c7d12fb483f9320f0bf93 < 7e4f5c3f01fb0e51ca438e43262d858daf9a0a76`
- `Linux >= 4fcd1813e6404dd4420c7d12fb483f9320f0bf93 < 759ffc164d95a32c09528766d74d9b4fb054e8f4`
- `Linux >= 4fcd1813e6404dd4420c7d12fb483f9320f0bf93 < 99f280700b4cc02d5f141b8d15f8e9fad0418f65`
- `Linux 655e0c067f0e02ece03fd0591dabe3db2ae27552`
- `Linux 875cc09c0767a4ac06b57af383709657f98b3ea1`
- `Linux 599fe1409085059ba12a2c3897c853be9fa9e7cf`
- `Linux 2e4378ee60049b752c9dce16f62ce6fbd11b379a`
- `Linux 59b520454b323ec43b2ae757217332cea33091e0`
- `Linux e20c888e2b3576e5f498c167729d274ef60b86f8`
- `Linux 4ce7aa4e44d88ce64ea8ae2337b8910f3670b0ba`
- `Linux 419fad68e4c4135ff9859e9214dd6cf954413ca1`
- `Linux >= 3.10.103 < 3.11`
- `Linux >= 3.12.63 < 3.13`
- `Linux >= 3.14.74 < 3.15`
- `Linux >= 3.16.37 < 3.17`
- `Linux >= 3.18.37 < 3.19`
- `Linux >= 4.1.28 < 4.2`
- `Linux >= 4.4.16 < 4.5`
- `Linux >= 4.6.5 < 4.7`
- `Linux 4.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
