CVE-2026-98171
smb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs
Reported by linux · Published October 6, 2026
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs Fix several related bounds checking and pointer lifecycle issues in receive_encrypted_standard()'s handling of compound encrypted frames: - Clear next_buffer after assigning it to server->bigbuf. A stale next_buffer pointer can lead to a use-after-free on subsequent error paths. - Update pdu_length to the decrypted plaintext size (buf_size). Using the pre-decryption length allows NextCommand to point into stale ciphertext residue. - Reject next_cmd values smaller than MID_HEADER_SIZE(server). - Fix an integer overflow in the upper bound check by verifying pdu_length - next_cmd < MID_HEADER_SIZE(server), ensuring the trailing slice is large enough for a header.
EPSS 0.54% · 46.2th 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 |
|---|---|---|
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| Linux | Linux | 72eaef1f37a3b6bec11c342736834dc3707be3e4, 4.19 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b24df3e30cbf48255db866720fb71f14bf9d2f39, b24df3e30cbf48255db866720fb71f14bf9d2f39, b24df3e30cbf48255db866720fb71f14bf9d2f39 |
| Linux | Linux | 4.19, 0, 5.10.273 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| Linux | Linux | 7.3, 7.2.8, * |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
…and 19 more
Timeline
- Oct 6, 2026 EPSS Score (18 in total, the first dated here)
- Oct 6, 2026 Coalition ESS Score
- Oct 6, 2026 CVE Published
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98171
vulnetix vdb fixes CVE-2026-98171
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-98171/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart