CVE 7.8 HIGH

netfilter: nft_set_pipapo: split gc into unlink and reclaim phase_CVE-2026-23351

7.8 / 10
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nft_set_pipapo: split gc into unlink and reclaim phase

Yiming Qian reports Use-after-free in the pipapo set type:
Under a large number of expired elements, commit-time GC can run for a very
long time in a non-preemptible context, triggering soft lockup warnings and
RCU stall reports (local denial of service).

We must split GC in an unlink and a reclaim phase.

We cannot queue elements for freeing until pointers have been swapped.
Expired elements are still exposed to both the packet path and userspace
dumpers via the live copy of the data structure.

call_rcu() does not protect us: dump operations or element lookups starting
after call_rcu has fired can still observe the free'd element, unless the
commit phase has made enough progress to swap the clone and live pointers
before any new reader has picked up the old version.

This a similar approach as done recently for the rbtree backend in commit
35f83a75529a ("netfilter: nft_set_rbtree: don't gc elements on insert").

Basic Information

ID CVE-2026-23351
Source Linux
Published Mar 25, 2026 at 10:27
Modified Apr 2, 2026 at 14:44

Affected Product

Vendor Linux
Product Linux
Version 3c4287f62044a90e73a561aa05fc46e62da173da
Affected Versions Linux Linux 3c4287f62044a90e73a561aa05fc46e62da173da
Linux Linux 3c4287f62044a90e73a561aa05fc46e62da173da
Linux Linux 3c4287f62044a90e73a561aa05fc46e62da173da
Linux Linux 3c4287f62044a90e73a561aa05fc46e62da173da
Linux Linux 3c4287f62044a90e73a561aa05fc46e62da173da
Linux Linux 3c4287f62044a90e73a561aa05fc46e62da173da
Linux Linux 5.6

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.