5.5medium
netfilter: ctnetlink: zero expect NAT fields when CTA_EXPECT_NAT absent
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: ctnetlink: zero expect NAT fields when CTA_EXPECT_NAT absent ctnetlink_alloc_expect() allocates expectations from a non-zeroing slab cache via nf_ct_expect_alloc(). When CTA_EXPECT_NAT is not present in the netlink message, saved_addr and saved_proto are never initialized. Stale data from a previous slab occupant can then be dumped to userspace by ctnetlink_exp_dump_expect(), which checks these fields to decide whether to emit CTA_EXPECT_NAT. The safe sibling nf_ct_expect_init(), used by the packet path, explicitly zeroes these fields. Zero saved_addr, saved_proto and dir in the else branch, guarded by IS_ENABLED(CONFIG_NF_NAT) since these fields only exist when NAT is enabled. Confirmed by priming the expect slab with NAT-bearing expectations, freeing them, creating a new expectation without CTA_EXPECT_NAT, and observing that the ctnetlink dump emits a spurious CTA_EXPECT_NAT containing stale data from the prior allocation.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 076a0ca02644657b13e4af363f487ced2942e9cb before a5a89db6981a1ddf2314bf50cb49db5a3146185f, from 076a0ca02644657b13e4af363f487ced2942e9cb before 1c2ebdeff8d088a2e47ae25d7b38447249adace2, from 076a0ca02644657b13e4af363f487ced2942e9cb before a64b7bf84b4d5ea54218c5d374ec87fff9000f43, from 076a0ca02644657b13e4af363f487ced2942e9cb before 2898080c054ea4d6ddfaaf21bbedbc229a9a8376, from 076a0ca02644657b13e4af363f487ced2942e9cb before fd002ff2ea030cbfb0188a11b3c60ce7f84485f4, from 076a0ca02644657b13e4af363f487ced2942e9cb before 929f7a9a7aad9404a5867216c3f8738232355b38, from 076a0ca02644657b13e4af363f487ced2942e9cb before bff0f4f06f12d6d9bc565a3e1378abd4f6f5ce36, from 076a0ca02644657b13e4af363f487ced2942e9cb before 35177c6877134a21315f37d57a5577846225623e and 1 more Not affected: before 3.4, 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 3.4 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: ctnetlink: zero expect NAT fields when CTA_EXPECT_NAT absent ctnetlink_alloc_expect() allocates expectations from a non-zeroing slab cache via nf_ct_expect_alloc(). When CTA_EXPECT_NAT is not present in the netlink message, saved_addr and saved_proto are never initialized. Stale data from a previous slab occupant can then be dumped to userspace by ctnetlink_exp_dump_expect(), which checks these fields to decide whether to emit CTA_EXPECT_NAT. The safe sibling nf_ct_expect_init(), used by the packet path, explicitly zeroes these fields. Zero saved_addr, saved_proto and dir in the else branch, guarded by IS_ENABLED(CONFIG_NF_NAT) since these fields only exist when NAT is enabled. Confirmed by priming the expect slab with NAT-bearing expectations, freeing them, creating a new expectation without CTA_EXPECT_NAT, and observing that the ctnetlink dump emits a spurious CTA_EXPECT_NAT containing stale data from the prior allocation.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfilter: ctnetlink: poner a cero los campos NAT de expect cuando CTA_EXPECT_NAT está ausente ctnetlink_alloc_expect() asigna expectativas de una caché de losas (slab cache) que no inicializa a cero a través de nf_ct_expect_alloc(). Cuando CTA_EXPECT_NAT no está presente en el mensaje netlink, saved_addr y saved_proto nunca se inicializan. Datos obsoletos de un ocupante anterior de la losa (slab) pueden entonces ser volcados al espacio de usuario (userspace) por ctnetlink_exp_dump_expect(), que comprueba estos campos para decidir si emitir CTA_EXPECT_NAT. El hermano seguro nf_ct_expect_init(), utilizado por la ruta de paquetes, explícitamente pone a cero estos campos. Poner a cero saved_addr, saved_proto y dir en la rama ’else’, protegido por IS_ENABLED(CONFIG_NF_NAT) ya que estos campos solo existen cuando NAT está habilitado. Confirmado cebando la losa de expectativas (expect slab) con expectativas que contienen NAT, liberándolas, creando una nueva expectativa sin CTA_EXPECT_NAT, y observando que el volcado de ctnetlink emite un CTA_EXPECT_NAT espurio que contiene datos obsoletos de la asignación anterior.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43026 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2026-43026 changed 2026-11-11 | Public domain |