libnftnl has Heap-based Buffer Overflow in nftnl::Batch::with_page_size (nftnl-rs)
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub.
Summary
A heap-buffer-overflow vulnerability exists in the Rust wrapper for libnftnl, triggered via the nftnl::Batch::with_page_size constructor. When a small or malformed page size is provided, the underlying C code allocates an insufficient buffer, leading to out-of-bounds writes during batch initialization. The flaw was fixed in commit 94a286f by adding an overflow check: ```Rust batch_page_size .checked_add(crate::nft_nlmsg_maxsize()) .expect("batch_page_size is too large and would overflow"); ```
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | nftnl (crates.io) | before 0.9.0 | 0.9.0 | Patch available | GHSA-2fjw-whxm-9v4q |
- nftnl (crates.io) Vendor— Affected before 0.9.0 Fixed in 0.9.0 Patch available GHSA-2fjw-whxm-9v4q
Remediation
- Fix · GHSA-2fjw-whxm-9v4q nftnl (crates.io) Fixed in 0.9.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-2fjw-whxm-9v4q
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences