VDB

CVE-2026-52994

CVE-2026-52994 PUBLISHED

vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting

Reported by linux · Published June 24, 2026

In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting virtio_transport_init_zcopy_skb() uses iter->count as the size argument for msg_zerocopy_realloc(), which in turn passes it to mm_account_pinned_pages() for RLIMIT_MEMLOCK accounting. However, this function is called after virtio_transport_fill_skb() has already consumed the iterator via __zerocopy_sg_from_iter(), so on the last skb, iter->count will be 0, skipping the RLIMIT_MEMLOCK enforcement. Pass pkt_len (the total bytes being sent) as an explicit parameter to virtio_transport_init_zcopy_skb() instead of reading the already-consumed iter->count. This matches TCP and UDP, which both call msg_zerocopy_realloc() with the original message size.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinux6af1736b5810bc8a4a43a8518530113f5a757dc1, 6.7

Affected products

VendorProductVersions
LinuxLinux581512a6dc939ef122e49336626ae159f3b8a345, 581512a6dc939ef122e49336626ae159f3b8a345, 581512a6dc939ef122e49336626ae159f3b8a345
LinuxLinux6.7, 0, 6.18.33
LinuxLinux581512a6dc939ef122e49336626ae159f3b8a345, 6.7, 581512a6dc939ef122e49336626ae159f3b8a345
amazon:2023kernel6.180
amazon:2023perf6.180
amazon:2023kernel-livepatch-6.18.33-63.1240
amazon:2023bpftool6.180
amazon:2023kernel6.18-devel0
linuxlinux_kernel6.7, 6.7, 6.7
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023python3-perf6.180
amazon:2023kernel6.18-tools0
amazon:2023kernel6.18-modules-extra-common0

Timeline

  • Jun 24, 2026 CVE Published
  • Jun 25, 2026 Coalition ESS Score
  • Jun 26, 2026 EPSS Score (8 in total, the first dated here)
  • Aug 11, 2026 Distribution Patch (63 in total, the first dated here)
  • Aug 11, 2026 Security Advisory (63 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-52994
vulnetix vdb fixes CVE-2026-52994

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-52994/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›