{"id":"CVE-2023-53597","summary":"cifs: fix mid leak during reconnection after timeout threshold","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: fix mid leak during reconnection after timeout threshold\n\nWhen the number of responses with status of STATUS_IO_TIMEOUT\nexceeds a specified threshold (NUM_STATUS_IO_TIMEOUT), we reconnect\nthe connection. But we do not return the mid, or the credits\nreturned for the mid, or reduce the number of in-flight requests.\n\nThis bug could result in the server-\u003ein_flight count to go bad,\nand also cause a leak in the mids.\n\nThis change moves the check to a few lines below where the\nresponse is decrypted, even of the response is read from the\ntransform header. This way, the code for returning the mids\ncan be reused.\n\nAlso, the cifs_reconnect was reconnecting just the transport\nconnection before. In case of multi-channel, this may not be\nwhat we want to do after several timeouts. Changed that to\nreconnect the session and the tree too.\n\nAlso renamed NUM_STATUS_IO_TIMEOUT to a more appropriate name\nMAX_STATUS_IO_TIMEOUT.","modified":"2026-04-02T09:44:34.021136Z","published":"2025-10-04T15:44:09.616Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4111-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4301-1","SUSE-SU-2025:4320-1","SUSE-SU-2025:4515-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53597.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/57d25e9905c71133e201f6d06b56a3403d4ad433"},{"type":"WEB","url":"https://git.kernel.org/stable/c/69cba9d3c1284e0838ae408830a02c4a063104bc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c55901d381a22300c9922170e59704059f50977b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/df31d05f0678cdd0796ea19983a2b93edca18bb0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53597.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53597"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8e670f77c4a55013db6d23b962f9bf6673a5e7b6"},{"fixed":"df31d05f0678cdd0796ea19983a2b93edca18bb0"},{"fixed":"c55901d381a22300c9922170e59704059f50977b"},{"fixed":"57d25e9905c71133e201f6d06b56a3403d4ad433"},{"fixed":"69cba9d3c1284e0838ae408830a02c4a063104bc"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"fa6d7a5853f93efb088aba36af12cb1944156411"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53597.json"}}],"schema_version":"1.7.5"}