CVE-2023-53597 Details
Description
In the Linux kernel, the following vulnerability has been resolved: cifs: fix mid leak during reconnection after timeout threshold When the number of responses with status of STATUS_IO_TIMEOUT exceeds a specified threshold (NUM_STATUS_IO_TIMEOUT), we reconnect the connection. But we do not return the mid, or the credits returned for the mid, or reduce the number of in-flight requests. This bug could result in the server->in_flight count to go bad, and also cause a leak in the mids. This change moves the check to a few lines below where the response is decrypted, even of the response is read from the transform header. This way, the code for returning the mids can be reused. Also, the cifs_reconnect was reconnecting just the transport connection before. In case of multi-channel, this may not be what we want to do after several timeouts. Changed that to reconnect the session and the tree too. Also renamed NUM_STATUS_IO_TIMEOUT to a more appropriate name MAX_STATUS_IO_TIMEOUT.
A vulnerability in the CIFS (Common Internet File System) component of the Linux kernel has been addressed. This issue involved a memory leak of MID (Message Identifier) entries during the reconnection process that follows a timeout. When the number of responses indicating a STATUS_IO_TIMEOUT exceeds a certain threshold, the connection is reestablished. However, the vulnerability arose because the MID was not returned, nor were the credits associated with it, leading to an incorrect count of in-flight requests on the server. This oversight could cause the server's in-flight request count to become inaccurate and result in a leak of MID entries. The vulnerability has been fixed by adjusting the reconnection process to properly handle MIDs and by renaming the timeout threshold variable to better reflect its purpose.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the Linux kernel can be found in the official Linux documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/57d25e9905c71133e201f6d06b56a3403d4ad433 | kernel.org | Patch |
| https://git.kernel.org/stable/c/69cba9d3c1284e0838ae408830a02c4a063104bc | kernel.org | Patch |
| https://git.kernel.org/stable/c/c55901d381a22300c9922170e59704059f50977b | kernel.org | Patch |
| https://git.kernel.org/stable/c/df31d05f0678cdd0796ea19983a2b93edca18bb0 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.9.5, < 5.15.150 >= 5.16, < 6.1.42 >= 6.2, < 6.4.7 6.5 rc1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Mar 23, 2026 | Modified Analysis | [email protected] |
| Feb 6, 2026 | Initial Analysis | [email protected] |
| Oct 4, 2025 | New CVE Received | kernel.org |