7.1high
netfilter: nfnetlink_cthelper: fix OOB read in nfnl_cthelper_dump_table()
- Severity
- 7.1high CVSS:3.1 by NVD
- Exploit likelihood
- 0.13% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: nfnetlink_cthelper: fix OOB read in nfnl_cthelper_dump_table() nfnl_cthelper_dump_table() has a 'goto restart' that jumps to a label inside the for loop body. When the "last" helper saved in cb->args[1] is deleted between dump rounds, every entry fails the (cur != last) check, so cb->args[1] is never cleared. The for loop finishes with cb->args[0] == nf_ct_helper_hsize, and the 'goto restart' jumps back into the loop body bypassing the bounds check, causing an 8-byte out-of-bounds read on nf_ct_helper_hash[nf_ct_helper_hsize]. The 'goto restart' block was meant to re-traverse the current bucket when "last" is no longer found, but it was placed after the for loop instead of inside it. Move the block into the for loop body so that the restart only occurs while cb->args[0] is still within bounds. BUG: KASAN: slab-out-of-bounds in nfnl_cthelper_dump_table+0x9f/0x1b0 Read of size 8 at addr ffff888104ca3000 by task poc_cthelper/131 Call Trace: nfnl_cthelper_dump_table+0x9f/0x1b0 netlink_dump+0x333/0x880 netlink_recvmsg+0x3e2/0x4b0 sock_recvmsg+0xde/0xf0 __sys_recvfrom+0x150/0x200 __x64_sys_recvfrom+0x76/0x90 do_syscall_64+0xc3/0x6e0 Allocated by task 1: __kvmalloc_node_noprof+0x21b/0x700 nf_ct_alloc_hashtable+0x65/0xd0 nf_conntrack_helper_init+0x21/0x60 nf_conntrack_init_start+0x18d/0x300 nf_conntrack_standalone_init+0x12/0xc0
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 0605e1985a95d4334a67869aee45a47e82301abf, from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 92441f6d9405a0c18d03f278b395e782f79a4a30, from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 3cc328ffc32ddb389cba7b78b6aa95d995c2876e, from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 4a1f6ee69267a5f524102c028981410eeacfa3da, from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 894c5780ddadd5fde0e16f66587918e6be1504c4, from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 05018cd9370f77bb18fbf6e15ff33c7a06f10b3c, from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 61b3a1f8621df1a5928118313f133996f6a786db, from 12f7a505331e6b2754684b509f2ac8f0011ce644 before 6dcee8496d53165b2d8a5909b3050b62ae71fe89 and 1 more Not affected: before 3.6, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.6 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.78, from 6.13 before 6.18.19, from 6.19 before 6.19.9, 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: nfnetlink_cthelper: fix OOB read in nfnl_cthelper_dump_table() nfnl_cthelper_dump_table() has a 'goto restart' that jumps to a label inside the for loop body. When the "last" helper saved in cb->args[1] is deleted between dump rounds, every entry fails the (cur != last) check, so cb->args[1] is never cleared. The for loop finishes with cb->args[0] == nf_ct_helper_hsize, and the 'goto restart' jumps back into the loop body bypassing the bounds check, causing an 8-byte out-of-bounds read on nf_ct_helper_hash[nf_ct_helper_hsize]. The 'goto restart' block was meant to re-traverse the current bucket when "last" is no longer found, but it was placed after the for loop instead of inside it. Move the block into the for loop body so that the restart only occurs while cb->args[0] is still within bounds. BUG: KASAN: slab-out-of-bounds in nfnl_cthelper_dump_table+0x9f/0x1b0 Read of size 8 at addr ffff888104ca3000 by task poc_cthelper/131 Call Trace: nfnl_cthelper_dump_table+0x9f/0x1b0 netlink_dump+0x333/0x880 netlink_recvmsg+0x3e2/0x4b0 sock_recvmsg+0xde/0xf0 __sys_recvfrom+0x150/0x200 __x64_sys_recvfrom+0x76/0x90 do_syscall_64+0xc3/0x6e0 Allocated by task 1: __kvmalloc_node_noprof+0x21b/0x700 nf_ct_alloc_hashtable+0x65/0xd0 nf_conntrack_helper_init+0x21/0x60 nf_conntrack_init_start+0x18d/0x300 nf_conntrack_standalone_init+0x12/0xc0
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfilter: nfnetlink_cthelper: corrección de lectura fuera de límites en nfnl_cthelper_dump_table() nfnl_cthelper_dump_table() tiene un ’goto restart’ que salta a una etiqueta dentro del cuerpo del bucle for. Cuando el ayudante ’last’ guardado en cb -> args[1] es eliminado entre rondas de volcado, cada entrada falla la comprobación (cur != last), por lo que cb -> args[1] nunca se borra. El bucle for termina con cb -> args[0] == nf_ct_helper_hsize, y el ’goto restart’ salta de nuevo al cuerpo del bucle saltándose la comprobación de límites, causando una lectura fuera de límites de 8 bytes en nf_ct_helper_hash[nf_ct_helper_hsize]. El bloque ’goto restart’ estaba destinado a volver a recorrer el cubo actual cuando ’last’ ya no se encuentra, pero fue colocado después del bucle for en lugar de dentro de él. Mueva el bloque al cuerpo del bucle for para que el reinicio solo ocurra mientras cb -> args[0] todavía esté dentro de los límites. ERROR: KASAN: slab-fuera-de-límites en nfnl_cthelper_dump_table+0x9f/0x1b0 Lectura de tamaño 8 en la dirección ffff888104ca3000 por la tarea poc_cthelper/131 Traza de Llamada: nfnl_cthelper_dump_table+0x9f/0x1b0 netlink_dump+0x333/0x880 netlink_recvmsg+0x3e2/0x4b0 sock_recvmsg+0xde/0xf0 __sys_recvfrom+0x150/0x200 __x64_sys_recvfrom+0x76/0x90 do_syscall_64+0xc3/0x6e0 Asignado por la tarea 1: __kvmalloc_node_noprof+0x21b/0x700 nf_ct_alloc_hashtable+0x65/0xd0 nf_conntrack_helper_init+0x21/0x60 nf_conntrack_init_start+0x18d/0x300 nf_conntrack_standalone_init+0x12/0xc0
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43450 changed 2026-11-06 | CVE Terms of Use |
| NVD | CVE-2026-43450 changed 2026-11-11 | Public domain |