Skip to content
Heist/ feed
Back to feed
CriticalFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.50, 6.16.10, 6.6.109
CVEs
CVE-2025-39975
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 21:30 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Oct 2025, 07:55 UTC

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.

osv:CVE-2025-39975

Kernel

Fixed versions: 6.6.109, 6.12.50, 6.16.10

Complete source record
{
  "id": "f6e00f40abd9edf9dbd28c634db045825f1f4d143610e40ef733c8f75b120a0a",
  "url": "https://osv.dev/vulnerability/CVE-2025-39975",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "smb: client: fix wrong index reference in smb2_compound_op()",
    "summary": "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.",
    "evidence": "osv:CVE-2025-39975",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.109",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.50",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-39975",
      "aliases": [
        "CVE-2025-39975"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5ddcc9e92d54548219985ce4de88618fb53e14ec"
                },
                {
                  "fixed": "ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "efe8db3ecaa40a8520dc9a54283dcecd82ceea9c"
                },
                {
                  "fixed": "bfb1e2aad1fecef8320fd71332acde0d53a8d699"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3681c74d342db75b0d641ba60de27bf73e16e66b"
                },
                {
                  "fixed": "093615fc76063ea08d454ba86677ce64c736e806"
                },
                {
                  "fixed": "fbe2dc6a9c7318f7263f5e4d50f6272b931c5756"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.6.75"
                },
                {
                  "fixed": "6.6.109"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.12.12"
                },
                {
                  "fixed": "6.12.50"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.13.1"
                },
                {
                  "fixed": "6.14"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "77aefd1d9b790f60634adebbdcfffbe934f41c34"
                }
              ]
            }
          ],
          "versions": [
            "v6.6.108",
            "v6.6.107",
            "v6.6.106",
            "v6.6.105",
            "v6.6.104",
            "v6.6.103",
            "v6.6.102",
            "v6.6.101",
            "v6.6.100",
            "v6.6.99",
            "v6.6.98",
            "v6.6.97",
            "v6.6.96",
            "v6.6.95",
            "v6.6.94",
            "v6.6.93",
            "v6.6.92",
            "v6.6.91",
            "v6.6.90",
            "v6.6.89",
            "v6.6.88",
            "v6.6.87",
            "v6.6.86",
            "v6.6.85",
            "v6.6.84",
            "v6.6.83",
            "v6.6.82",
            "v6.6.81",
            "v6.6.80",
            "v6.6.79",
            "v6.6.78",
            "v6.6.77",
            "v6.6.76",
            "v6.6.75",
            "v6.12.49",
            "v6.12.48",
            "v6.12.47",
            "v6.12.46",
            "v6.12.45",
            "v6.12.44",
            "v6.12.43",
            "v6.12.42",
            "v6.12.41",
            "v6.12.40",
            "v6.12.39",
            "v6.12.38",
            "v6.12.37",
            "v6.12.36",
            "v6.12.35",
            "v6.12.34",
            "v6.12.33",
            "v6.12.32",
            "v6.12.31",
            "v6.12.30",
            "v6.12.29",
            "v6.12.28",
            "v6.12.27",
            "v6.12.26",
            "v6.12.25",
            "v6.12.24",
            "v6.12.23",
            "v6.12.22",
            "v6.12.21",
            "v6.12.20",
            "v6.12.19",
            "v6.12.18",
            "v6.12.17",
            "v6.12.16",
            "v6.12.15",
            "v6.12.14",
            "v6.12.13",
            "v6.12.12",
            "v6.13.12",
            "v6.13.11",
            "v6.13.10",
            "v6.13.9",
            "v6.13.8",
            "v6.13.7",
            "v6.13.6",
            "v6.13.5",
            "v6.13.4",
            "v6.13.3",
            "v6.13.2",
            "v6.13.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39975.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.6.109"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.50"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.16.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39975.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.760470966Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/093615fc76063ea08d454ba86677ce64c736e806",
        "https://git.kernel.org/stable/c/ba7bcfd52c66dd1c2dfa5142aca7e4a70b62dfa5",
        "https://git.kernel.org/stable/c/bfb1e2aad1fecef8320fd71332acde0d53a8d699",
        "https://git.kernel.org/stable/c/fbe2dc6a9c7318f7263f5e4d50f6272b931c5756",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39975.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-39975",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39975.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-39975",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490273,
  "published_at": "2025-10-15T07:55:56.951+00:00"
}