CVE-2024-27066 (GCVE-0-2024-27066)
Vulnerability from cvelistv5 – Published: 2024-05-01 13:04 – Updated: 2025-05-04 09:03
VLAI?
Title
virtio: packed: fix unmap leak for indirect desc table
Summary
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.
Severity ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Affected:
b319940f83c21bb4c1fabffe68a862be879a6193 , < e142169aca5546ae6619c39a575cda8105362100
(git)
Affected: b319940f83c21bb4c1fabffe68a862be879a6193 , < 75450ff8c6fe8755bf5b139b238eaf9739cfd64e (git) Affected: b319940f83c21bb4c1fabffe68a862be879a6193 , < 51bacd9d29bf98c3ebc65e4a0477bb86306b4140 (git) Affected: b319940f83c21bb4c1fabffe68a862be879a6193 , < d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd (git) |
||
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2024-27066",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-06-13T18:28:27.748226Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-07-30T14:58:09.210Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-02T00:27:57.845Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/virtio/virtio_ring.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "e142169aca5546ae6619c39a575cda8105362100",
"status": "affected",
"version": "b319940f83c21bb4c1fabffe68a862be879a6193",
"versionType": "git"
},
{
"lessThan": "75450ff8c6fe8755bf5b139b238eaf9739cfd64e",
"status": "affected",
"version": "b319940f83c21bb4c1fabffe68a862be879a6193",
"versionType": "git"
},
{
"lessThan": "51bacd9d29bf98c3ebc65e4a0477bb86306b4140",
"status": "affected",
"version": "b319940f83c21bb4c1fabffe68a862be879a6193",
"versionType": "git"
},
{
"lessThan": "d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd",
"status": "affected",
"version": "b319940f83c21bb4c1fabffe68a862be879a6193",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/virtio/virtio_ring.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.6"
},
{
"lessThan": "6.6",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.23",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.7.*",
"status": "unaffected",
"version": "6.7.11",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.8.*",
"status": "unaffected",
"version": "6.8.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "6.9",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.23",
"versionStartIncluding": "6.6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.7.11",
"versionStartIncluding": "6.6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.8.2",
"versionStartIncluding": "6.6",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.9",
"versionStartIncluding": "6.6",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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-\u003edo_unmap)) {\n curr = id;\n for (i = 0; i \u003c state-\u003enum; i++) {\n vring_unmap_extra_packed(vq,\n \u0026vq-\u003epacked.desc_extra[curr]);\n curr = vq-\u003epacked.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-\u003euse_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."
}
],
"providerMetadata": {
"dateUpdated": "2025-05-04T09:03:29.002Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100"
},
{
"url": "https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e"
},
{
"url": "https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140"
},
{
"url": "https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd"
}
],
"title": "virtio: packed: fix unmap leak for indirect desc table",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2024-27066",
"datePublished": "2024-05-01T13:04:12.582Z",
"dateReserved": "2024-02-19T14:20:24.216Z",
"dateUpdated": "2025-05-04T09:03:29.002Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T00:27:57.845Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-27066\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-06-13T18:28:27.748226Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-06-13T18:28:55.684Z\"}}], \"cna\": {\"title\": \"virtio: packed: fix unmap leak for indirect desc table\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"b319940f83c21bb4c1fabffe68a862be879a6193\", \"lessThan\": \"e142169aca5546ae6619c39a575cda8105362100\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b319940f83c21bb4c1fabffe68a862be879a6193\", \"lessThan\": \"75450ff8c6fe8755bf5b139b238eaf9739cfd64e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b319940f83c21bb4c1fabffe68a862be879a6193\", \"lessThan\": \"51bacd9d29bf98c3ebc65e4a0477bb86306b4140\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"b319940f83c21bb4c1fabffe68a862be879a6193\", \"lessThan\": \"d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/virtio/virtio_ring.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.6\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.6\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.6.23\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.7.11\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.7.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.8.*\"}, {\"status\": \"unaffected\", \"version\": \"6.9\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/virtio/virtio_ring.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/e142169aca5546ae6619c39a575cda8105362100\"}, {\"url\": \"https://git.kernel.org/stable/c/75450ff8c6fe8755bf5b139b238eaf9739cfd64e\"}, {\"url\": \"https://git.kernel.org/stable/c/51bacd9d29bf98c3ebc65e4a0477bb86306b4140\"}, {\"url\": \"https://git.kernel.org/stable/c/d5c0ed17fea60cca9bc3bf1278b49ba79242bbcd\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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-\u003edo_unmap)) {\\n curr = id;\\n for (i = 0; i \u003c state-\u003enum; i++) {\\n vring_unmap_extra_packed(vq,\\n \u0026vq-\u003epacked.desc_extra[curr]);\\n curr = vq-\u003epacked.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-\u003euse_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.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T08:53:42.892Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2024-27066\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T08:53:42.892Z\", \"dateReserved\": \"2024-02-19T14:20:24.216Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-01T13:04:12.582Z\", \"assignerShortName\": \"Linux\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…