{"id":"CVE-2023-53597","aliases":["CVE-2023-53597"],"related":[],"kind":"vulnerability","state":"published","title":"cifs: fix mid leak during reconnection after timeout threshold","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2025-10-04T15:44:09.616Z","modified":"2026-08-05T09:15:00.757Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"8e670f77c4a55013db6d23b962f9bf6673a5e7b6","fixed":"df31d05f0678cdd0796ea19983a2b93edca18bb0","status":"affected"},{"type":"git","introduced":"8e670f77c4a55013db6d23b962f9bf6673a5e7b6","fixed":"c55901d381a22300c9922170e59704059f50977b","status":"affected"},{"type":"git","introduced":"8e670f77c4a55013db6d23b962f9bf6673a5e7b6","fixed":"57d25e9905c71133e201f6d06b56a3403d4ad433","status":"affected"},{"type":"git","introduced":"8e670f77c4a55013db6d23b962f9bf6673a5e7b6","fixed":"69cba9d3c1284e0838ae408830a02c4a063104bc","status":"affected"},{"type":"git","version":"fa6d7a5853f93efb088aba36af12cb1944156411","status":"affected"},{"type":"semver","introduced":"5.9.5","fixed":"5.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.15.150","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.42","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.7","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.9.5","fixed":"5.15.150"},{"status":"affected","introduced":"5.16","fixed":"6.1.42"},{"status":"affected","introduced":"6.2","fixed":"6.4.7"},{"status":"affected","version":"6.5"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/df31d05f0678cdd0796ea19983a2b93edca18bb0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c55901d381a22300c9922170e59704059f50977b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57d25e9905c71133e201f6d06b56a3403d4ad433","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69cba9d3c1284e0838ae408830a02c4a063104bc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53597","url":"https://www.cve.org/CVERecord?id=CVE-2023-53597","licence":"CVE Terms of Use","modified":"2026-08-05T09:15:00.757Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53597","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53597","licence":"Public domain","modified":"2026-08-04T10:19:13.703Z"}],"updatedAt":"2026-11-25T22:58:34.960Z","epss":{"score":0.00286,"percentile":0.22732,"date":"2026-12-01T12:00:22.000Z"}}