Security #8978
closedtcp: missing urgent policy preserves CVE-2024-55629 evasion
f345ff472184cfe1ac845d43b819d3efbe19a5b2
Description
- Summary
The remediation for CVE-2024-55629 depends on `stream.reassembly.urgent.policy` being set to `oob`, but the compiled fallback when the key is absent remains `TCP_STREAM_URGENT_INLINE`. Configurations inherited from 7.0.x therefore preserve the vulnerable behavior after an upgrade to 8.x or current main.
Fresh 8.x installations using the shipped configuration are protected because that configuration explicitly selects `oob`. The affected case is a missing or commented key, particularly after a configuration-preserving upgrade.
- Affected scope
- Suricata 7.0.8 through 7.0.17 shipped the urgent-policy setting commented out with `inline` shown as the value. The 7.0.x branch is now end of life, but these configurations are commonly carried into upgrades.
- Suricata 8.0.6 and current main retain `TCP_STREAM_URGENT_INLINE` as the compiled fallback. Their shipped configurations explicitly select `oob`, so fresh installations are protected.
- An 8.x or main deployment using a preserved configuration without the key resolves to `inline` and remains affected.
- Impact
For endpoints that treat TCP urgent data as out of band, Suricata can reconstruct a different application stream than the endpoint. A Linux endpoint with `SO_OOBINLINE` disabled removes the urgent byte from the normal stream, while Suricata's `inline` policy retains it. This discrepancy can be used to evade content inspection.
In the end-to-end demonstration, the client sent `GET /mali`, an `X` byte with `MSG_OOB`, and then `cious HTTP/1.1`. The Linux endpoint parsed `/malicious`, while Suricata using the missing-key fallback did not detect the malicious request.
- Reproducer
A Suricata-Verify reproducer based on `tcp-urgp-01-oob` uses the same pcap and rules but supplies a `suricata.yaml` without `stream.reassembly.urgent.policy`.
Observed results:
- On 8.0.6 with the missing-key configuration, sids 1000001, 1000002, and 1000003 produce zero alerts.
- On current main with the missing-key configuration, all three produce zero alerts.
- Adding `--set stream.reassembly.urgent.policy=oob` makes all three signatures alert once.
- A control capture without urgent data is detected under every tested configuration.
Available reproducer files are `suricata.rules`, `test.yaml`, `suricata.yaml`, and `tcp-urgent1.pcap`. End-to-end captures are `U1_urgent_split.pcap` and `U0_control_no_urg.pcap`.
- Remediation
Consider making the compiled fallback match the safe value shipped in 8.x, so an absent key resolves to `oob` rather than `inline`. Also consider:
- warning when the urgent-policy key is absent;
- adding an absent-key regression test;
- documenting the setting in upgrade guidance; and
- amending the existing advisory's version and migration guidance.
- Related identifiers
This is an incomplete-remediation and upgrade-configuration gap for Redmine #7411/#7412, CVE-2024-55629, and GHSA-69wr-vhwg-84h2. It uses the same vulnerability primitive and should remain under the existing CVE rather than receive a new identifier.
- Limitations
The end-to-end test used Linux 6.8 with default socket options. The demonstrated discrepancy applies to endpoints that treat urgent data as out of band.
- Credit
Maksim Hayder
GitHub: torjan0
Files