
scuffed PoC for CVE-2026-23111. Made and ran on Linux Kernel 6.12.69
For more details, see notes.md
CVE Description from NIST
An inverted logical check in nft_map_catchall_activate() causes nft_chain->use reference count to not be restored when a DELSET operation is aborted. This allows triggering UAF, and can be abused to obtain local privilege escalation
The bug was fixed in commit 1444ff890b4653add12f734ffeffc173d42862dd
CONFIG_USER_NS and CONFIG_NF_TABLES must not be disabledCredits to the following which helped me in understanding and creating this PoC:
Reference for creating nf_tables:
The code in this repository comes with no attached license.
THE SOFTWARE [and this disclaimer] IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.