7.8high
netfilter: nf_tables: release flowtable after rcu grace period on error
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.18% (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_tables: release flowtable after rcu grace period on error Call synchronize_rcu() after unregistering the hooks from error path, since a hook that already refers to this flowtable can be already registered, exposing this flowtable to packet path and nfnetlink_hook control plane. This error path is rare, it should only happen by reaching the maximum number hooks or by failing to set up to hardware offload, just call synchronize_rcu(). There is a check for already used device hooks by different flowtable that could result in EEXIST at this late stage. The hook parser can be updated to perform this check earlier to this error path really becomes rarely exercised. Uncovered by KASAN reported as use-after-free from nfnetlink_hook path when dumping hooks.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before 29538fb3f412f3ce5ad9f97fe7fd84952dacd3af, from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before ec0f801e5ce0162fc4fea95607c716b264d283fb, from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before d2632de96ccb066e0131ad1494241b9c281c60b8, from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before adee3436ccd29f1e514c028899e400cbc6d84065, from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before 7e3955b282eae20d61c75e499c75eade51c20060, from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before c8092edb9a11f20f95ccceeb9422b7dd0df337bd, from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before e78a2dcc7cfb87b64a631441ca7681492b347ef6, from 3b49e2e94e6ebb8b23d0955d9e898254455734f8 before d73f4b53aaaea4c95f245e491aa5eeb8a21874ce and 1 more Not affected: before 4.16, from 5.10.273 up to 5.10.*, from 5.15.224 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 4.16.1 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.78, from 6.13 before 6.18.20, from 6.19 before 6.19.10, 4.16, 7.0 | NVD |
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: nf_tables: release flowtable after rcu grace period on error Call synchronize_rcu() after unregistering the hooks from error path, since a hook that already refers to this flowtable can be already registered, exposing this flowtable to packet path and nfnetlink_hook control plane. This error path is rare, it should only happen by reaching the maximum number hooks or by failing to set up to hardware offload, just call synchronize_rcu(). There is a check for already used device hooks by different flowtable that could result in EEXIST at this late stage. The hook parser can be updated to perform this check earlier to this error path really becomes rarely exercised. Uncovered by KASAN reported as use-after-free from nfnetlink_hook path when dumping hooks.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfilter: nf_tables: liberar la tabla de flujos después del período de gracia de RCU en caso de error Llamar a synchronize_rcu() después de desregistrar los hooks de la ruta de error, ya que un hook que ya se refiere a esta tabla de flujos puede estar ya registrado, exponiendo esta tabla de flujos a la ruta de paquetes y al plano de control de nfnetlink_hook. Esta ruta de error es rara, solo debería ocurrir al alcanzar el número máximo de hooks o al fallar la configuración para la descarga de hardware; simplemente llamar a synchronize_rcu(). Existe una comprobación para hooks de dispositivo ya utilizados por una tabla de flujos diferente que podría resultar en EEXIST en esta etapa tardía. El analizador de hooks puede ser actualizado para realizar esta comprobación antes, para que esta ruta de error realmente se ejercite raramente. Descubierto por KASAN, reportado como uso después de liberación desde la ruta de nfnetlink_hook al volcar los hooks.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23392 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2026-23392 changed 2026-11-10 | Public domain |