Skip to main content
VulnerabilityPublished Updated

nftnl::Batch::with_page_size (nftnl-rs) · Libnftnl Has Heap-based Buffer Overflow

Affects nftnlSource GCVE Database

0

CVSS 9.3 Critical : upgrade to 0.9.0 as a priority.

Data as of 20 Nov 2026, 01:47 UTC

CVSS 4.0 base score
9.3Critical
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 0.9.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N

What to do

Upgrade nftnl to 0.9.0.

Affected software

ProductAffectedFixed in
crates.ionftnlAffected
  • <0.9.0
Fixed in
  • 0.9.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in libnftnl version 0.9.0 that fixes this vulnerability by adding an overflow check in the batch page size calculation. Users should upgrade to version 0.9.0 or later to remediate this issue.

Description

A heap-based buffer overflow vulnerability exists in the Rust wrapper for libnftnl, specifically in the nftnl::Batch::with_page_size constructor. The issue arises when a small or malformed page size is provided, causing the underlying C code to allocate an insufficient buffer and leading to out-of-bounds writes during batch initialization. This flaw was fixed in version 0.9.0 by adding an overflow check to prevent buffer size miscalculations.

References

Community reviews

Loading reviews…