7.8high
netfilter: nf_conntrack_helper: pass helper to expect cleanup
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.17% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack_helper: pass helper to expect cleanup nf_conntrack_helper_unregister() calls nf_ct_expect_iterate_destroy() to remove expectations belonging to the helper being unregistered. However, it passes NULL instead of the helper pointer as the data argument, so expect_iter_me() never matches any expectation and all of them survive the cleanup. After unregister returns, nfnl_cthelper_del() frees the helper object immediately. Subsequent expectation dumps or packet-driven init_conntrack() calls then dereference the freed exp->helper, causing a use-after-free. Pass the actual helper pointer so expectations referencing it are properly destroyed before the helper object is freed. BUG: KASAN: slab-use-after-free in string+0x38f/0x430 Read of size 1 at addr ffff888003b14d20 by task poc/103 Call Trace: string+0x38f/0x430 vsnprintf+0x3cc/0x1170 seq_printf+0x17a/0x240 exp_seq_show+0x2e5/0x560 seq_read_iter+0x419/0x1280 proc_reg_read+0x1ac/0x270 vfs_read+0x179/0x930 ksys_read+0xef/0x1c0 Freed by task 103: The buggy address is located 32 bytes inside of freed 192-byte region [ffff888003b14d00, ffff888003b14dc0)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from ac7b848390036dadd4351899d2a23748075916bd before 5cf28d5c8dcbbe8af6d3b145babe491906d7bad1, from ac7b848390036dadd4351899d2a23748075916bd before 504ba4168466c91210c45acdc332479cfd5f2da6, from ac7b848390036dadd4351899d2a23748075916bd before dc1739eff48e34cc71d4e2f03715493fbcebd8af, from ac7b848390036dadd4351899d2a23748075916bd before 2cf2737c85a2ba2b52024dafe68ffad2676f97be, from ac7b848390036dadd4351899d2a23748075916bd before 2c16e4d64dd91227742dfe196a3e7b0568bef65a, from ac7b848390036dadd4351899d2a23748075916bd before 620f3d14c1ef51d425060a3056ad8dbae8f998a3, from ac7b848390036dadd4351899d2a23748075916bd before 90bd7e8501349db3006d21fbc09df9ffcb172965, from ac7b848390036dadd4351899d2a23748075916bd before a242a9ae58aa46ff7dae51ce64150a93957abe65 and 1 more Not affected: before 4.14, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.168 up to 6.1.*, from 6.6.134 up to 6.6.*, from 6.12.81 up to 6.12.* | CVE List |
| linux linux_kernel | from 4.14 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.168, from 6.2 before 6.6.134, from 6.7 before 6.12.81, from 6.13 before 6.18.22, from 6.19 before 6.19.12, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack_helper: pass helper to expect cleanup nf_conntrack_helper_unregister() calls nf_ct_expect_iterate_destroy() to remove expectations belonging to the helper being unregistered. However, it passes NULL instead of the helper pointer as the data argument, so expect_iter_me() never matches any expectation and all of them survive the cleanup. After unregister returns, nfnl_cthelper_del() frees the helper object immediately. Subsequent expectation dumps or packet-driven init_conntrack() calls then dereference the freed exp->helper, causing a use-after-free. Pass the actual helper pointer so expectations referencing it are properly destroyed before the helper object is freed. BUG: KASAN: slab-use-after-free in string+0x38f/0x430 Read of size 1 at addr ffff888003b14d20 by task poc/103 Call Trace: string+0x38f/0x430 vsnprintf+0x3cc/0x1170 seq_printf+0x17a/0x240 exp_seq_show+0x2e5/0x560 seq_read_iter+0x419/0x1280 proc_reg_read+0x1ac/0x270 vfs_read+0x179/0x930 ksys_read+0xef/0x1c0 Freed by task 103: The buggy address is located 32 bytes inside of freed 192-byte region [ffff888003b14d00, ffff888003b14dc0)
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfilter: nf_conntrack_helper: pasar el ’helper’ a la limpieza de ’expect’ nf_conntrack_helper_unregister() llama a nf_ct_expect_iterate_destroy() para eliminar las ’expectations’ que pertenecen al ’helper’ que se está desregistrando. Sin embargo, pasa NULL en lugar del puntero del ’helper’ como argumento de datos, por lo que expect_iter_me() nunca coincide con ninguna ’expectation’ y todas ellas sobreviven a la limpieza. Después de que ’unregister’ regresa, nfnl_cthelper_del() libera el objeto ’helper’ inmediatamente. Las subsiguientes volcados de ’expectation’ o llamadas a init_conntrack() impulsadas por paquetes desreferencian el exp -> helper liberado, causando un uso después de liberación. Pasar el puntero del ’helper’ real para que las ’expectations’ que lo referencian sean destruidas correctamente antes de que el objeto ’helper’ sea liberado. BUG: KASAN: slab-uso después de liberación en string+0x38f/0x430 Lectura de tamaño 1 en la dirección ffff888003b14d20 por la tarea PoC/103 Traza de Llamadas: string+0x38f/0x430 vsnprintf+0x3cc/0x 1170 seq_printf+0x17a/0x240 exp_seq_show+0x2e5/0x560 seq_read_iter+0x419/0x 1280 proc_reg_read+0x1ac/0x270 vfs_read+0x179/0x930 ksys_read+0xef/0x1c0 Liberado por la tarea 103: La dirección con error se encuentra 32 bytes dentro de región liberada de 192 bytes [ffff888003b14d00, ffff888003b14dc0)
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43027 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2026-43027 changed 2026-11-11 | Public domain |