CVE-2026-43114
JSON

9.4critical

netfilter: nft_set_pipapo_avx2: don't return non-matching entry on expiry

Severity
9.4critical CVSS:3.1 by Linux
Exploit likelihood
0.37% (higher than 32% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_pipapo_avx2: don't return non-matching entry on expiry New test case fails unexpectedly when avx2 matching functions are used. The test first loads a ranomly generated pipapo set with 'ipv4 . port' key, i.e. nft -f foo. This works. Then, it reloads the set after a flush: (echo flush set t s; cat foo) | nft -f - This is expected to work, because its the same set after all and it was already loaded once. But with avx2, this fails: nft reports a clashing element. The reported clash is of following form: We successfully re-inserted a . b c . d Then we try to insert a . d avx2 finds the already existing a . d, which (due to 'flush set') is marked as invalid in the new generation. It skips the element and moves to next. Due to incorrect masking, the skip-step finds the next matching element *only considering the first field*, i.e. we return the already reinserted "a . b", even though the last field is different and the entry should not have been matched. No such error is reported for the generic c implementation (no avx2) or when the last field has to use the 'nft_pipapo_avx2_lookup_slow' fallback. Bisection points to 7711f4bb4b36 ("netfilter: nft_set_pipapo: fix range overlap detection") but that fix merely uncovers this bug. Before this commit, the wrong element is returned, but erronously reported as a full, identical duplicate. The root-cause is too early return in the avx2 match functions. When we process the last field, we should continue to process data until the entire input size has been consumed to make sure no stale bits remain in the map.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 7400b063969bdca4a06cd97f1294d765c8eecbe1 before f8c39983fc9c1a978c82e6f2df7bfba8a8561587, from 7400b063969bdca4a06cd97f1294d765c8eecbe1 before c7babe2f28b507e17f28e9f753b7caec72d4857f, from 7400b063969bdca4a06cd97f1294d765c8eecbe1 before 1c43f0dd8691ddf8884793b481ddc7511cf593c3, from 7400b063969bdca4a06cd97f1294d765c8eecbe1 before fa4f1f52528c73989d820f32bfca06bec5afeece, from 7400b063969bdca4a06cd97f1294d765c8eecbe1 before 3d53f9aafd469ae1ea27051e00f5b96ca1b55d52, from 7400b063969bdca4a06cd97f1294d765c8eecbe1 before 07de44424bb7f17ef9357e8535df96d9e97c40cb, from 7400b063969bdca4a06cd97f1294d765c8eecbe1 before 0abbc43f71d99baadeeba6fa3fe1c80b676f57ed, from 7400b063969bdca4a06cd97f1294d765c8eecbe1 before d3c0037ffe1273fa1961e779ff6906234d6cf53c and 1 more
Not affected: before 5.7, from 5.10.258 up to 5.10.*, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.136 up to 6.6.*, from 6.12.83 up to 6.12.*
CVE List
kpatch-patchNot specifiedCVE List
kernelNot specified
Not affected: from 0:6.12.0-55.103.1.el10_0 before *, from 0:5.14.0-687.42.1.el9_8 before *, from 0:5.14.0-284.191.1.el9_2 before *, from 0:5.14.0-427.149.1.el9_4 before *, from 0:5.14.0-570.138.1.el9_6 before *
CVE List
kernel-rtNot specified
Not affected: from 0:5.14.0-284.191.1.rt14.476.el9_2 before *
CVE List
rhcosNot specified
Not affected: from 4.20.9.6.202609092300-0 before *, from 4.21.9.6.202609090322-0 before *, from 4.22.9.8.202609020733-0 before *
CVE List
libkrunNot specifiedCVE List
linux linux_kernelfrom 5.7 before 6.6.136, from 6.7 before 6.12.83, from 6.13 before 6.18.24, from 6.19 before 6.19.14, 7.0NVD

All scores

Linux9.4critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
redhat-SADP8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-20CWE-480

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

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_pipapo_avx2: don't return non-matching entry on expiry New test case fails unexpectedly when avx2 matching functions are used. The test first loads a ranomly generated pipapo set with 'ipv4 . port' key, i.e. nft -f foo. This works. Then, it reloads the set after a flush: (echo flush set t s; cat foo) | nft -f - This is expected to work, because its the same set after all and it was already loaded once. But with avx2, this fails: nft reports a clashing element. The reported clash is of following form: We successfully re-inserted a . b c . d Then we try to insert a . d avx2 finds the already existing a . d, which (due to 'flush set') is marked as invalid in the new generation. It skips the element and moves to next. Due to incorrect masking, the skip-step finds the next matching element *only considering the first field*, i.e. we return the already reinserted "a . b", even though the last field is different and the entry should not have been matched. No such error is reported for the generic c implementation (no avx2) or when the last field has to use the 'nft_pipapo_avx2_lookup_slow' fallback. Bisection points to 7711f4bb4b36 ("netfilter: nft_set_pipapo: fix range overlap detection") but that fix merely uncovers this bug. Before this commit, the wrong element is returned, but erronously reported as a full, identical duplicate. The root-cause is too early return in the avx2 match functions. When we process the last field, we should continue to process data until the entire input size has been consumed to make sure no stale bits remain in the map.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfilter: nft_set_pipapo_avx2: no devolver una entrada no coincidente al expirar Un nuevo caso de prueba falla inesperadamente cuando se utilizan funciones de coincidencia avx2. La prueba primero carga un conjunto pipapo generado aleatoriamente con clave ’ipv4 . puerto’, es decir, nft -f foo. Esto funciona. Luego, recarga el conjunto después de un vaciado: (echo flush set t s; cat foo) | nft -f - Se espera que esto funcione, porque es el mismo conjunto después de todo y ya se había cargado una vez. Pero con avx2, esto falla: nft informa de un elemento en conflicto. El conflicto reportado es de la siguiente forma: Reinsertamos con éxito a . b c . d Luego intentamos insertar a . d avx2 encuentra el a . d ya existente, el cual (debido a ’flush set’) está marcado como inválido en la nueva generación. Omite el elemento y pasa al siguiente. Debido a un enmascaramiento incorrecto, el paso de omisión encuentra el siguiente elemento coincidente solo considerando el primer campo, es decir, devolvemos el “a . b” ya reinsertado, aunque el último campo es diferente y la entrada no debería haber coincidido. No se informa de tal error para la implementación genérica en C (sin avx2) o cuando el último campo tiene que usar el mecanismo de reserva ’nft_pipapo_avx2_lookup_slow’. La bisección apunta a 7711f4bb4b36 (’netfilter: nft_set_pipapo: corregir la detección de superposición de rangos’) pero esa corrección simplemente desvela este error. Antes de este commit, se devuelve el elemento incorrecto, pero se informa erróneamente como un duplicado completo e idéntico. La causa raíz es un retorno demasiado temprano en las funciones de coincidencia avx2. Cuando procesamos el último campo, deberíamos continuar procesando datos hasta que se haya consumido todo el tamaño de entrada para asegurarnos de que no queden bits obsoletos en el mapa.

References

https://git.kernel.org/stable/c/f8c39983fc9c1a978c82e6f2df7bfba8a8561587
https://git.kernel.org/stable/c/c7babe2f28b507e17f28e9f753b7caec72d4857f
https://git.kernel.org/stable/c/1c43f0dd8691ddf8884793b481ddc7511cf593c3
https://git.kernel.org/stable/c/fa4f1f52528c73989d820f32bfca06bec5afeecepatch
https://git.kernel.org/stable/c/3d53f9aafd469ae1ea27051e00f5b96ca1b55d52patch
https://git.kernel.org/stable/c/07de44424bb7f17ef9357e8535df96d9e97c40cbpatch
https://git.kernel.org/stable/c/0abbc43f71d99baadeeba6fa3fe1c80b676f57edpatch
https://git.kernel.org/stable/c/d3c0037ffe1273fa1961e779ff6906234d6cf53cpatch
https://access.redhat.com/security/cve/CVE-2026-43114vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2466994issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43114.json
https://access.redhat.com/errata/RHSA-2026:66370vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-43114 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-43114 changed 2026-11-11Public domain