Description
In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: fix empty payload in tap skb for non-linear buffers For non-linear skbs, virtio_transport_build_skb() goes through virtio_transport_copy_nonlinear_skb() to copy the original payload in the new skb to be delivered to the vsockmon tap device. This manually initializes an iov_iter but does not set iov_iter.count. Since the iov_iter is zero-initialized, the copy length is zero and no payload is actually copied to the monitor interface, leaving data un-initialized. Fix this by removing the linear vs non-linear split and using skb_copy_datagram_iter() with iov_iter_kvec() for all cases, as vhost-vsock already does. This handles both linear and non-linear skbs, properly initializes the iov_iter, and removes the now unused virtio_transport_copy_nonlinear_skb(). While touching this code, let's also check the return value of skb_copy_datagram_iter(), even though it's unlikely to fail.
Mitigation
Minimal update. May introduce new vulnerabilities or breaking changes.
|
 debian 13 | | =6.12.38-1 || =6.12.41-1 || =6.12.43-1 || =6.12.43-1~bpo12+1 || =6.12.48-1 || =6.12.57-1 || =6.12.57-1~bpo12+1 || =6.12.63-1 || =6.12.63-1~bpo12+1 || =6.12.69-1 || =6.12.69-1~bpo12+1 || =6.12.73-1 || =6.12.73-1~bpo12+1 || =6.12.74-1 || =6.12.74-2 || =6.12.74-2~bpo12+1 || =6.12.85-1 || =6.12.85-1~bpo12+1 || =6.12.86-1 || =6.12.86-1~bpo12+1 || =6.12.88-1 || =6.12.88-1~bpo12+1 || =6.12.90-1~bpo12+1 || >=0 <6.12.90-1 | 6.12.90-1 |
 debian 14 | | =6.12.38-1 || =6.12.41-1 || =6.12.43-1 || =6.12.43-1~bpo12+1 || =6.12.48-1 || =6.12.57-1 || =6.12.57-1~bpo12+1 || =6.12.63-1 || =6.12.63-1~bpo12+1 || =6.12.69-1 || =6.12.69-1~bpo12+1 || =6.12.73-1 || =6.12.73-1~bpo12+1 || =6.12.74-1 || =6.12.74-2 || =6.12.74-2~bpo12+1 || =6.12.85-1 || =6.12.85-1~bpo12+1 || =6.12.86-1 || =6.12.86-1~bpo12+1 || =6.12.88-1 || =6.12.88-1~bpo12+1 || =6.12.90-1 || =6.12.90-1~bpo12+1 || =6.12.90-2 || =6.13.10-1~exp1 || =6.13.11-1~exp1 || =6.13.2-1~exp1 || =6.13.3-1~exp1 || =6.13.4-1~exp1 || =6.13.5-1~exp1 || =6.13.6-1~exp1 || =6.13.7-1~exp1 || =6.13.8-1~exp1 || =6.13.9-1~exp1 || =6.13~rc6-1~exp1 || =6.13~rc7-1~exp1 || =6.14.3-1~exp1 || =6.14.5-1~exp1 || =6.14.6-1~exp1 || =6.15-1~exp1 || =6.15.1-1~exp1 || =6.15.2-1~exp1 || =6.15.3-1~exp1 || =6.15.4-1~exp1 || =6.15.5-1~exp1 || =6.15.6-1~exp1 || =6.15~rc7-1~exp1 || =6.16-1~exp1 || =6.16.1-1~exp1 || =6.16.10-1 || =6.16.11-1 || =6.16.12-1 || =6.16.12-1~bpo13+1 || =6.16.12-2 || =6.16.3-1 || =6.16.3-1~bpo13+1 || =6.16.5-1 || =6.16.6-1 || =6.16.7-1 || =6.16.8-1 || =6.16.9-1 || =6.16~rc7-1~exp1 || =6.17.10-1 || =6.17.11-1 || =6.17.12-1 || =6.17.13-1 || =6.17.13-1~bpo13+1 || =6.17.2-1~exp1 || =6.17.5-1~exp1 || =6.17.6-1 || =6.17.7-1 || =6.17.7-2 || =6.17.8-1 || =6.17.8-1~bpo13+1 || =6.17.9-1 || =6.18.1-1~exp1 || =6.18.10-1 || =6.18.12-1 || =6.18.12-1~bpo13+1 || =6.18.13-1 || =6.18.14-1 || =6.18.15-1 || =6.18.15-1~bpo13+1 || =6.18.2-1~exp1 || =6.18.3-1 || =6.18.5-1 || =6.18.5-1~bpo13+1 || =6.18.8-1 || =6.18.9-1 || =6.18.9-1~bpo13+1 || =6.18~rc4-1~exp1 || =6.18~rc4-1~exp2 || =6.18~rc5-1~exp1 || =6.18~rc6-1~exp1 || =6.18~rc7-1~exp1 || =6.19-1~exp1 || =6.19.10-1 || =6.19.10-1~bpo13+1 || =6.19.11-1 || =6.19.11-1~bpo13+1 || =6.19.12-1 || =6.19.13-1 || =6.19.13-1~bpo13+1 || =6.19.14-1 || =6.19.14-1~bpo13+1 || =6.19.2-1~exp1 || =6.19.3-1~exp1 || =6.19.4-1~exp1 || =6.19.5-1~exp1 || =6.19.6-1 || =6.19.6-2 || =6.19.6-2~bpo13+1 || =6.19.8-1 || =6.19.8-1~bpo13+1 || =6.19~rc4-1~exp1 || =6.19~rc5-1~exp1 || =6.19~rc6-1~exp1 || =6.19~rc7-1~exp1 || =6.19~rc8-1~exp1 || =7.0-1~exp1 || =7.0.1-1~exp1 || =7.0.3-1 || =7.0.4-1 || =7.0.4-1~bpo13+1 || =7.0.7-1 || =7.0.7-1~bpo13+1 || =7.0.9-1~bpo13+1 || >=0 <7.0.9-1 | 7.0.9-1 |
 rpm rhel10 | | - | - |
 rpm rhel9 | | - | - |
 rpm rhel9 | | - | - |