CVE-2026-89637
smb: client: fix UAF and buffer leak in cifs_check_trans2() for malformed secondary T2
Reported by linux · Published September 11, 2026
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix UAF and buffer leak in cifs_check_trans2() for malformed secondary T2 When a valid primary TRANSACT2 response has been received (mid->resp_buf set, mid->multiRsp true) and a subsequent secondary response causes cifs_check_trans2() to return false -- either because the SMB header is invalid (malformed != 0) or because check2ndT2() rejects the PDU -- handle_mid() overwrites mid->resp_buf with the new buffer (leaking the primary buffer) and, because mid->multiRsp is set, skips the server->smallbuf/bigbuf NULL-out. When the user thread frees mid->resp_buf, server->smallbuf or server->bigbuf is left dangling; the demux thread reuses it for the next packet, resulting in a use-after-free. Combine both early-exit conditions and, when mid->multiRsp is already set, abort the pending transaction inline: set multiEnd, call dequeue_mid() with malformed=true, and return true so handle_mid() exits without touching mid->resp_buf or the server buffer pointers.
EPSS 0.60% · 49.5th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel | Amazon Linux | 1:6.1.188-233.393.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.188-233.393.amzn2023 |
| kernel-livepatch-6.12.111-136.204 | Amazon Linux | 1:1.0-0.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| kernel6.18 | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.51-120.162.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.188-233.393.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.188-233.393.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.111-136.204.amzn2023 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 316cf94a910f6f93d43cc574359d163ccae098a3, 316cf94a910f6f93d43cc574359d163ccae098a3, 316cf94a910f6f93d43cc574359d163ccae098a3 |
| Linux | Linux | 3.6, 0, 6.18.51 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-livepatch-6.12.111-136.204 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.18.51-120.162 | 0 |
| linux | linux_kernel | 3.6, 3.6, 3.6 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
…and 18 more
Timeline
- Sep 11, 2026 CVE Published
- Sep 12, 2026 EPSS Score (29 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-89637
vulnetix vdb fixes CVE-2026-89637
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89637/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart