Projects STRLCPY CVE-2023-0179-PoC Files
🤬
.gitignore Loading last commit info...
LICENSE
Makefile
README.md
crash.c
helpers.c
helpers.h
leak.c
setup.sh
README.md

CVE-2023-0179 PoC

This repository contains the exploit for my recently discovered vulnerability in Nftables that was assigned CVE-2023-0179, affecting all Linux versions from 5.5 to 6.2-rc3, although the exploit was tested on 6.1.6.

The vulnerability details and writeup can be found on oss-security

Building instructions

Just invoke the make command and two executables will be generated.

libmnl and libnftnl are required for the build to succeed:

sudo apt-get install libmnl-dev libnftnl-dev

Infoleak

The exploit will enter an unprivileged user and network namespace and add a rule_add_payload() expression which, when evaluated, will trigger the stack buffer overflow and overwrite the registers.

The content is then retrieved with the following nft command:

nft list map netdev mytable myset12

The output will leak several shuffled addresses relative to kernel data structures.

LPE

TODO: for now, the crash binary will just panic the kernel.

Credits

Please wait...
Page is in error, reload to recover