{"id":"CVE-2026-52994","summary":"vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting\n\nvirtio_transport_init_zcopy_skb() uses iter-\u003ecount as the size argument\nfor msg_zerocopy_realloc(), which in turn passes it to\nmm_account_pinned_pages() for RLIMIT_MEMLOCK accounting. However, this\nfunction is called after virtio_transport_fill_skb() has already consumed\nthe iterator via __zerocopy_sg_from_iter(), so on the last skb, iter-\u003ecount\nwill be 0, skipping the RLIMIT_MEMLOCK enforcement.\n\nPass pkt_len (the total bytes being sent) as an explicit parameter to\nvirtio_transport_init_zcopy_skb() instead of reading the already-consumed\niter-\u003ecount.\n\nThis matches TCP and UDP, which both call msg_zerocopy_realloc() with\nthe original message size.","modified":"2026-07-12T03:55:21.444519952Z","published":"2026-06-24T16:29:07.360Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52994.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1cb36e252211506f51095fe7ced8286cc77b4c80"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6af1736b5810bc8a4a43a8518530113f5a757dc1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0117950075f0a9d5944980784c719d8ebcd4bff"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52994.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52994"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"581512a6dc939ef122e49336626ae159f3b8a345"},{"fixed":"6af1736b5810bc8a4a43a8518530113f5a757dc1"},{"fixed":"d0117950075f0a9d5944980784c719d8ebcd4bff"},{"fixed":"1cb36e252211506f51095fe7ced8286cc77b4c80"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52994.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.18.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-52994.json"}}],"schema_version":"1.7.5"}