Heap-based Buffer Overflow Affecting nftnl package, versions <0.9.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-RUST-NFTNL-14122016
  • published27 Nov 2025
  • disclosed25 Nov 2025
  • creditUnknown

Introduced: 25 Nov 2025

New CVE NOT AVAILABLE CWE-122  (opens in a new tab)

How to fix?

Upgrade nftnl to version 0.9.0 or higher.

Overview

nftnl is a Safe abstraction for libnftnl. Provides low-level userspace access to the in-kernel nf_tables subsystem

Affected versions of this package are vulnerable to Heap-based Buffer Overflow in the with_page_size function. An attacker can cause out-of-bounds writes by supplying a small or malformed page size, leading to the allocation of an insufficient buffer by the underlying C code during batch initialization.

CVSS Base Scores

version 4.0
version 3.1