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.
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
ubuntu | 24.04 | noarch | linux | < 6.8.0-35.35 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-aws | < 6.8.0-1009.9 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-azure | < 6.8.0-1008.8 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-gcp | < 6.8.0-1008.9 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-gke | < 6.8.0-1004.7 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-ibm | < 6.8.0-1006.6 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-lowlatency | < 6.8.0-35.35.1 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-oem-6.8 | < 6.8.0-1006.6 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-oracle | < 6.8.0-1006.6 | UNKNOWN |
ubuntu | 24.04 | noarch | linux-raspi | < 6.8.0-1005.5 | UNKNOWN |
git.kernel.org/linus/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd (6.9-rc1)
git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140
git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e
git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd
git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100
launchpad.net/bugs/cve/CVE-2024-27066
nvd.nist.gov/vuln/detail/CVE-2024-27066
security-tracker.debian.org/tracker/CVE-2024-27066
ubuntu.com/security/notices/USN-6816-1
ubuntu.com/security/notices/USN-6817-1
ubuntu.com/security/notices/USN-6817-2
ubuntu.com/security/notices/USN-6817-3
ubuntu.com/security/notices/USN-6878-1
www.cve.org/CVERecord?id=CVE-2024-27066