net/sched: act_ct: fix ref leak when switching zones
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act_ct: fix ref leak when switching zones
When switching zones or network namespaces without doing a ct clear in between, it is now leaking a reference to the old ct entry. That's because tcf_ct_skb_nfct_cached() returns false and tcf_ct_flow_table_lookup() may simply overwrite it.
The fix is to, as the ct entry is not reusable, free it already at tcf_ct_skb_nfct_cached().
From the CVE record · Linux
The Linux kernel’s net/sched act_ct can leak a reference to an old connection-tracking entry when switching zones or network namespaces without clearing the entry first. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the act_ct fix; affected versions are not specified.