netfilter: nf_tables: skip expired catchall elements on insert and delete (Linux Linux)

CVE-2026-98484
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.21 % · centile 11 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: skip expired catchall elements on insert and delete nft_setelem_catchall_insert() looks up duplicates with nft_set_elem_active() only, while nft_set_catchall_lookup() and the dump path additionally skip expired elements. Once a catchall element with a timeout expires, this predicate drift makes it invisible to userspace dumps, yet it still blocks re-insertion: with NLM_F_EXCL the request fails with -EEXIST, and without it the request reports success but silently inserts nothing. The stale entry only goes away when the (user-tunable) gc interval elapses, so the catchall rule may silently stop matching for an arbitrarily long time after its first expiration. The delete path shows the same drift: nft_setelem_catchall_deactivate() picks the first active-next entry in the catchall list, so with an expired entry still pending GC it retires the stale entry instead of the fresh one, and it deactivates an element that userspace no longer sees instead of failing with -ENOENT. Align both walks with the lookup and dump predicates: only an element that is active and not expired counts as a duplicate or delete candidate, using the per-netns timestamp taken at transaction start, in line with the set backend .insert/.deactivate and catchall GC sync paths.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected aaa31047a6d25da0fa101da1ed544e1247949b40 < 2462ff0861f0dd5b2abdc3e95c3360d8566ab081 ; affected aaa31047a6d25da0fa101da1ed544e1247949b40 < f347d71d0d1a2157d8ecadbe1fba69cff32fce98 ; affected aaa31047a6d25da0fa101da1ed544e1247949b40 < 5e20b39aa7844769a7a782484bc1a809ffbc513e ; affected aaa31047a6d25da0fa101da1ed544e1247949b40 < 2f07da3881525f7cbfed1ced2796c71a201505b9 ; affected aaa31047a6d25da0fa101da1ed544e1247949b40 < 12cf803edfffef96f6415f0b5dbc7ec88842ea0f ; affected aaa31047a6d25da0fa101da1ed544e1247949b40 < 4fb8b1ccc475651e480e509de126bb9ce7f3cff9
Linux · Linuxaffected 5.13 ; unaffected 0 < 5.13 ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.112 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD