CVE-2023-53597: cifs: fix mid leak during reconnection after timeout threshold
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
Event History
Frequently Asked Questions
What is the severity of CVE-2023-53597?
CVE-2023-53597 is classified as a moderate severity vulnerability in the Linux kernel.
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.
What software is affected by CVE-2023-53597?
CVE-2023-53597 affects the Linux kernel and the Linux CIFS implementation.
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.
Are there any workarounds for CVE-2023-53597?
No official workarounds exist for CVE-2023-53597; updating the kernel is the recommended action.