CVE-2023-53597: cifs: fix mid leak during reconnection after timeout threshold

Published Oct 4, 2025
·
Updated

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 STATUSIOTIMEOUT exceeds a specified threshold (NUMSTATUSIOTIMEOUT), 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->inflight 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 cifsreconnect 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 NUMSTATUSIOTIMEOUT to a more appropriate name MAXSTATUSIOTIMEOUT.

Affected Software

6 affected components
Linux Kernel
Linux CIFS
Linux Linux kernel>=5.9.5<5.15.150
Linux Linux kernel>=5.16<6.1.42
Linux Linux kernel>=6.2<6.4.7
Linux Linux kernel=6.5-rc1

Event History

Oct 4, 2025
CVE Published
via MITRE·03:44 PM
Data Sourced
via MITRE·03:44 PM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-53597?

CVE-2023-53597 is classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2023-53597?

To fix CVE-2023-53597, update your Linux kernel to the latest version that includes the patch addressing this issue.

3

What software is affected by CVE-2023-53597?

CVE-2023-53597 affects the Linux kernel and the Linux CIFS implementation.

4

What does CVE-2023-53597 address?

CVE-2023-53597 addresses a mid leak issue during reconnection after an IO timeout threshold in the cifs protocol.

5

Are there any workarounds for CVE-2023-53597?

No official workarounds exist for CVE-2023-53597; updating the kernel is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203