Vulnerability record
gve: fix out-of-bounds read in gve_get_flow_rule_entry()
In the Linux kernel, the following vulnerability has been resolved:
gve: fix out-of-bounds read in gve_get_flow_rule_entry()
gve_get_flow_rule_entry() checks the requested location against the first and last cached rules, but rules_cache_num can be 0 while rules_cache_synced is true: GVE_FLOW_RULE_QUERY_RULES returns the rules from the requested location onwards, so a request past the last installed rule - or any request when no rules are installed - returns zero rules, which the driver accepts and marks as synced.
The next query evaluates rules_cache[*cache_num - 1] with *cache_num == 0.…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources