{"id":"CVE-2026-99940","aliases":["CVE-2026-99940"],"related":[],"kind":"vulnerability","state":"published","title":"gve: fix out-of-bounds read in gve_get_flow_rule_entry()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:18:28.408Z","modified":"2026-11-30T14:20:30.967Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6f3bc487565d30ae9535e338efad213dd74c04ec","fixed":"4f869e480eda62fcdbafd841a49c2e5b04bb2cd3","status":"affected"},{"type":"git","introduced":"6f3bc487565d30ae9535e338efad213dd74c04ec","fixed":"ca59f6aa7c29c5248ea996d4a5e2fa7964ae74e8","status":"affected"},{"type":"git","introduced":"6f3bc487565d30ae9535e338efad213dd74c04ec","fixed":"3b90249fcec9fd3727f2c6ac973410a13bf273d8","status":"affected"},{"type":"git","introduced":"6f3bc487565d30ae9535e338efad213dd74c04ec","fixed":"45e0a63f9c86a558afc70d79b6df38f8ec7f502a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/4f869e480eda62fcdbafd841a49c2e5b04bb2cd3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ca59f6aa7c29c5248ea996d4a5e2fa7964ae74e8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b90249fcec9fd3727f2c6ac973410a13bf273d8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45e0a63f9c86a558afc70d79b6df38f8ec7f502a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99940","url":"https://www.cve.org/CVERecord?id=CVE-2026-99940","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:28.408Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99940","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99940","licence":"Public domain","modified":"2026-11-30T14:20:30.967Z"}],"updatedAt":"2026-11-30T14:33:33.255Z","epss":{"score":0.00309,"percentile":0.25604,"date":"2026-12-01T12:00:22.000Z"}}