# CVE-2024-27066: virtio: packed: fix unmap leak for indirect desc table

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2024-05-01T13:04:12.582Z
- Modified: 2026-08-05T11:29:20.653Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from b319940f83c21bb4c1fabffe68a862be879a6193 before e142169aca5546ae6619c39a575cda8105362100; from b319940f83c21bb4c1fabffe68a862be879a6193 before 75450ff8c6fe8755bf5b139b238eaf9739cfd64e; from b319940f83c21bb4c1fabffe68a862be879a6193 before 51bacd9d29bf98c3ebc65e4a0477bb86306b4140; from b319940f83c21bb4c1fabffe68a862be879a6193 before d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd; 6.6 (not affected: before 6.6; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.6 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100> (patch)
- <https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e> (patch)
- <https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140> (patch)
- <https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd> (patch)

## Sources

- CVE List: [CVE-2024-27066](https://www.cve.org/CVERecord?id=CVE-2024-27066), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-27066](https://nvd.nist.gov/vuln/detail/CVE-2024-27066), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-27066 · Whole record: https://cve.day/CVE-2024-27066.json · Rebuilt by cve.day 2026-11-25T22:58:39.806Z
