{"id":"CVE-2026-99046","state":"PUBLISHED","title":"gve: fix XSK buffer leak on error descriptor","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngve: fix XSK buffer leak on error descriptor\n\nWhen the error bit is set in the RX completion descriptor, the buf_state\nand its attached buffer should be freed. In the case of AF_XDP ZC, the\nXSK buffer was not freed, leading to a leak.\n\nThis issue was caught by LLM.","publishedAt":"2026-10-23T12:22:10.460Z","updatedAt":"2026-10-24T14:10:10.249Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c1fffc5d66a7147d557736c2341a511e0896d9ff","status":"affected","lessThan":"06656aaa7e43ae62b673c2244d27099b8b94a70d","versionType":"git"},{"version":"c1fffc5d66a7147d557736c2341a511e0896d9ff","status":"affected","lessThan":"889f763874855c575429f75946132a53c573aa14","versionType":"git"},{"version":"c1fffc5d66a7147d557736c2341a511e0896d9ff","status":"affected","lessThan":"9fed6a8ab8a5bacba2c709cb19d2dd6d2fa9112e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/google/gve/gve_rx_dqo.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.11","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/google/gve/gve_rx_dqo.c"]}],"references":["https://git.kernel.org/stable/c/06656aaa7e43ae62b673c2244d27099b8b94a70d","https://git.kernel.org/stable/c/889f763874855c575429f75946132a53c573aa14","https://git.kernel.org/stable/c/9fed6a8ab8a5bacba2c709cb19d2dd6d2fa9112e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99046.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99046","state":"PUBLISHED","datePublished":"2026-10-23T12:22:10.460Z","dateUpdated":"2026-10-24T14:10:10.249Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.388Z"},"containers":{"cna":{"title":"gve: fix XSK buffer leak on error descriptor","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngve: fix XSK buffer leak on error descriptor\n\nWhen the error bit is set in the RX completion descriptor, the buf_state\nand its attached buffer should be freed. In the case of AF_XDP ZC, the\nXSK buffer was not freed, leading to a leak.\n\nThis issue was caught by LLM."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c1fffc5d66a7147d557736c2341a511e0896d9ff","status":"affected","lessThan":"06656aaa7e43ae62b673c2244d27099b8b94a70d","versionType":"git"},{"version":"c1fffc5d66a7147d557736c2341a511e0896d9ff","status":"affected","lessThan":"889f763874855c575429f75946132a53c573aa14","versionType":"git"},{"version":"c1fffc5d66a7147d557736c2341a511e0896d9ff","status":"affected","lessThan":"9fed6a8ab8a5bacba2c709cb19d2dd6d2fa9112e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/google/gve/gve_rx_dqo.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.11","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/google/gve/gve_rx_dqo.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/06656aaa7e43ae62b673c2244d27099b8b94a70d"},{"url":"https://git.kernel.org/stable/c/889f763874855c575429f75946132a53c573aa14"},{"url":"https://git.kernel.org/stable/c/9fed6a8ab8a5bacba2c709cb19d2dd6d2fa9112e"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - A malformed Ethernet/IP packet received by gVNIC produces a DQO completion whose rx_error field denotes an invalid packet; gve_intr_dqo() schedules gve_napi_poll_dqo(), which reaches the patched gve_rx_dqo() through gve_rx_poll_dqo().\nAC:L - With a DQO-RDA AF_XDP zero-copy queue active, the sender can repeatedly transmit packets classified by the device as invalid; gve_rx_dqo() then deterministically takes the rx_error branch without a race or memory-layout dependency.\nPR:N - The gve_rx_dqo() receive path performs no authentication or capability check; xsk_create()'s CAP_NET_RAW check and XDP attachment are victim-side service provisioning, while the remote sender needs only packet access.\nUI:N - After gve_reg_xsk_pool() activates the pool, gve_intr_dqo() and NAPI process each error completion automatically without any victim action.\nS:U - The leak affects the guest kernel's own GVE XSK pool and DQO receive queue; it neither bypasses an IOMMU nor crosses the guest/hypervisor boundary.\nC:N - The lost xdp_buff_xsk remains allocated but unreturned; the branch performs no out-of-bounds read or data return, and gve_alloc_buf_state() clears the stale pointer before reusing the state.\nI:N - In the vulnerable XSK case, gve_free_buffer() releases only page-pool state and the buf_state while leaving the XSK object allocated, causing resource loss without a dangling access, memory corruption, or unauthorized modification.\nA:H - Each error completion omits xsk_buff_free()/xp_free(), removing one frame from the fixed XSK pool; repetition makes xsk_buff_alloc() fail in gve_alloc_buffer(), prevents RX-buffer reposting, and can stop the bound receive queue until the pool or service is reset."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-24T14:10:10.249Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.2.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}