# CVE-2026-99940: gve: fix out-of-bounds read in gve_get_flow_rule_entry()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:28.408Z
- Modified: 2026-11-30T14:20:30.967Z
- Assigned by: Linux

## Description

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. The zero-initialised cache does not trip the earlier
comparison, *cache_num - 1 wraps to 0xFFFFFFFF in u32, and the read
faults about 352 GiB past the cache. ETHTOOL_GRXCLSRULE needs no
capability, so an unprivileged user can trigger it:

    BUG: unable to handle page fault for address: ff240996c4c64fa8
    #PF: supervisor read access in kernel mode
    RIP: gve_get_flow_rule_entry+0xd4/0x110 [gve]

Treat an empty cache as a cache miss and re-query.

(As written by CVE List.)

## Affected

- Linux Linux: from 6f3bc487565d30ae9535e338efad213dd74c04ec before 4f869e480eda62fcdbafd841a49c2e5b04bb2cd3; from 6f3bc487565d30ae9535e338efad213dd74c04ec before ca59f6aa7c29c5248ea996d4a5e2fa7964ae74e8; from 6f3bc487565d30ae9535e338efad213dd74c04ec before 3b90249fcec9fd3727f2c6ac973410a13bf273d8; from 6f3bc487565d30ae9535e338efad213dd74c04ec before 45e0a63f9c86a558afc70d79b6df38f8ec7f502a; 6.11 (not affected: before 6.11; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/4f869e480eda62fcdbafd841a49c2e5b04bb2cd3>
- <https://git.kernel.org/stable/c/ca59f6aa7c29c5248ea996d4a5e2fa7964ae74e8>
- <https://git.kernel.org/stable/c/3b90249fcec9fd3727f2c6ac973410a13bf273d8>
- <https://git.kernel.org/stable/c/45e0a63f9c86a558afc70d79b6df38f8ec7f502a>

## Sources

- CVE List: [CVE-2026-99940](https://www.cve.org/CVERecord?id=CVE-2026-99940), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99940](https://nvd.nist.gov/vuln/detail/CVE-2026-99940), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99940 · Whole record: https://cve.day/CVE-2026-99940.json · Rebuilt by cve.day 2026-11-30T14:33:33.255Z
