{"id":"CVE-2024-27066","published":"2024-05-01T13:04:12Z","modified":"2026-08-05T11:29:20Z","title":"virtio: packed: fix unmap leak for indirect desc table","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio: packed: fix unmap leak for indirect desc table\n\nWhen use_dma_api and premapped are true, then the do_unmap is false.\n\nBecause the do_unmap is false, vring_unmap_extra_packed is not called by\ndetach_buf_packed.\n\n  if (unlikely(vq->do_unmap)) {\n                curr = id;\n                for (i = 0; i < state->num; i++) {\n                        vring_unmap_extra_packed(vq,\n                                                 &vq->packed.desc_extra[curr]);\n                        curr = vq->packed.desc_extra[curr].next;\n                }\n  }\n\nSo the indirect desc table is not unmapped. This causes the unmap leak.\n\nSo here, we check vq->use_dma_api instead. Synchronously, dma info is\nupdated based on use_dma_api judgment\n\nThis bug does not occur, because no driver use the premapped with\nindirect.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00846,"percentile":0.55445,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100","tags":[]},{"url":"https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e","tags":[]},{"url":"https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140","tags":[]},{"url":"https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":11.09},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b319940f83c21bb4c1fabffe68a862be879a6193, < e142169aca5546ae6619c39a575cda8105362100",">= b319940f83c21bb4c1fabffe68a862be879a6193, < 75450ff8c6fe8755bf5b139b238eaf9739cfd64e",">= b319940f83c21bb4c1fabffe68a862be879a6193, < 51bacd9d29bf98c3ebc65e4a0477bb86306b4140",">= b319940f83c21bb4c1fabffe68a862be879a6193, < d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-13T18:28:27.748226Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-24328","exploited":false,"provenance":"source"}}