CVE-2025-39975

smb: client: fix wrong index reference in smb2_compound_op()

State
Published
Severity
9.8 Critical
Published
Oct 15, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 5ddcc9e92d54548219985ce4de88618fb53e14ec to before ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5Affected
  • efe8db3ecaa40a8520dc9a54283dcecd82ceea9c to before bfb1e2aad1fecef8320fd71332acde0d53a8d699Affected
  • 3681c74d342db75b0d641ba60de27bf73e16e66b to before 093615fc76063ea08d454ba86677ce64c736e806Affected
  • 3681c74d342db75b0d641ba60de27bf73e16e66b to before fbe2dc6a9c7318f7263f5e4d50f6272b931c5756Affected
  • 77aefd1d9b790f60634adebbdcfffbe934f41c34Affected
  • 6.6.75 to before 6.6.109Affected
  • 6.12.12 to before 6.12.50Affected
  • 6.13.1 to before 6.14Affected
LinuxLinux
  • 6.14Affected
  • before 6.14Not affected
  • 6.6.109 through 6.6.*Not affected
  • 6.12.50 through 6.12.*Not affected
  • 6.16.10 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.