CVE-2025-39975
published critical CVSS 3.1 · 9.8smb: client: fix wrong index reference in smb2_compound_op()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux5ddcc9e92d54548219985ce4de88618fb53e14ec to < ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5 · efe8db3ecaa40a8520dc9a54283dcecd82ceea9c to < bfb1e2aad1fecef8320fd71332acde0d53a8d699 · 3681c74d342db75b0d641ba60de27bf73e16e66b to < 093615fc76063ea08d454ba86677ce64c736e806 · 3681c74d342db75b0d641ba60de27bf73e16e66b to < fbe2dc6a9c7318f7263f5e4d50f6272b931c5756 · 77aefd1d9b790f60634adebbdcfffbe934f41c34 · 6.6.75 to < 6.6.109 · 6.12.12 to < 6.12.50 · 6.13.1 to < 6.14 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.14 (affected) · 0 to < 6.14 (unaffected · semver) · 6.6.109 through 6.6.* (unaffected · semver) · 6.12.50 through 6.12.* (unaffected · semver) · 6.16.10 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1254 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | kernel6.12aarch64 | Listed in advisory | Not stated | ALAS2023-2025-1254 |
| Amazon Linux | AL2023 | kernel6.12src | Listed in advisory | Not stated | ALAS2023-2025-1254 |
| Amazon Linux | AL2023 | kernel6.12x86_64 | Listed in advisory | Not stated | ALAS2023-2025-1254 |
Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix wrong index reference in smb2_compound_op() In smb2_compound_op(), the loop that processes each command's response uses wrong indices when accessing response bufferes. This incorrect indexing leads to improper handling of command results. Also, if incorrectly computed index is greather than or equal to MAX_COMPOUND, it can cause out-of-bounds accesses.
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
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The vulnerable code parses SMB2 compound responses received over TCP/445 from the remote server, so a malicious, compromised, or on-path (unsigned/downgraded session) SMB server triggers it purely with network traffic. This matches the established scoring for fs/smb/client response-parsing flaws such as CVE-2026-46155 in this same function. AC:L - The server fully controls the per-command NT status codes and payload of each element in the compound chain, so it deterministically arranges "CLOSE succeeds / QUERY_WSL_EA fails" and shapes the error-response body that then gets parsed as an EA buffer. No race, memory-layout guess, or condition outside the attacker's control is involved. PR:N - The attacker is the server side of the connection (or an on-path injector) and needs no account or privilege on the victim client. Once the client has a session to the server, every subsequent path lookup drives the vulnerable parser. UI:N - On an already-mounted share (fstab, autofs/systemd automount, container image, or a server that was compromised after mount), ordinary background filesystem activity such as stat()/lookup reaches smb2_query_path_info() -> smb2_compound_op() with no victim action. This matches UI:N used for the equivalent smb2_compound_op() EA parsing CVE. S:U - The corruption and its consequences are confined to the kernel's own security authority on the client; no VM, IOMMU, or sandbox boundary is crossed. C:H - Treating an error response as a successful QUERY_INFO/QUERY_WSL_EA lets an attacker-chosen OutputBufferOffset/OutputBufferLength drive memcpy() past the end of the response allocation, copying adjacent kernel heap memory into idata->wsl.eas, which wsl_to_fattr() then exposes to userspace as file uid/gid/mode/rdev. This is an out-of-bounds kernel heap read with a user-visible channel. I:H - Command results are attributed to the wrong response buffer, so failed server operations are accepted as successful and inode state — attributes, reparse tag, and WSL-derived uid/gid/mode/rdev used for access decisions — is populated from an incorrect, attacker-shaped, partly out-of-bounds buffer. The wrong-index accesses into the rsp_iov array are a memory-safety error class that is not inherently read-limited. A:H - The out-of-bounds read past the response buffer can touch unmapped memory and oops the kernel, and parsing an error response as reparse/EA data produces garbage-driven kernel faults. Any such crash is a full availability loss for the client system.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 5ddcc9e92d54548219985ce4de88618fb53e14ec to < ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5 (affected · git)efe8db3ecaa40a8520dc9a54283dcecd82ceea9c to < bfb1e2aad1fecef8320fd71332acde0d53a8d699 (affected · git)3681c74d342db75b0d641ba60de27bf73e16e66b to < 093615fc76063ea08d454ba86677ce64c736e806 (affected · git)3681c74d342db75b0d641ba60de27bf73e16e66b to < fbe2dc6a9c7318f7263f5e4d50f6272b931c5756 (affected · git)77aefd1d9b790f60634adebbdcfffbe934f41c34 (affected · git)6.6.75 to < 6.6.109 (affected · semver)6.12.12 to < 6.12.50 (affected · semver)6.13.1 to < 6.14 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.14 (affected)0 to < 6.14 (unaffected · semver)6.6.109 through 6.6.* (unaffected · semver)6.12.50 through 6.12.* (unaffected · semver)6.16.10 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
smb: client: fix wrong index reference in smb2_compound_op()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 38fab91c6dce2671b44eefdf77e16d0199683c23fb097e5586f665ead2e4a9ef
- Ingested
- 23 Sep 2026, 08:47:25 UTC
- Source record
- Official CVE record