CVE-2026-52994
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | 6af1736b5810bc8a4a43a8518530113f5a757dc1, 6.7 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 581512a6dc939ef122e49336626ae159f3b8a345, 581512a6dc939ef122e49336626ae159f3b8a345, 581512a6dc939ef122e49336626ae159f3b8a345 |
| Linux | Linux | 6.7, 0, 6.18.33 |
| Linux | Linux | 581512a6dc939ef122e49336626ae159f3b8a345, 6.7, 581512a6dc939ef122e49336626ae159f3b8a345 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.33-63.124 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| linux | linux_kernel | 6.7, 6.7, 6.7 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
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