netfilter: ctnetlink: remove refcounting in expectation dumpers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cf6994c2b9812a9f02b99e89df411ffc5db9c779 · < a4d634ded4d3d400f115d84f654f316f249531c9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ctnetlink: remove refcounting in expectation dumpers
Same pattern as previous patch: do not keep the expectation object alive via refcount, only store a cookie value and then use that as the skip hint for dump resumption.
AFAICS this has the same issue as the one resolved in the conntrack dumper, when we do if (!refcount_inc_not_zero(&exp->use))
to increment the refcount, there is a chance that exp == last, which causes a double-increment of the refcount and subsequent memory leak.
From the CVE record · Linux
A refcounting issue in the Linux kernel’s netfilter ctnetlink expectation dumper can double-increment an expectation object’s reference count, causing a memory leak. The input does not specify how an attacker could trigger the issue or whether network access, authentication, or user interaction is required.
Teams running the Linux kernel should check their deployments; affected versions are not specified.