CVE-2024-27066
virtio: packed: fix unmap leak for indirect desc table
Reported by linux · Published May 1, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | e142169aca5546ae6619c39a575cda8105362100, d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd, 6.6, 51bacd9d29bf98c3ebc65e4a0477bb86306b4140 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b319940f83c21bb4c1fabffe68a862be879a6193, b319940f83c21bb4c1fabffe68a862be879a6193, b319940f83c21bb4c1fabffe68a862be879a6193 |
| Linux | Linux | 6.6, 0, 6.6.23 |
| Linux | Linux | *, 6.8.2, 6.9 |
| linux | linux_kernel | 6.6, 6.6, 6.6 |
Timeline
- May 1, 2024 CVE Published
- May 2, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (5 in total, the first dated here)
- Jan 15, 2026 Security Advisory (308 in total, the first dated here)
- May 28, 2026 Distribution Patch (270 in total, the first dated here)
- Aug 4, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-27066
vulnetix vdb fixes CVE-2024-27066
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27066/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart