nft_set_pipapo module. This exploit leverages improper cleanup of pipapo set elements during transaction aborts, enabling arbitrary code execution.
Below is a technical breakdown of the vulnerability and its exploitation.
The flaw resides in nft_pipapo_destroy(), which handles the destruction of Pipapo set elements. When a set is marked dirty (modified but uncommitted), the function incorrectly frees elements from both the active match object and its clone, leading to a double-free.
This occurs because:
priv->dirty, ensuring elements are only freed from the clone in the destroy path.c// Vulnerable code snippet (pre-patch)
if (priv->dirty)
nft_set_pipapo_match_destroy(ctx, set, m); // Double-free if set->dead is set
Attackers trigger the vulnerability by manipulating pipapo set transactions:
dirty) and delete the set, triggering the double-free.c// Trigger code outline
msg_list[0] = new_setelem_msg(...); // Create element D (dirty)
msg_list[1] = del_set_msg(...); // Delete set, invoking nft_pipapo_destroy()
send_msg_list(socket, msg_list, 2); // Trigger double-free
nft_table objects with controlled user data (NFTA_TABLE_USERDATA), creating overlapping objects.nft_expr structures and linked list metadata (e.g., nft_object->udata).nft_expr->ops->dump with a gadget (e.g., leave; ret) to pivot the stack./bin/sh.c// ROP payload example
*(uint64_t *)&setelem_data[0x30] = kernel_off + 0xffffffff8112af10; // pop rdi; ret
kmalloc-256 for setelem objects.nft_last_ops pointers and self-referential nft_object list structures bypass KASLR.212ed75dc5fb.This exploit underscores the risks of transactional memory management in kernel subsystems.
While patches are available, systems without updates remain vulnerable to privilege escalation attacks.
Find this Story Interesting! Follow us on LinkedIn and X to Get More Instant updates
The post PoC Exploit Released for Critical nftables Vulnerability in Linux Kernel appeared first on Cyber Security News.
INDIANAPOLIS (AP) — Felix Rosenqvist swung to the outside of David Malukas, then found a…
INDIANAPOLIS (AP) — Felix Rosenqvist swung to the outside of David Malukas, then found a…
Nicolas Cage has said that The Odyssey director Christopher Nolan is on the list of…
Sebastian Stan obliquely addressed his casting in The Batman: Part II while promoting his Palme…
Idris Elba isn't just taking himself out of the running to play James Bond in…
Karmine Corp, the French Esports team who’s reached the semifinals in the last two Rocket…
This website uses cookies.