REDHAT-BUG-2568681: Medium severity Linux Linux kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved:
netfilter: conntrack: tcp: use UNACK timeout for non-closing RST packets
Commit be0502a3f2e9 ("netfilter: conntrack: tcp: only close if RST matches exact sequence") keeps an established conntrack entry in ESTABLISHED when an in-window RST does not match the expected sequence number exactly, so the endpoint can validate the RST with a challenge ACK.
The timeout selection nevertheless uses the CLOSE timeout for every RST packet. The bug is that timeout selection is based on the packet type, not on the state transition result: even when RST validation keeps newstate in ESTABLISHED, the timeout is still forced to TCPCONNTRACKCLOSE.
Linux TCP independently rate limits challenge ACKs per socket. A second non-exact RST can therefore arrive after the first challenge ACK has restored the timeout but before the rate limit expires. The second RST lowers the timeout to 10 seconds again while the endpoint suppresses the second challenge ACK, allowing the conntrack entry to expire while both TCP endpoints remain established.
Using the ESTABLISHED timeout for such RSTs would avoid this short expiration window, but it could also retain stale entries for the five-day default because conntrack cannot reliably match the endpoint's exact TCP state.
Use the UNACK timeout for RST packets that leave the conntrack entry in TCPCONNTRACKESTABLISHED. Exact-match RSTs and accepted RST packet trains still fall through to timeouts[newstate], which preserves the CLOSE timeout when conntrack accepts the RST as closing the flow.
This avoids the aggressive 10-second expiration window for non-exact RSTs while preserving the short timeout for RSTs that conntrack accepts as closing the flow.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Patch be0502a3f2e9
Event History
Frequently Asked Questions
Which systems are exposed to this behavior?
Linux systems using netfilter connection tracking for established TCP flows are affected when they receive in-window RST packets whose sequence numbers do not exactly match the expected sequence number.
What would an attacker need to do to trigger the short conntrack expiration?
An attacker would need to send a non-exact in-window RST that causes a challenge ACK, then send a second such RST after the timeout is restored but before Linux TCP's per-socket challenge-ACK rate limit permits another challenge ACK. The second RST can reduce the conntrack timeout to 10 seconds while both endpoints remain established.
How can this condition appear operationally?
A conntrack entry can expire even though the two TCP endpoints remain established. This occurs because the entry retains the ESTABLISHED state after RST validation, but its timeout is selected as TCP_CONNTRACK_CLOSE for the RST packet.