REDHAT-BUG-2453458: Medium severity Open vSwitch ovn-controller vulnerability
When generating an ICMP Destination Unreachable or Packet Too Big response, the handler copies a portion of the original packet into the ICMP error body using the IP header's self-declared total length (iptotlen for IPv4, ip6plen for IPv6) without validating it against the actual packet buffer size. A VM can send a short packet with an inflated IP length field that triggers an ICMP error (e.g., by hitting a reject ACL), causing ovn-controller to read heap memory beyond the valid packet data and include it in the ICMP response sent back to the VM.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Where feasible, change ACL rules that currently reject traffic to drop instead, to avoid triggering ICMP Destination Unreachable or Packet Too Big responses that can leak memory.
Network ACLs / virtual switch ACLs action = drop (do not generate ICMP errors) - Compensating control
At the hypervisor/virtual-switch or network edge, filter or block packets whose IP header total-length fields are inconsistent with the observed packet size (e.g., declared length larger than actual buffer). Restrict or isolate tenant VMs' ability to send such malformed packets toward components that generate ICMP error responses until the code fix is deployed.
- Operational
Modify ovn-controller to validate the IP header's declared total length (ip_tot_len for IPv4, ip6_plen for IPv6) against the actual packet buffer size before copying packet data into ICMP error bodies. Add bounds checking and sanitize the length used when constructing ICMP Destination Unreachable and Packet Too Big responses; deploy the code fix to affected instances.
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2453458?
The severity of REDHAT-BUG-2453458 is medium with a score of 4.
What vulnerability exists in REDHAT-BUG-2453458?
REDHAT-BUG-2453458 involves improper validation of copied data in ICMP error messages, potentially leading to memory corruption.
How does REDHAT-BUG-2453458 affect Open vSwitch?
REDHAT-BUG-2453458 can affect Open vSwitch by causing instability or crashes due to mishandled packet data.
How do I fix REDHAT-BUG-2453458?
To fix REDHAT-BUG-2453458, update to the latest version of Open vSwitch as provided in the Red Hat security advisories.
What are the potential impacts of REDHAT-BUG-2453458?
The potential impacts of REDHAT-BUG-2453458 include denials of service and possible remote exploitation of affected systems.