Skip to content

Commit 1f89cf7

Browse files
1 parent 1e5b821 commit 1f89cf7

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-2fjw-whxm-9v4q",
4+
"modified": "2025-11-25T23:18:37Z",
5+
"published": "2025-11-25T23:18:37Z",
6+
"aliases": [],
7+
"summary": "libnftnl has Heap-based Buffer Overflow in nftnl::Batch::with_page_size (nftnl-rs)",
8+
"details": "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.\n\nThe flaw was fixed in commit 94a286f by adding an overflow check:\n```Rust\nbatch_page_size\n .checked_add(crate::nft_nlmsg_maxsize())\n .expect(\"batch_page_size is too large and would overflow\");\n```\nThe fix has not been added to the Rust registry at the time of publish.",
9+
"severity": [
10+
{
11+
"type": "CVSS_V4",
12+
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N"
13+
}
14+
],
15+
"affected": [
16+
{
17+
"package": {
18+
"ecosystem": "crates.io",
19+
"name": "nftnl"
20+
},
21+
"ranges": [
22+
{
23+
"type": "ECOSYSTEM",
24+
"events": [
25+
{
26+
"introduced": "0"
27+
},
28+
{
29+
"last_affected": "0.8.0"
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"references": [
37+
{
38+
"type": "WEB",
39+
"url": "https://github.com/mullvad/nftnl-rs/issues/76#issue-3528876468"
40+
},
41+
{
42+
"type": "WEB",
43+
"url": "https://github.com/mullvad/nftnl-rs/commit/94a286f87e88f431913d19668246de9006790125"
44+
},
45+
{
46+
"type": "PACKAGE",
47+
"url": "https://github.com/mullvad/nftnl-rs"
48+
},
49+
{
50+
"type": "WEB",
51+
"url": "https://rustsec.org/advisories/RUSTSEC-2025-0126.html"
52+
}
53+
],
54+
"database_specific": {
55+
"cwe_ids": [
56+
"CWE-122"
57+
],
58+
"severity": "CRITICAL",
59+
"github_reviewed": true,
60+
"github_reviewed_at": "2025-11-25T23:18:37Z",
61+
"nvd_published_at": null
62+
}
63+
}

0 commit comments

Comments
 (0)