diff options
| author | David Carlier <devnexen@gmail.com> | 2026-04-11 21:57:21 +0300 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2026-05-24 23:55:47 +0300 |
| commit | d738feccb98cb224ebabecb703e98f5008276bff (patch) | |
| tree | ed627ce95b783f0e12ea52eb0f79e10fee242930 /include/linux/memory_hotplug.h | |
| parent | 73ce4a2949d97288ebee96102224f75506f6b14f (diff) | |
| download | linux-d738feccb98cb224ebabecb703e98f5008276bff.tar.xz | |
netfilter: nfnl_cthelper: apply per-class values when updating policies
When a userspace conntrack helper with multiple expectation classes is
updated via nfnetlink, every class ends up with the first class's
max_expected and timeout values.
nfnl_cthelper_update_policy_all() validates each new policy into the
corresponding slot of the temporary new_policy array, but the second
loop that commits the values into the live helper dereferences
new_policy as a pointer instead of indexing it, so every iteration
reads new_policy[0] regardless of i. An update that changes per-class
values is silently collapsed onto class 0's values with no error
returned to userspace.
Index the temporary array by i in the commit loop so each class gets
its own validated values.
Fixes: 2c422257550f ("netfilter: nfnl_cthelper: fix runtime expectation policy updates")
Cc: stable@vger.kernel.org
Signed-off-by: David Carlier <devnexen@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/linux/memory_hotplug.h')
0 files changed, 0 insertions, 0 deletions
