vsock/virtio: bind uarg before filling zerocopy skb
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.97, 6.18.35, 7.0.12
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: bind uarg before filling zerocopy skb virtio_transport_send_pkt_info() allocates or reuses the zerocopy uarg before entering the send loop, but virtio_transport_alloc_skb() still fills the skb before it inherits that uarg. When fixed-buffer vectored zerocopy hits MAX_SKB_FRAGS, io_sg_from_iter() may partially attach managed frags and return -EMSGSIZE. The rollback path call kfree_skb() to free an skb that carries SKBFL_MANAGED_FRAG_REFS but no uarg, so skb_release_data() falls through to ordinary frag unref. Pass the uarg into virtio_transport_alloc_skb() and bind it immediately before virtio_transport_fill_skb(). This keeps control or no-payload skbs untouched while ensuring success and rollback share one lifetime rule.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 581512a6dc939ef122e49336626ae159f3b8a345 · fixed in 72194f65050958e4c8e069adb6c5d89ef81ca197; From 581512a6dc939ef122e49336626ae159f3b8a345 · fixed in b62e2b2b4a50953ca952f3cd3f77dd62dc50fd5d; From 581512a6dc939ef122e49336626ae159f3b8a345 · fixed in 5d317573f1d48e76cce5fb6250452b6e4102e0fb; From 581512a6dc939ef122e49336626ae159f3b8a345 · fixed in 1e584c304cfb94a759417130b1fc6d30b30c4cce
- Linux Linux
6.7
- KernelLinux
From 6.7.0 · fixed in 6.12.97; From 6.13.0 · fixed in 6.18.35; From 6.19.0 · fixed in 7.0.12