# CVE-2025-39975: smb: client: fix wrong index reference in smb2_compound_op()

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2025-10-15T07:55:56.951Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5ddcc9e92d54548219985ce4de88618fb53e14ec before ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5; from efe8db3ecaa40a8520dc9a54283dcecd82ceea9c before bfb1e2aad1fecef8320fd71332acde0d53a8d699; from 3681c74d342db75b0d641ba60de27bf73e16e66b before 093615fc76063ea08d454ba86677ce64c736e806; from 3681c74d342db75b0d641ba60de27bf73e16e66b before fbe2dc6a9c7318f7263f5e4d50f6272b931c5756; 77aefd1d9b790f60634adebbdcfffbe934f41c34; from 6.6.75 before 6.6.109; from 6.12.12 before 6.12.50; from 6.13.1 before 6.14; 6.14 (not affected: before 6.14; from 6.6.109 up to 6.6.*; from 6.12.50 up to 6.12.*; from 6.16.10 up to 6.16.*; from 6.17 up to *)

## References

- <https://git.kernel.org/stable/c/ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5>
- <https://git.kernel.org/stable/c/bfb1e2aad1fecef8320fd71332acde0d53a8d699>
- <https://git.kernel.org/stable/c/093615fc76063ea08d454ba86677ce64c736e806>
- <https://git.kernel.org/stable/c/fbe2dc6a9c7318f7263f5e4d50f6272b931c5756>

## Sources

- CVE List: [CVE-2025-39975](https://www.cve.org/CVERecord?id=CVE-2025-39975), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39975](https://nvd.nist.gov/vuln/detail/CVE-2025-39975), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39975 · Whole record: https://cve.day/CVE-2025-39975.json · Rebuilt by cve.day 2026-11-25T22:59:06.398Z
