{"id":"CVE-2023-53597","published":"2025-10-04T15:44:09Z","modified":"2026-08-05T09:15:00Z","title":"cifs: fix mid leak during reconnection after timeout threshold","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->in_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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00286,"percentile":0.21091,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/df31d05f0678cdd0796ea19983a2b93edca18bb0","tags":[]},{"url":"https://git.kernel.org/stable/c/c55901d381a22300c9922170e59704059f50977b","tags":[]},{"url":"https://git.kernel.org/stable/c/57d25e9905c71133e201f6d06b56a3403d4ad433","tags":[]},{"url":"https://git.kernel.org/stable/c/69cba9d3c1284e0838ae408830a02c4a063104bc","tags":[]}],"priority":{"score":9.5,"factors":[{"name":"EPSS percentile","points":4.22},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8e670f77c4a55013db6d23b962f9bf6673a5e7b6, < df31d05f0678cdd0796ea19983a2b93edca18bb0",">= 8e670f77c4a55013db6d23b962f9bf6673a5e7b6, < c55901d381a22300c9922170e59704059f50977b",">= 8e670f77c4a55013db6d23b962f9bf6673a5e7b6, < 57d25e9905c71133e201f6d06b56a3403d4ad433",">= 8e670f77c4a55013db6d23b962f9bf6673a5e7b6, < 69cba9d3c1284e0838ae408830a02c4a063104bc","fa6d7a5853f93efb088aba36af12cb1944156411",">= 5.9.5, < 5.10"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"euvd":{"id":"EUVD-2025-32271","exploited":false,"provenance":"source"}}