Skip to main content
VulnerabilityPublished Updated

nftnl::Batch::with_page_size (nftnl-rs) · Heap-buffer-overflow

Affects nftnlSource GCVE Database

0
Severity
High

Rated High by Threat Radar's AI analysis

Patch
Available – fixed in 0.9.0

Data as of 19 Nov 2026, 02:56 UTC

What to do

Upgrade nftnl to 0.9.0.

Affected software

ProductAffectedFixed in
crates.ionftnlpkg:cargo/nftnlOther threatsAffected
  • >=0.0.0-0 <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

Upgrade to nftnl-rs version 0.9.0 or later, which includes an overflow check that aborts the operation if the batch page size is too large or malformed, preventing the buffer overflow.

Description

A heap-buffer-overflow vulnerability exists in the Rust wrapper for libnftnl (nftnl-rs) in the Batch::with_page_size constructor. Providing a small or malformed page size causes insufficient buffer allocation in the underlying C code, leading to out-of-bounds writes during batch initialization. This flaw was fixed in version 0.9.0 by adding an overflow check that aborts on unsafe sizes.

References

Community reviews

Loading reviews…