All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-39975

Probability of exploitation in the next 30 days: 0.47%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel's Server Message Block (SMB) client. When processing compound command responses from a remote server, incorrect indexing during buffer processing can lead to an out-of-bounds memory access. A malicious or compromised SMB server could exploit this flaw by returning crafted responses to a client, resulting in kernel memory corruption or a denial of service (system crash).