CVE-2025-57632 Affecting libsmb2 package, versions <6.2+dfsg-3


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.58% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-LIBSMB2-13096400
  • published27 Sept 2025
  • disclosed25 Sept 2025

Introduced: 25 Sep 2025

CVE-2025-57632  (opens in a new tab)

How to fix?

Upgrade Debian:unstable libsmb2 to version 6.2+dfsg-3 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libsmb2 package and not the libsmb2 package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.