Buffer Overflow Affecting sahlberg/libsmb2 package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.08% (26th 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-UNMANAGED-SAHLBERGLIBSMB2-13181808
  • published2 Oct 2025
  • disclosed25 Sept 2025
  • creditZjW1nd

Introduced: 25 Sep 2025

NewCVE-2025-57632  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via the smb2_add_iovector() function. An attacker can cause memory corruption, application crashes, or potentially execute arbitrary code by sending specially crafted SMB2 responses with many chained PDUs that overflow the fixed-size iovec array.

CVSS Base Scores

version 4.0
version 3.1