PT-2026-167258

CVE-2026-143400

·

تاريخ النشر

2026-12-03

·

تاريخ التحديث

2026-12-03

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

In the Linux kernel, the following vulnerability has been resolved:
virtio net: check RX buffer length before DMA sync
An RX queue that uses the DMA API (rq->use page pool dma, for example with VIRTIO F ACCESS PLATFORM) syncs each received buffer with page pool dma sync for cpu() using the length the device wrote to the used ring, and checks that length against the posted buffer only after the sync.
With SWIOTLB bouncing (swiotlb=force, or a confidential-computing guest), the sync copies from the shared bounce buffer into the guest's private page, so an oversized length also copies the bytes the device wrote past the posted buffer over the neighbouring page pool fragments. The later check drops the packet, but the copy has already happened. A malicious device, such as a host the confidential guest does not trust, can overwrite guest kernel memory next to an RX buffer with bytes it chooses, which is enough to take an unprivileged guest process to root.
Check the length before the sync in the per-fragment loops. receive buf() has to sync the header before the length check, because the mergeable error path reads num buffers from it, so limit that sync to the posted length. A device that reports correct lengths sees no change.
The driver has synced with the device's length since commit 295525e29a5b ("virtio net: merge dma operations when filling mergeable buffers"), at first in virtnet rq unmap(). Commit 24fbd3967f3f ("virtio net: add page pool support for buffer allocation") moved the sync to the page pool call sites that this patch changes, so the patch applies to v7.1 and later. Older kernels need a separate backport that limits the sync in virtnet rq unmap().
Found by an LLM code review agent auditing users of the DMA API; the fix and this changelog were also written with an LLM coding assistant and reviewed by us. Reproduced in QEMU with swiotlb=force and iommu platform=on, a test-only device change that reports a used length 64 bytes past the posted buffer and writes a marker there, and a guest kprobe module that reads the buffer after the sync: without this patch the marker reaches the guest page for small and mergeable buffers; with it the packets are dropped and counted in rx length errors. The virtio net selftest basic features.sh passes with and without mergeable buffers.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾