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.