{"id":"CVE-2026-99940","summary":"gve: fix out-of-bounds read in gve_get_flow_rule_entry()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngve: fix out-of-bounds read in gve_get_flow_rule_entry()\n\ngve_get_flow_rule_entry() checks the requested location against the\nfirst and last cached rules, but rules_cache_num can be 0 while\nrules_cache_synced is true: GVE_FLOW_RULE_QUERY_RULES returns the rules\nfrom the requested location onwards, so a request past the last\ninstalled rule - or any request when no rules are installed - returns\nzero rules, which the driver accepts and marks as synced.\n\nThe next query evaluates rules_cache[*cache_num - 1] with\n*cache_num == 0. The zero-initialised cache does not trip the earlier\ncomparison, *cache_num - 1 wraps to 0xFFFFFFFF in u32, and the read\nfaults about 352 GiB past the cache. ETHTOOL_GRXCLSRULE needs no\ncapability, so an unprivileged user can trigger it:\n\n    BUG: unable to handle page fault for address: ff240996c4c64fa8\n    #PF: supervisor read access in kernel mode\n    RIP: gve_get_flow_rule_entry+0xd4/0x110 [gve]\n\nTreat an empty cache as a cache miss and re-query.","modified":"2026-12-01T21:02:34.320673674Z","published":"2026-11-30T13:18:28.408Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99940.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3b90249fcec9fd3727f2c6ac973410a13bf273d8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/45e0a63f9c86a558afc70d79b6df38f8ec7f502a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f869e480eda62fcdbafd841a49c2e5b04bb2cd3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca59f6aa7c29c5248ea996d4a5e2fa7964ae74e8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99940.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99940"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6f3bc487565d30ae9535e338efad213dd74c04ec"},{"fixed":"4f869e480eda62fcdbafd841a49c2e5b04bb2cd3"},{"fixed":"ca59f6aa7c29c5248ea996d4a5e2fa7964ae74e8"},{"fixed":"3b90249fcec9fd3727f2c6ac973410a13bf273d8"},{"fixed":"45e0a63f9c86a558afc70d79b6df38f8ec7f502a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99940.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99940.json"}}],"schema_version":"1.9.2"}