CVE-2026-98171
published high CVSS 3.1 · 8.8smb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb24df3e30cbf48255db866720fb71f14bf9d2f39 to < 1ed29f7a03417b405f38c09cfe04124883127b53 · b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 7f022867ec9f0166a0b4400385bb601b1c6b2c75 · b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 72eaef1f37a3b6bec11c342736834dc3707be3e4 · b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 491e33144dee872cffda207f6fcb09260728f803 · b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 8749946579708ea0d339034bb7f423a67dbe89cf · b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 96c436e4b010711452b2872558938f4ef276492a · b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 858d5ac22cb889266993e7670f9f0c4f4aeedd78 · b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 05762c5bc1cfdcac36747994fde2c04387a457f1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.19 (affected) · 0 to < 4.19 (unaffected · semver) · 5.10.273 through 5.10.* (unaffected · semver) · 5.15.224 through 5.15.* (unaffected · semver) · 6.1.189 through 6.1.* (unaffected · semver) · 6.6.158 through 6.6.* (unaffected · semver) · 6.12.112 through 6.12.* (unaffected · semver) · 6.18.54 through 6.18.* (unaffected · semver) · 7.2.8 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2026-139 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2026-121 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3192 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
Show 100 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3335 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3336 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-64k-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-debug | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-debug-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-debug-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-debug-devel-matched | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-debug-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-debug-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-debug-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-devel-matched | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-64k-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-cross-headers | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug-devel-matched | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-debug-uki-virt | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-devel-matched | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-headers | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-modules-extra-matched | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-debug | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-debug-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-debug-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-debug-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-64k-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-debug | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-debug-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-debug-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-debug-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-debug-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-debug-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-rt-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-tools | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-tools-libs | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-tools-libs-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-uki-virt | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-uki-virt-addons | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-zfcpdump | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-zfcpdump-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-zfcpdump-devel | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-zfcpdump-devel-matched | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-zfcpdump-modules | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-core | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | kernel-zfcpdump-modules-extra | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | libperf | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | perf | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | python3-perf | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | rtla | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 10 | rv | Advisory build | 6.12.0-264.22.1.el10_3 | ALSA-2026:105695 |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.191.1.rt7.532.el8_10 | ALSA-2026:104851 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.191.1.el8_10 | ALSA-2026:104852 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The malformed input is an encrypted SMB2 compound response (TRANSFORM header, inner NextCommand chain) sent by the SMB server over TCP/445 and parsed by receive_encrypted_standard() via cifs_demultiplex_thread -> smb3_receive_transform, so the bytes that cause the bug arrive over a routable network protocol. AC:L - The malicious server fully controls the sequence: a compound response whose first PDU has non-zero NextCommand, then a trailing PDU with NextCommand=0 and STATUS_PENDING or an unmatched MID with a bad header makes cifs_handle_standard() return non-zero, freeing the stale next_buffer every time; no race or external state is involved. PR:N - The attacker is the SMB server endpoint. It needs no account or privilege on the victim client, because it negotiates the session and encryption keys itself and so can produce valid encrypted frames. UI:R - A victim user or admin has to mount (or be redirected by DFS to) a share hosted on the attacker-controlled server before the client receives any encrypted compound response, so user action is required. S:U - The corruption is confined to the client kernel's own cifs receive buffers and slab/mempool objects, which is a standard kernel compromise and does not cross into a separate security authority. C:H - The error path frees server->smallbuf/bigbuf while it is still installed, which is a UAF on a kernel heap object. The object can be reallocated and its contents processed as SMB responses, a primitive usable for kernel memory disclosure. I:H - After the bad free, allocate_buffers() keeps the dangling smallbuf/bigbuf, and cifs_read_from_socket() writes the next frame's server-chosen bytes into the freed object (with a later double free), giving an attacker-controlled write into reallocated kernel memory. A:H - The use-after-free and double free of the cifs receive buffers in the demultiplex thread can corrupt the slab or mempool, causing a kernel oops or panic on the client and making every mount on that host unavailable.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 1ed29f7a03417b405f38c09cfe04124883127b53 (affected · git)b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 7f022867ec9f0166a0b4400385bb601b1c6b2c75 (affected · git)b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 72eaef1f37a3b6bec11c342736834dc3707be3e4 (affected · git)b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 491e33144dee872cffda207f6fcb09260728f803 (affected · git)b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 8749946579708ea0d339034bb7f423a67dbe89cf (affected · git)b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 96c436e4b010711452b2872558938f4ef276492a (affected · git)b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 858d5ac22cb889266993e7670f9f0c4f4aeedd78 (affected · git)b24df3e30cbf48255db866720fb71f14bf9d2f39 to < 05762c5bc1cfdcac36747994fde2c04387a457f1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.19 (affected)0 to < 4.19 (unaffected · semver)5.10.273 through 5.10.* (unaffected · semver)5.15.224 through 5.15.* (unaffected · semver)6.1.189 through 6.1.* (unaffected · semver)6.6.158 through 6.6.* (unaffected · semver)6.12.112 through 6.12.* (unaffected · semver)6.18.54 through 6.18.* (unaffected · semver)7.2.8 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/05762c5bc1cfdcac36747994fde2c04387a457f1
- https://git.kernel.org/stable/c/1ed29f7a03417b405f38c09cfe04124883127b53
- https://git.kernel.org/stable/c/491e33144dee872cffda207f6fcb09260728f803
- https://git.kernel.org/stable/c/72eaef1f37a3b6bec11c342736834dc3707be3e4
- https://git.kernel.org/stable/c/7f022867ec9f0166a0b4400385bb601b1c6b2c75
- https://git.kernel.org/stable/c/858d5ac22cb889266993e7670f9f0c4f4aeedd78
- https://git.kernel.org/stable/c/8749946579708ea0d339034bb7f423a67dbe89cf
- https://git.kernel.org/stable/c/96c436e4b010711452b2872558938f4ef276492a
Provider assertions
1Linux · cna
smb: client: fix next_buffer UAF and NextCommand bounds in compound PDUs
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 95ab4b93b5e6be160896d9503a1c05f6af0bd27964bd4349f291ae35220d5f03
- Ingested
- 30 Oct 2026, 12:44:26 UTC
- Source record
- Official CVE record