netfilter: nf_conncount: update last_gc only when GC has been performed
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d265929930e2ffafc744c0ae05fb70acd53be1ee · < 8bdafdf4900040a81422056cabe5e00a37bd101a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conncount: update last_gc only when GC has been performed
Currently last_gc is being updated everytime a new connection is tracked, that means that it is updated even if a GC wasn't performed. With a sufficiently high packet rate, it is possible to always bypass the GC, causing the list to grow infinitely.
Update the last_gc value only when a GC has been actually performed.
From the CVE record · Linux
In the Linux kernel, nf_conncount updates its garbage-collection timestamp even when garbage collection has not run. At a sufficiently high packet rate, an attacker can keep garbage collection from running, causing the list to grow without bound. The input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with the affected nf_conncount code should check their versions; affected versions are not specified.