Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-4147 PoC — Kernel: netfilter: nf_tables_newrule when adding a rule with nfta_rule_chain_id leads to use-after-free

Source
Associated Vulnerability
Title:Kernel: netfilter: nf_tables_newrule when adding a rule with nfta_rule_chain_id leads to use-after-free (CVE-2023-4147)
Description:A use-after-free flaw was found in the Linux kernel’s Netfilter functionality when adding a rule with NFTA_RULE_CHAIN_ID. This flaw allows a local user to crash or escalate their privileges on the system.
Readme
# Exploit-en-Python-para-CVE-2023-4147

Explicación del Exploit
Socket Netlink:

El exploit utiliza un socket Netlink para comunicarse con el subsistema Netfilter del kernel de Linux.
Mensaje Netlink Malicioso:

Se crea un mensaje Netlink con una carga útil que explota la vulnerabilidad en NFTA_RULE_CHAIN_ID. La carga maliciosa puede incluir datos cuidadosamente diseñados para provocar la condición de "Use-After-Free".
Explotación de UAF:

Al enviar el mensaje malicioso, el exploit intenta aprovechar la falla de "Use-After-Free" para alterar la memoria del kernel.
Elevación de Privilegios:

Si tiene éxito, el exploit puede otorgar privilegios elevados al atacante o causar un fallo del sistema, dependiendo de cómo se manipule la memoria.
Riesgos y Mitigaciones
Riesgos:

Si se ejecuta en un entorno real, puede comprometer gravemente la seguridad del sistema.
Podría provocar fallos críticos, dejando el sistema inoperable.
Mitigaciones:

Actualizar el kernel de Linux a la versión más reciente donde esta vulnerabilidad haya sido parcheada.
Restringir el acceso de usuarios no autorizados para minimizar la explotación local.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →