(Pwn2Own) Linux Kernel nftables Use-After-Free Local Privilege Escalation Vulnerability

July 6th, 2023

Vulnerability Details

This vulnerability allows local attackers to escalate privileges on affected installations of Linux Kernel. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

The specific flaw exists within the handling of nft_chains. The issue results from the lack of validating the status of a chain while processing lookup on the chain. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the kernel.

Additional Details

Linux has issued an update to correct this vulnerability. More details can be found at:
https://lore.kernel.org/netfilter-devel/20230705121627.GC19489@breakpoint.cc/T/

Disclosure Timeline

  • 2023-05-09 - Vulnerability reported to vendor
  • 2023-07-06 - Coordinated public release of advisory

Credit

Mingi Cho of Theori

Back to Advisories