Incorrect Calculation of Buffer Size Affecting openbsd/src package, versions [,7.5.015)[7.6.0,7.6.006)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (14th 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-OPENBSDSRC-9680264
  • published10 Apr 2025
  • disclosed20 Mar 2025
  • creditUnknown

Introduced: 20 Mar 2025

NewCVE-2025-30334  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade openbsd/src to version 7.5.015, 7.6.006 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Calculation of Buffer Size when calculating wg text buffer lengths in the wg_encap() function in if_wg.c. An attacker can cause a crash by sending malicious packets.

CVSS Base Scores

version 4.0
version 3.1