Vulnerabilities · 2024 · Linux
CVE-2024-27066
Linux Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: virtio: packed: fix unmap leak for indirect desc table When use_dma_api and premapped are true, then the do_unmap is false. Because the do_unmap is false, vring_unmap_extra_packed is not called by detach_buf_packed. if (unlikely(vq->do_unmap)) { curr = id; for (i = 0; i < state->num; i++) { vring_unmap_extra_packed(vq, &vq->packed.desc_extra[curr]); curr = vq->packed.desc_extra[curr].next; } } So the indirect desc table is not unmapped. This causes the unmap leak. So here, we check vq->use_dma_api instead. Synchronously, dma info is updated based on use_dma_api judgment This bug does not occur, because no driver use the premapped with indirect.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140 · Patch
- git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e · Patch
- git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd · Patch
- git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100 · Patch
- nvd.nist.gov/vuln/detail/CVE-2024-27066
- cve.org/CVERecord?id=CVE-2024-27066
More vulnerabilities in Linux products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.