Memory-safety issues in dataplane that could lead to DoS
Description
Impact
Multiple memory-safety defects exist in the NeuVector Enforcer dataplane (dp), the C-based deep packet inspection (DPI/DLP) engine that runs inside the privileged, host-networked Enforcer DaemonSet. The dp process inspects live network traffic flowing to and from monitored workloads, so these defects can be reached by crafted traffic without any NeuVector credentials.
A remote attacker who can cause specially crafted traffic to traverse a monitored workload can crash or hang the dataplane process on the affected node. Because dp is the component that performs inspection and policy enforcement, its loss removes network security enforcement from that node. A packet-triggered crash is reproducible on demand and repeats across restarts, making the outage persistent rather than transient. The impact is limited to denial of service (availability); no confidentiality or integrity impact has been identified.
Four distinct defects are fixed:
| # | Defect | Component | Bug class |
|---|---|---|---|
| 1 | Kafka parser out-of-bounds read | Kafka protocol parser | Out-of-bounds read (CWE-125) |
| 2 | IPv6 use-after-free | IPv6 packet handling | Use-after-free (CWE-416) |
| 3 | TDS one-byte stack write | TDS protocol parser | Out-of-bounds write (CWE-787) |
| 4 | Proxymesh NULL pointer dereference | Proxymesh handling | NULL pointer dereference (CWE-476) |
All four result in high availability impact. The most severe (the Kafka out-of-bounds read) requires no special conditions and is reachable by an unauthenticated network attacker; the others require additional preconditions (see below).
Preconditions:
- Kafka OOB read: No special conditions. Reachable by an unauthenticated network attacker who can send crafted Kafka-shaped traffic through a monitored workload.
- IPv6 use-after-free: Reachable via the network but requires a specific sequence/timing of IPv6 traffic to trigger the freed-memory condition.
- TDS one-byte stack write: Reachable via the network but requires a specific TDS protocol condition to trigger the single-byte out-of-bounds stack write.
- Proxymesh NULL dereference: Requires adjacent-network access and a proxymesh-enabled configuration, with partial reliance on timing.
Note: Exploitation requires only the ability to send traffic that traverses a workload monitored by NeuVector. DPI is NeuVector's default function, so no unusual deployment configuration is required for the dataplane to parse the triggering traffic.
Patches
This vulnerability has been fixed. Affected versions: >= 5.6.0, < 5.6.5; >= 5.5.0, < 5.5.6. Patched versions: 5.7.0, 5.6.5, 5.5.6.
Users are advised to upgrade to the fixed version as soon as possible. The fix ships inside the Enforcer image; air-gapped and Rancher-bundled NeuVector installations require the rebuilt image.
Workarounds
There are no workarounds for this vulnerability. Restricting or filtering untrusted traffic to monitored workloads may reduce exposure but does not eliminate the underlying defects.
References
For more information
If you have any questions or comments about this advisory:
- Open an issue in the neuvector/neuvector repository
- Email the NeuVector security team
Credits
Thanks to @venkateshjayagopal for discovering and reporting these issues.