nftnl::Batch::with_page_size (nftnl-rs) · Heap-buffer-overflow
Affects nftnlSource GCVE Database
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
| Product | Affected | Fixed in |
|---|---|---|
crates.ionftnlpkg:cargo/nftnlOther threats | Affected
| Fixed in
|
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.