{"id":"CVE-2026-89637","aliases":["CVE-2026-89637"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: fix UAF and buffer leak in cifs_check_trans2() for malformed secondary T2","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix UAF and buffer leak in cifs_check_trans2() for malformed secondary T2\n\nWhen a valid primary TRANSACT2 response has been received (mid->resp_buf\nset, mid->multiRsp true) and a subsequent secondary response causes\ncifs_check_trans2() to return false -- either because the SMB header is\ninvalid (malformed != 0) or because check2ndT2() rejects the PDU --\nhandle_mid() overwrites mid->resp_buf with the new buffer (leaking the\nprimary buffer) and, because mid->multiRsp is set, skips the\nserver->smallbuf/bigbuf NULL-out.  When the user thread frees\nmid->resp_buf, server->smallbuf or server->bigbuf is left dangling; the\ndemux thread reuses it for the next packet, resulting in a use-after-free.\n\nCombine both early-exit conditions and, when mid->multiRsp is already\nset, abort the pending transaction inline: set multiEnd, call\ndequeue_mid() with malformed=true, and return true so handle_mid() exits\nwithout touching mid->resp_buf or the server buffer pointers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix UAF and buffer leak in cifs_check_trans2() for malformed secondary T2\n\nWhen a valid primary TRANSACT2 response has been received (mid->resp_buf\nset, mid->multiRsp true) and a subsequent secondary response causes\ncifs_check_trans2() to return false -- either because the SMB header is\ninvalid (malformed != 0) or because check2ndT2() rejects the PDU --\nhandle_mid() overwrites mid->resp_buf with the new buffer (leaking the\nprimary buffer) and, because mid->multiRsp is set, skips the\nserver->smallbuf/bigbuf NULL-out.  When the user thread frees\nmid->resp_buf, server->smallbuf or server->bigbuf is left dangling; the\ndemux thread reuses it for the next packet, resulting in a use-after-free.\n\nCombine both early-exit conditions and, when mid->multiRsp is already\nset, abort the pending transaction inline: set multiEnd, call\ndequeue_mid() with malformed=true, and return true so handle_mid() exits\nwithout touching mid->resp_buf or the server buffer pointers.","source":"cvelist"}],"published":"2026-09-11T19:45:31.048Z","modified":"2026-10-19T09:18:00.780Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"316cf94a910f6f93d43cc574359d163ccae098a3","fixed":"9eed72e9534b10a6d9f8f5146feff3db53aebdba","status":"affected"},{"type":"git","introduced":"316cf94a910f6f93d43cc574359d163ccae098a3","fixed":"5e6533a683f6a851158d9f33fb4ea8f4f25d7f84","status":"affected"},{"type":"git","introduced":"316cf94a910f6f93d43cc574359d163ccae098a3","fixed":"730d0bb19507b9e19c2fe5343109ac618e2fbce5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.6","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9eed72e9534b10a6d9f8f5146feff3db53aebdba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e6533a683f6a851158d9f33fb4ea8f4f25d7f84","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/730d0bb19507b9e19c2fe5343109ac618e2fbce5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89637","url":"https://www.cve.org/CVERecord?id=CVE-2026-89637","licence":"CVE Terms of Use","modified":"2026-10-19T08:50:09.230Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89637","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89637","licence":"Public domain","modified":"2026-10-19T09:18:00.780Z"}],"updatedAt":"2026-11-25T22:59:38.092Z","epss":{"score":0.00597,"percentile":0.49928,"date":"2026-12-01T12:00:22.000Z"}}