CVE-2025-57632

libsmb2 6.2+ is vulnerable to Buffer Overflow

High · published September 25, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
47.2
In the wild
Unconfirmed
What it is

libsmb2 6.2+ is vulnerable to Buffer Overflow. When processing SMB2 chained PDUs (NextCommand), libsmb2 repeatedly calls smb2_add_iovector() to append to a fixed-size iovec array without checking the upper bound of v->niov (SMB2_MAX_VECTORS=256). An attacker can craft responses with many chained PDUs to overflow v->niov and perform heap out-of-bounds writes, causing memory corruption, crashes, and potentially arbitrary code execution. The SMB2_OPLOCK_BREAK path bypasses message ID validation.

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00584 · 47.2th percentile
Published
2025-09-25T00:00Z
EPSS history
Timeline
  • 25 SEP 00:00Z
    libsmb2 6.2+ is vulnerable to Buffer Overflow
    cvelistv5