CVE-2025-57632

NameCVE-2025-57632
Descriptionlibsmb2 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1116446

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libsmb2 (PTS)forky, sid, trixie6.2+dfsg-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libsmb2source(unstable)(unfixed)1116446

Notes

https://gist.github.com/ZjW1nd/0b95b63307ceee7890e88e4abc6f041e
https://github.com/sahlberg/libsmb2/pull/431

Search for package or bug name: Reporting problems