netfilter: ipset: fix region locking in hash types
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f66ee0410b1c3481ee75e5db9b34547b4d582465 · < e2ab67672b2288521a6146034a971f9a82ffc5c5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ipset: fix region locking in hash types
Region locking introduced in v5.6-rc4 contained three macros to handle the region locks: ahash_bucket_start(), ahash_bucket_end() which gave back the start and end hash bucket values belonging to a given region lock and ahash_region() which should give back the region lock belonging to a given hash bucket. The latter was incorrect which can lead to a race condition between the garbage collector and adding new elements when a hash type of set is defined with timeouts.
From the CVE record · Linux
An incorrect region-lock calculation in Linux kernel netfilter ipset hash types can cause a race between garbage collection and adding new elements when a hash-type set uses timeouts. The input does not specify how an attacker could trigger the race or whether access or user interaction is required.
Engineers running Linux kernels with netfilter ipset hash-type sets configured with timeouts should check their exposure; affected versions are not specified.