CVE-2024-27066
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
01/05/2024
Last modified:
18/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
virtio: packed: fix unmap leak for indirect desc table<br />
<br />
When use_dma_api and premapped are true, then the do_unmap is false.<br />
<br />
Because the do_unmap is false, vring_unmap_extra_packed is not called by<br />
detach_buf_packed.<br />
<br />
if (unlikely(vq->do_unmap)) {<br />
curr = id;<br />
for (i = 0; i num; i++) {<br />
vring_unmap_extra_packed(vq,<br />
&vq->packed.desc_extra[curr]);<br />
curr = vq->packed.desc_extra[curr].next;<br />
}<br />
}<br />
<br />
So the indirect desc table is not unmapped. This causes the unmap leak.<br />
<br />
So here, we check vq->use_dma_api instead. Synchronously, dma info is<br />
updated based on use_dma_api judgment<br />
<br />
This bug does not occur, because no driver use the premapped with<br />
indirect.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6 (including) | 6.6.23 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.7.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.8.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140
- https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e
- https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd
- https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100
- https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140
- https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e
- https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd
- https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100



