CVE-2026-74660
JSON

7.8high

netfilter: ebt_nflog: pin the NFLOG backend

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: ebt_nflog: pin the NFLOG backend nf_log_unregister() runs after the per-net teardown so its final RCU grace period also drains readers that obtained the logger from a per-net binding. However, ebt_nflog passes an explicit ULOG log type to nf_log_packet() without holding a reference on the selected logger module, unlike the xt_NFLOG and nft_log frontends. An ebtables nflog rule can therefore remain callable while nfnetlink_log is unloaded. The resulting interleaving is: CPU 0 CPU 1 nfnetlink_log_fini() unregister_pernet_subsys() kfree(nfnl_log_pernet(net)) ebt_nflog_tg() nf_log_packet() nfulnl_log_packet() instance_lookup_get_rcu() The global ULOG logger is still registered at this point, so CPU 1 dereferences the per-net state after CPU 0 has freed it. KASAN reported: BUG: KASAN: slab-use-after-free in instance_lookup_get_rcu Read of size 8 at addr ff110001052e6210 by task poc/92 Call Trace: instance_lookup_get_rcu+0x1ce/0x1f0 [nfnetlink_log] nfulnl_log_packet+0x248/0x2fb0 [nfnetlink_log] nf_log_packet+0x204/0x300 ebt_nflog_tg+0x351/0x550 ebt_do_table+0xedf/0x22b0 Allocated by task 90: __kmalloc_noprof+0x186/0x470 ops_init+0x6d/0x420 register_pernet_operations+0x2f6/0x670 register_pernet_subsys+0x23/0x40 Freed by task 93: kfree+0x131/0x3c0 ops_undo_list+0x3e3/0x700 unregister_pernet_operations+0x232/0x490 unregister_pernet_subsys+0x1c/0x30 nfnetlink_log_fini+0x34/0x450 [nfnetlink_log] Acquire the ULOG logger module reference when an ebt_nflog rule is validated and release it when the rule is destroyed. Request the NFLOG backend for legacy callers when needed, matching xt_NFLOG. This prevents module teardown until all ebt_nflog rules have stopped using the logger.

Affected

Product or packageVersionsReported by
Linux Linuxfrom c83fa19603bdaeef17b815713dbbe3230c8a34ee before 3bcce49d617c593c7606083bfdb464a1761fa68d, from c83fa19603bdaeef17b815713dbbe3230c8a34ee before 394d7939c6b2b9e6bea0844c89efb5913168d898, from c83fa19603bdaeef17b815713dbbe3230c8a34ee before 2cac4294f184c9bc19ff82552c62b80498694c39, from c83fa19603bdaeef17b815713dbbe3230c8a34ee before 9d8a94b48b393885e7f876c8ef68ed4da5012078, from c83fa19603bdaeef17b815713dbbe3230c8a34ee before 6809379a860b9fccbb5435bf08343f6d081ac68d, from c83fa19603bdaeef17b815713dbbe3230c8a34ee before 47a119ec8a7e2d5c8c4e86fb1a56c4e696e500fb, from c83fa19603bdaeef17b815713dbbe3230c8a34ee before e2ab7e878bdbe80104c879c31fd2d82a476703b8, from c83fa19603bdaeef17b815713dbbe3230c8a34ee before 30825970339c107bacaf7f61af90fcdb1f597ca1 and 1 more
Not affected: before 4.12, from 5.10.265 up to 5.10.*, from 5.15.216 up to 5.15.*, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*
CVE List

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: netfilter: ebt_nflog: pin the NFLOG backend nf_log_unregister() runs after the per-net teardown so its final RCU grace period also drains readers that obtained the logger from a per-net binding. However, ebt_nflog passes an explicit ULOG log type to nf_log_packet() without holding a reference on the selected logger module, unlike the xt_NFLOG and nft_log frontends. An ebtables nflog rule can therefore remain callable while nfnetlink_log is unloaded. The resulting interleaving is: CPU 0 CPU 1 nfnetlink_log_fini() unregister_pernet_subsys() kfree(nfnl_log_pernet(net)) ebt_nflog_tg() nf_log_packet() nfulnl_log_packet() instance_lookup_get_rcu() The global ULOG logger is still registered at this point, so CPU 1 dereferences the per-net state after CPU 0 has freed it. KASAN reported: BUG: KASAN: slab-use-after-free in instance_lookup_get_rcu Read of size 8 at addr ff110001052e6210 by task poc/92 Call Trace: instance_lookup_get_rcu+0x1ce/0x1f0 [nfnetlink_log] nfulnl_log_packet+0x248/0x2fb0 [nfnetlink_log] nf_log_packet+0x204/0x300 ebt_nflog_tg+0x351/0x550 ebt_do_table+0xedf/0x22b0 Allocated by task 90: __kmalloc_noprof+0x186/0x470 ops_init+0x6d/0x420 register_pernet_operations+0x2f6/0x670 register_pernet_subsys+0x23/0x40 Freed by task 93: kfree+0x131/0x3c0 ops_undo_list+0x3e3/0x700 unregister_pernet_operations+0x232/0x490 unregister_pernet_subsys+0x1c/0x30 nfnetlink_log_fini+0x34/0x450 [nfnetlink_log] Acquire the ULOG logger module reference when an ebt_nflog rule is validated and release it when the rule is destroyed. Request the NFLOG backend for legacy callers when needed, matching xt_NFLOG. This prevents module teardown until all ebt_nflog rules have stopped using the logger.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfilter: ebt_nflog: fijar el backend de NFLOG nf_log_unregister() se ejecuta después del desmantelamiento por red, por lo que su período de gracia RCU final también drena a los lectores que obtuvieron el registrador de una vinculación por red. Sin embargo, ebt_nflog pasa un tipo de registro ULOG explícito a nf_log_packet() sin mantener una referencia en el módulo de registrador seleccionado, a diferencia de los frontends xt_NFLOG y nft_log. Una regla nflog de ebtables puede, por lo tanto, permanecer invocable mientras nfnetlink_log está descargado. El entrelazado resultante es: CPU 0 CPU 1 nfnetlink_log_fini() unregister_pernet_subsys() kfree(nfnl_log_pernet(net)) ebt_nflog_tg() nf_log_packet() nfulnl_log_packet() instance_lookup_get_rcu() El registrador ULOG global todavía está registrado en este punto, por lo que la CPU 1 desreferencia el estado por red después de que la CPU 0 lo haya liberado. KASAN informó: ERROR: KASAN: uso después de liberación de slab en instance_lookup_get_rcu Lectura de tamaño 8 en la dirección ff110001052e6210 por la tarea PoC/92 Rastro de Llamada: instance_lookup_get_rcu+0x1ce/0x1f0 [nfnetlink_log] nfulnl_log_packet+0x248/0x2fb0 [nfnetlink_log] nf_log_packet+0x204/0x300 ebt_nflog_tg+0x351/0x550 ebt_do_table+0xedf/0x22b0 Asignado por la tarea 90: __kmalloc_noprof+0x186/0x470 ops_init+0x6d/0x420 register_pernet_operations+0x2f6/0x670 register_pernet_subsys+0x23/0x40 Liberado por la tarea 93: kfree+0x131/0x3c0 ops_undo_list+0x3e3/0x700 unregister_pernet_operations+0x232/0x490 unregister_pernet_subsys+0x1c/0x30 nfnetlink_log_fini+0x34/0x450 [nfnetlink_log] Adquirir la referencia del módulo de registrador ULOG cuando una regla ebt_nflog es validada y liberarla cuando la regla es destruida. Solicitar el backend de NFLOG para llamadores heredados cuando sea necesario, coincidiendo con xt_NFLOG. Esto evita el desmantelamiento del módulo hasta que todas las reglas ebt_nflog hayan dejado de usar el registrador.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-74660 changed 2026-10-16CVE Terms of Use
NVDCVE-2026-74660 changed 2026-10-16Public domain