PT-2025-39452 · Libsmb2 · Libsmb2
Published
2025-09-25
·
Updated
2025-09-26
·
CVE-2025-57632
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
libsmb2 versions 6.2 and later
Description
The software contains a flaw due to improper handling of SMB2 chained PDUs (NextCommand). Specifically, the
smb2 add iovector() function is repeatedly called to append to a fixed-size iovec array without sufficient bounds checking, leading to a potential overflow of v->niov (SMB2 MAX VECTORS=256). An attacker can exploit this by crafting responses with numerous chained PDUs, potentially causing heap out-of-bounds writes, memory corruption, crashes, and possible arbitrary code execution. The SMB2 OPLOCK BREAK path also bypasses message ID validation.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Libsmb2