{"id":3890,"date":"2025-05-12T10:03:46","date_gmt":"2025-05-12T10:03:46","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/05\/12\/poc-exploit-released-for-linux-kernels-nftables-subsystem-vulnerability\/"},"modified":"2025-05-12T10:03:46","modified_gmt":"2025-05-12T10:03:46","slug":"poc-exploit-released-for-linux-kernels-nftables-subsystem-vulnerability","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/05\/12\/poc-exploit-released-for-linux-kernels-nftables-subsystem-vulnerability\/","title":{"rendered":"PoC Exploit Released For Linux Kernel\u2019s nftables Subsystem Vulnerability"},"content":{"rendered":"<p>    PoC Exploit Released For Linux Kernel\u2019s nftables Subsystem Vulnerability<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>A critical Proof-of-Concept (PoC) exploit has been released for a significant vulnerability in the Linux kernel\u2019s nftables subsystem, tracked as CVE-2024-26809.\u00a0<\/p>\n<p>This flaw, rooted in the kernel\u2019s netfilter infrastructure, exposes affected systems to local <a href=\"https:\/\/cybersecuritynews.com\/wormable-diamorphine-rootkit-attack-multiple-linux-systems\/\" target=\"_blank\" rel=\"noreferrer noopener\">privilege escalation<\/a> through a sophisticated double-free attack.\u00a0<\/p>\n<p>Security researchers, including the user \u201cconlonialC,\u201d have demonstrated how this bug can be weaponized to achieve root-level access, underscoring the urgency for system administrators to apply available patches.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Technical Overview of CVE-2024-26809<\/strong><\/h2>\n<p>The vulnerability resides in the nftables subsystem, which is designed to replace legacy packet filtering frameworks like iptables and ip6tables.\u00a0<\/p>\n<p>nftables relies on several core kernel components, including the nft_set_pipapo structure, to manage sets of filtering rules.\u00a0<\/p>\n<p>The flaw specifically affects the nft_pipapo_destroy() function within the kernel\u2019s net\/netfilter module.\u00a0<\/p>\n<p>Under certain conditions, this function may attempt to free the same memory region twice-a classic double-free scenario-when a set is marked as \u201cdirty\u201d and contains overlapping elements in both its \u201cmatch\u201d and \u201cclone\u201d representations.<\/p>\n<p>The vulnerable code path can be summarized as follows:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXd2Xx2DgTzvEVawsiHpzBJd8E37IJd0YjAhSWqp4QSXAy_gR5jiXZm5uo82jzE77cfnmcWw_0ycU-ESP_Upn-sI63qDP19J5ERFosuXdd9X6zFWcYqEZNygDg9ghDjWo6zAG3JN?key=BBbECsWVhhDWxpbNzMhkJA\" alt=\"\"><\/figure>\n<\/div>\n<p>Here, if the set is dirty, nft_set_pipapo_match_destroy() may be called twice on elements that exist in both \u201cmatch\u201d and \u201cclone,\u201d leading to a double-free condition.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Exploitation Process\u00a0<\/strong><\/h2>\n<p>The <a href=\"https:\/\/github.com\/google\/security-research\/blob\/master\/pocs\/linux\/kernelctf\/CVE-2024-26809_lts_cos\/docs\/exploit.md\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">released<\/a> PoC exploit, authored by conlonialC, meticulously demonstrates how to leverage this vulnerability for local privilege escalation.\u00a0<\/p>\n<p>The attack begins with the creation of a pipapo set and the insertion of multiple elements to ensure the set is marked as dirty.\u00a0<\/p>\n<p>The attacker then triggers the destruction of the set, causing the kernel to free the same set elements twice. This double-free corrupts the kernel\u2019s heap, specifically targeting the kmalloc-256 object cache, which is commonly used for kernel object allocations.<\/p>\n<p>By carefully orchestrating heap allocations and deallocations, the exploit achieves several advanced objectives:<\/p>\n<ul class=\"wp-block-list\">\n<li>Overlapping nftables objects in memory to enable address leaks.<\/li>\n<li>Hijacking function pointers, such as expr-&gt;ops-&gt;dump, to redirect kernel execution flow.<\/li>\n<li>Executing a Return-Oriented Programming (ROP) chain to escalate privileges and spawn a root shell.<\/li>\n<\/ul>\n<p>A crucial part of the exploit involves manipulating the kernel\u2019s internal data structures to gain control over the instruction pointer (RIP).\u00a0<\/p>\n<p>The attacker crafts a fake nft_expr object and uses a ROP gadget to pivot the stack, ultimately executing arbitrary code in kernel context.\u00a0<\/p>\n<p>The exploit\u2019s reliability is enhanced by its ability to reclaim freed heap chunks and leak kernel addresses, bypassing common mitigations.<\/p>\n<p>The following excerpt illustrates the heap manipulation and ROP setup used in the PoC:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXfqnOlchAGtb_BUJMRoEa7-ASN0gDSfo8D6eJV-pk9Dz-n6xZhjljlE0Ac6IMcFCq4Savd-ehTU8RqmGmPuh0_8KqPrL1nz8wZZ7KpeUvilu-g0koB8Y75z6sSF89TaxtqPPHN06Q?key=BBbECsWVhhDWxpbNzMhkJA\" alt=\"\"><\/figure>\n<\/div>\n<p>This sequence demonstrates how the attacker redirects execution to a custom ROP gadget, culminating in root access.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Affected Versions\u00a0<\/strong><\/h2>\n<p>CVE-2024-26809 affects <a href=\"https:\/\/cybersecuritynews.com\/linux-kernel-vulnerability-privilege-escalation\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux kernel<\/a> versions 5.15.54 and later, including the 6.1 and 6.6 LTS branches.\u00a0<\/p>\n<p>The vulnerability has been addressed in recent kernel updates, with distributions such as Debian, Ubuntu, and SUSE releasing patches for all supported versions.\u00a0<\/p>\n<p>The fix ensures that elements are only released from the \u201cclone\u201d path during set destruction, preventing double-free conditions.<\/p>\n<p>System administrators are strongly advised to apply the latest security updates immediately. Unpatched systems remain vulnerable to local attackers who can exploit this flaw to gain full control over affected machines.<\/p>\n<p>The public release of a functional exploit for CVE-2024-26809 marks a significant escalation in the threat landscape for Linux servers and workstations.\u00a0<\/p>\n<p>The exploit showcases advanced heap manipulation and <a href=\"https:\/\/cybersecuritynews.com\/ms-windows-kernel-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">kernel exploitation<\/a> techniques, making it a potent tool for attackers.\u00a0<\/p>\n<p>Prompt patching and adherence to security best practices are essential to mitigate the risk posed by this vulnerability.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 94%,rgb(169,184,195) 100%)\"><strong>Vulnerability Attack Simulation on How Hackers Rapidly Probe Websites for Entry Points \u2013 <a href=\"https:\/\/webinars.indusface.com\/15-minute-vulnerability-attack-simulation-insights-to-fortify-edge\/register?utm_source=gbhackers-blog-cta&amp;utm_campaign=2025-may-webinar-vulnerability&amp;utm_medium=referral\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Free Webinar<\/a><\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/linux-kernels-nftables-vulnerability-poc\/\">PoC Exploit Released For Linux Kernel\u2019s nftables Subsystem Vulnerability<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Kaaviya<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/linux-kernels-nftables-vulnerability-poc\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PoC Exploit Released For Linux Kernel\u2019s nftables Subsystem Vulnerability A critical Proof-of-Concept (PoC) exploit has been released for a significant vulnerability in the Linux kernel\u2019s nftables subsystem, tracked as CVE-2024-26809.\u00a0 This flaw, rooted in the kernel\u2019s netfilter infrastructure, exposes affected systems to local privilege escalation through a sophisticated double-free attack.\u00a0 Security researchers, including the user [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,406,131],"tags":[130],"class_list":["post-3890","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-linux","category-vulnerability","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/3890"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=3890"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/3890\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=3890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=3890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=3890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}