bugzilla-daemon at netfilter.org
2024-Sep-03 06:45 UTC
[Bug 1772] New: Double free corruption in libnftables
https://bugzilla.netfilter.org/show_bug.cgi?id=1772 Bug ID: 1772 Summary: Double free corruption in libnftables Product: nftables Version: 1.0.x Hardware: x86_64 OS: Ubuntu Status: NEW Severity: normal Priority: P5 Component: nft Assignee: pablo at netfilter.org Reporter: nellexplorer at gmail.com When calling nft_ctx_clear_vars() and then nft_ctx_free() functions sequentially, double free corruption occurs. This is due to the fact that after calling xfree(ctx->vars) in the nft_ctx_clear_vars function, dereferencing the pointer does not occur. Steps to reproduce: 1. Call nft_ctx_clear_vars(); 2. Call nft_ctx_free(). -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20240903/88fa54a4/attachment.html>
bugzilla-daemon at netfilter.org
2024-Sep-03 16:16 UTC
[Bug 1772] Double free corruption in libnftables
https://bugzilla.netfilter.org/show_bug.cgi?id=1772 Phil Sutter <phil at nwl.cc> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED CC| |phil at nwl.cc --- Comment #1 from Phil Sutter <phil at nwl.cc> --- Fixed upstream in commit d361be1f87344 ("libnftables: Zero ctx->vars after freeing it"). A workaround for this specific case is to just not calling nft_ctx_clear_vars() as it is redundant if followed by a call to nft_ctx_free(). Thanks for reporting! -- You are receiving this mail because: You are watching all bug changes. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20240903/a36d0d4d/attachment.html>
Apparently Analagous Threads
- [Bug 1405] New: Possible a bug in n libnftables deserializer. [invalid type]
- [ANNOUNCE] nftables 0.8.1 release
- [Bug 1714] New: Stack smash: libnftables does not enforce string length limits for log prefixes
- [Bug 1297] New: Replacement for nft export vm json?
- [ANNOUNCE] nftables 0.8 release