Linux
netfilter: conntrack: tcp: do not force CLOSE on invalid-seq RST without direction check
In the Linux kernel, the following vulnerability has been resolved: netfilter: conntrack: tcp: do not force CLOSE on invalid-seq RST without direction check An unintended behavior in the TCP conntrack state machine allows a connection to be forced into the CLOSE state using an RST packet with an invalid sequence number. Specifically, after a SYN packet is observed, an RST with an invalid SEQ can transition the conntrack entry to TCP_CONNTRACK_CLOSE, regardless of whether the RST corresponds to the expected reply direction. The relevant code path assumes the RST is a response to an outgoing SYN, but does not validate packet direction or ensure that a matching SYN was actually sent in the opposite direction. As a result, a crafted packet sequence consisting of a SYN followed by an invalid-sequence RST can prematurely terminate an active NAT entry. This makes connection teardown easier than intended. So, tighten the state transition logic to ensure that RST-triggered CLOSE transitions only occur when the RST is a valid response to a previously observed SYN in the correct direction.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < 2006979a15af5404bf932a325357683c0bac1656
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < 6476c17d536dbd321c073242e762ddb2713a1238
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < f5547bebc416d56f56fb5b86dc20aabfa42165a0
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < 2bb6d82b586ea5a4cb73bbdd6b7432e96096bc77
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < f206def4e86d810f927ba1d8e322ea72b29bce58
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < b98ab51c45c5608a1c19ce7fd17a3032469bb83f
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < d67c6adee8d1b65330d0174c4c367faba14e80a8
- >= 9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1, < bed6e04be8e6b9133d8b16d5a42d0e0ce674fa9a
Fixed in 2006979a15af5404bf932a325357683c0bac1656, 6476c17d536dbd321c073242e762ddb2713a1238, f5547bebc416d56f56fb5b86dc20aabfa42165a0, 2bb6d82b586ea5a4cb73bbdd6b7432e96096bc77, f206def4e86d810f927ba1d8e322ea72b29bce58, b98ab51c45c5608a1c19ce7fd17a3032469bb83f, d67c6adee8d1b65330d0174c4c367faba14e80a8, bed6e04be8e6b9133d8b16d5a42d0e0ce674fa9a
- 2.6.15
Fixed in 0, 5.10.259, 5.15.210, 6.1.176, 6.6.143, 6.12.93, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to 2006979a15af5404bf932a325357683c0bac1656 or 6476c17d536dbd321c073242e762ddb2713a1238 or f5547bebc416d56f56fb5b86dc20aabfa42165a0 or 2bb6d82b586ea5a4cb73bbdd6b7432e96096bc77 or f206def4e86d810f927ba1d8e322ea72b29bce58 or b98ab51c45c5608a1c19ce7fd17a3032469bb83f or d67c6adee8d1b65330d0174c4c367faba14e80a8 or bed6e04be8e6b9133d8b16d5a42d0e0ce674fa9a or later.
Upgrade Linux to 0 or 5.10.259 or 5.15.210 or 6.1.176 or 6.6.143 or 6.12.93 or 6.18.35 or 7.0.12 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.