From bf9bf72be95e22b42eaf70cf8e5baf85d4a9773f Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 25 Nov 2025 09:40:12 +0000 Subject: [PATCH] Update gh-pages --- advisories/RUSTSEC-2025-0126.html | 181 +++++++++++++++++++++++ advisories/index.html | 19 +++ categories/memory-corruption.html | 19 +++ feed.xml | 235 ++++++++++++++++-------------- js/index.js | 4 +- packages/index.html | 6 + packages/nftnl.html | 90 ++++++++++++ packages/nftnl.json | 67 +++++++++ 8 files changed, 509 insertions(+), 112 deletions(-) create mode 100644 advisories/RUSTSEC-2025-0126.html create mode 100644 packages/nftnl.html create mode 100644 packages/nftnl.json diff --git a/advisories/RUSTSEC-2025-0126.html b/advisories/RUSTSEC-2025-0126.html new file mode 100644 index 000000000..f8ce93a5d --- /dev/null +++ b/advisories/RUSTSEC-2025-0126.html @@ -0,0 +1,181 @@ + + + + + + + +RUSTSEC-2025-0126: nftnl: Heap-buffer-overflow in nftnl::Batch::with_page_size (nftnl-rs) › RustSec Advisory Database + + + + + + + + + +
+
+

+ + + +
+ +
+ +
+
+ + + History ⋅ + Edit ⋅ + JSON (OSV) + + + +
+

+ + RUSTSEC-2025-0126 + +

+

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

+
+
+ + + +
+
Reported
+
+ +
+ +
Issued
+
+ + +
+ +
Package
+
+ + + nftnl + (crates.io) + + +
+ +
Type
+
+ + Vulnerability + +
+ + +
Categories
+
+ +
+ + + + + + + +
References
+
+ +
+ + + + + + + +
Patched
+
+ +
    + +
  • >=0.8.0
  • + +
+ +
+ + + + + +
+ + + + +

Description

+

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:

+
batch_page_size
+    .checked_add(crate::nft_nlmsg_maxsize())
+    .expect("batch_page_size is too large and would overflow");
+
+ + +

Advisory available under CC0-1.0 + license. + + +

+
+
diff --git a/advisories/index.html b/advisories/index.html index c74b00437..7d4538d94 100644 --- a/advisories/index.html +++ b/advisories/index.html @@ -64,6 +64,25 @@