{"id":"CVE-2026-90142","state":"PUBLISHED","title":"virtio_net: Fix resize of the RX ring","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_net: Fix resize of the RX ring\n\nWhen a AF_XDP socket is attached, the virtnet_rx_resize\nshould resize the rq->xsk_buffs XSK buffer array. Otherwise,\nwhen the size grows, the virtnet_rx_resume() causes a write\npast the end of the array. This is easily reproducable with\n\n    ethtool -G ens3 rx 32\n    ./xdpsock -i eth0 -q 0 -r -z &\n    ethtool -G eth0 rx 256","publishedAt":"2026-09-17T16:06:39.122Z","updatedAt":"2026-10-21T12:50:02.541Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"5c941b5d989a15cdaa987a2c602fb168461c6186","versionType":"git"},{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"5235abdb760bbd7a6fcecf1890b5160b7a75a9ce","versionType":"git"},{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"8344c9233c8f77017174d9e280c5a26034d068b6","versionType":"git"},{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"d09c98a6da215bce2173a292e4b95c8de6ea5d51","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/virtio_net.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","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/virtio_net.c"]}],"references":["https://git.kernel.org/stable/c/5c941b5d989a15cdaa987a2c602fb168461c6186","https://git.kernel.org/stable/c/5235abdb760bbd7a6fcecf1890b5160b7a75a9ce","https://git.kernel.org/stable/c/8344c9233c8f77017174d9e280c5a26034d068b6","https://git.kernel.org/stable/c/d09c98a6da215bce2173a292e4b95c8de6ea5d51"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90142.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90142","state":"PUBLISHED","datePublished":"2026-09-17T16:06:39.122Z","dateUpdated":"2026-10-21T12:50:02.541Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.789Z"},"containers":{"cna":{"title":"virtio_net: Fix resize of the RX ring","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_net: Fix resize of the RX ring\n\nWhen a AF_XDP socket is attached, the virtnet_rx_resize\nshould resize the rq->xsk_buffs XSK buffer array. Otherwise,\nwhen the size grows, the virtnet_rx_resume() causes a write\npast the end of the array. This is easily reproducable with\n\n    ethtool -G ens3 rx 32\n    ./xdpsock -i eth0 -q 0 -r -z &\n    ethtool -G eth0 rx 256"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"5c941b5d989a15cdaa987a2c602fb168461c6186","versionType":"git"},{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"5235abdb760bbd7a6fcecf1890b5160b7a75a9ce","versionType":"git"},{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"8344c9233c8f77017174d9e280c5a26034d068b6","versionType":"git"},{"version":"e9f3962441c0a4d6f16c656e6c8aa02a3ccdd568","status":"affected","lessThan":"d09c98a6da215bce2173a292e4b95c8de6ea5d51","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/virtio_net.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","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/virtio_net.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5c941b5d989a15cdaa987a2c602fb168461c6186"},{"url":"https://git.kernel.org/stable/c/5235abdb760bbd7a6fcecf1890b5160b7a75a9ce"},{"url":"https://git.kernel.org/stable/c/8344c9233c8f77017174d9e280c5a26034d068b6"},{"url":"https://git.kernel.org/stable/c/d09c98a6da215bce2173a292e4b95c8de6ea5d51"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The overflow is driven by ring->rx_pending passed to virtnet_set_ringparam() from SIOCETHTOOL ETHTOOL_SRINGPARAM (ethtool_set_ringparam) or ETHTOOL_MSG_RINGS_SET (ethnl_set_rings), after virtnet_xsk_pool_enable() sized rq->xsk_buffs from AF_XDP bind(); received packets never supply the new vring length.\nAC:L - The reporter's sequence (ethtool -G rx 32, xdpsock -z, ethtool -G rx 256) deterministically grows the vring while leaving xsk_buffs at the old size; virtnet_rx_resume()->try_fill_recv()->virtnet_add_recvbuf_xsk() then passes rq->vq->num_free to xsk_buff_alloc_batch(). The attacker controls both sizes and the UMEM fill ring; there is no race.\nPR:L - ETHTOOL_MSG_RINGS_SET is GENL_UNS_ADMIN_PERM (netlink_ns_capable CAP_NET_ADMIN) and the ioctl path checks ns_capable(net->user_ns, CAP_NET_ADMIN); AF_XDP socket() checks ns_capable(net->user_ns, CAP_NET_RAW) in xsk_create(). Both are available in a user-owned netns that holds the virtio_net device, not init-namespace root.\nUI:N - The attacker themselves issues the ethtool ring-resize ioctl/netlink and bind()s the AF_XDP zero-copy socket (xdpsock -z) that calls virtnet_xsk_pool_enable(); no separate victim action such as mounting media is required.\nS:U - virtnet_add_recvbuf_xsk() overflows rq->xsk_buffs in the same kernel that hosts the virtio_net frontend. That is guest-kernel heap corruption, not a KVM/vhost guest-to-host escape or IOMMU bypass.\nC:H - After virtqueue_resize(), xsk_buff_alloc_batch() writes up to the new vring's num_free xdp_buff* values past the old xsk_buffs kvzalloc, corrupting adjacent heap objects with kernel pointers that can be turned into an arbitrary read.\nI:H - The same out-of-bounds xdp_buff* write, and the virtqueue_add_inbuf_premapped() loop that then consumes xsk_buffs[i] through that overflowed range, is kernel heap corruption usable for an arbitrary write or control-flow hijack.\nA:H - The heap overflow in virtnet_add_recvbuf_xsk() during virtnet_rx_resume() after virtqueue_resize() is a kernel memory-safety violation that oopses or panics even without a full exploit, matching the commit's write-past-end."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:50:02.541Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}