{"id":"CVE-2026-52994","aliases":["CVE-2026-52994"],"related":[],"kind":"vulnerability","state":"published","title":"vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting","summary":"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->count 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->count\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->count.\n\nThis matches TCP and UDP, which both call msg_zerocopy_realloc() with\nthe original message size.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->count 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->count\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->count.\n\nThis matches TCP and UDP, which both call msg_zerocopy_realloc() with\nthe original message size.","source":"cvelist"}],"published":"2026-06-24T16:29:07.360Z","modified":"2026-11-06T17:18:00.147Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"581512a6dc939ef122e49336626ae159f3b8a345","fixed":"6af1736b5810bc8a4a43a8518530113f5a757dc1","status":"affected"},{"type":"git","introduced":"581512a6dc939ef122e49336626ae159f3b8a345","fixed":"d0117950075f0a9d5944980784c719d8ebcd4bff","status":"affected"},{"type":"git","introduced":"581512a6dc939ef122e49336626ae159f3b8a345","fixed":"1cb36e252211506f51095fe7ced8286cc77b4c80","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.18.33","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.10","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.7","fixed":"6.18.33"},{"status":"affected","introduced":"6.19","fixed":"7.0.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6af1736b5810bc8a4a43a8518530113f5a757dc1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d0117950075f0a9d5944980784c719d8ebcd4bff","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1cb36e252211506f51095fe7ced8286cc77b4c80","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T16:15:53.426Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52994","url":"https://www.cve.org/CVERecord?id=CVE-2026-52994","licence":"CVE Terms of Use","modified":"2026-11-06T16:23:52.943Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52994","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52994","licence":"Public domain","modified":"2026-11-06T17:18:00.147Z"}],"updatedAt":"2026-11-25T22:59:25.646Z","epss":{"score":0.00126,"percentile":0.02508,"date":"2026-12-01T12:00:22.000Z"}}