Files
vuln-cve/data/2023/52xxx/CVE-2023-52825.json
T

303 lines
14 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2023-52825",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2024-05-21T15:19:24.250Z",
"datePublished": "2024-05-21T15:31:29.517Z",
"dateUpdated": "2026-08-05T09:11:33.235Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T09:11:33.235Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: Fix a race condition of vram buffer unref in svm code\n\nprange->svm_bo unref can happen in both mmu callback and a callback after\nmigrate to system ram. Both are async call in different tasks. Sync svm_bo\nunref operation to avoid random \"use-after-free\"."
}
],
"metrics": [
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 7.8,
"baseSeverity": "HIGH"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - Reachable only via local /dev/kfd AMDKFD_IOC_SVM ioctls and process memory operations (munmap/page fault); the amdkfd SVM path is not exposed to remote network attackers.\nAC:L - The attacker controls both sides of the race—VRAM→RAM migration (SET_ATTR prefetch/CPU fault/eviction) and the MMU notifier unmap path that deferred-frees the range—and can retry concurrently from multiple threads.\nPR:L - /dev/kfd is accessible to unprivileged users in the render group or via seat uaccess, and AMDKFD_IOC_SVM requires no capabilities beyond opening that device.\nUI:N - Exploitation uses the attacker's own KFD file descriptor and address space; no action by another user is required.\nS:U - Impact is confined to the local kernel privilege boundary (standard local privilege escalation), with no VM escape or IOMMU/cross-authority boundary crossed.\nC:H - The bug is a use-after-free of svm_range_bo (containing work_structs, fences, and BO pointers); UAF of that object can be leveraged for arbitrary kernel memory disclosure.\nI:H - Double kref_put frees svm_range_bo while other paths may still use it, enabling heap reuse and control-flow hijack via workqueue/fence callbacks for arbitrary write/code execution.\nA:H - The same use-after-free/double-free reliably produces kernel oopses or panics even without a full exploit chain."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/gpu/drm/amd/amdkfd/kfd_svm.c"
],
"versions": [
{
"version": "e49fe4040a10c1cd3b215c511f658d15aa7c8be9",
"lessThan": "7d43cdd22cd81a2b079e864c4321b9aba4c6af34",
"status": "affected",
"versionType": "git"
},
{
"version": "e49fe4040a10c1cd3b215c511f658d15aa7c8be9",
"lessThan": "50f35a907c4f9ed431fd3dbb8b871ef1cbb0718e",
"status": "affected",
"versionType": "git"
},
{
"version": "e49fe4040a10c1cd3b215c511f658d15aa7c8be9",
"lessThan": "c772eacbd6d0845fc922af8716bb9d29ae27b8cf",
"status": "affected",
"versionType": "git"
},
{
"version": "e49fe4040a10c1cd3b215c511f658d15aa7c8be9",
"lessThan": "fc0210720127cc6302e6d6f3de48f49c3fcf5659",
"status": "affected",
"versionType": "git"
},
{
"version": "e49fe4040a10c1cd3b215c511f658d15aa7c8be9",
"lessThan": "709c348261618da7ed89d6c303e2ceb9e453ba74",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/gpu/drm/amd/amdkfd/kfd_svm.c"
],
"versions": [
{
"version": "5.14",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.14",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.15.140",
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.1.64",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.5.13",
"lessThanOrEqual": "6.5.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.3",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.7",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "5.15.140"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.1.64"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.5.13"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.6.3"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.14",
"versionEndExcluding": "6.7"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/7d43cdd22cd81a2b079e864c4321b9aba4c6af34"
},
{
"url": "https://git.kernel.org/stable/c/50f35a907c4f9ed431fd3dbb8b871ef1cbb0718e"
},
{
"url": "https://git.kernel.org/stable/c/c772eacbd6d0845fc922af8716bb9d29ae27b8cf"
},
{
"url": "https://git.kernel.org/stable/c/fc0210720127cc6302e6d6f3de48f49c3fcf5659"
},
{
"url": "https://git.kernel.org/stable/c/709c348261618da7ed89d6c303e2ceb9e453ba74"
}
],
"title": "drm/amdkfd: Fix a race condition of vram buffer unref in svm code",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"problemTypes": [
{
"descriptions": [
{
"type": "CWE",
"cweId": "CWE-362",
"lang": "en",
"description": "CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"
}
]
}
],
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 5.5,
"attackVector": "LOCAL",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "HIGH",
"privilegesRequired": "LOW",
"confidentialityImpact": "NONE"
}
},
{
"other": {
"type": "ssvc",
"content": {
"timestamp": "2024-05-29T17:19:26.593963Z",
"id": "CVE-2023-52825",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-11-05T16:40:39.599Z"
}
},
{
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T23:11:36.075Z"
},
"title": "CVE Program Container",
"references": [
{
"url": "https://git.kernel.org/stable/c/7d43cdd22cd81a2b079e864c4321b9aba4c6af34",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/50f35a907c4f9ed431fd3dbb8b871ef1cbb0718e",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/c772eacbd6d0845fc922af8716bb9d29ae27b8cf",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/fc0210720127cc6302e6d6f3de48f49c3fcf5659",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/709c348261618da7ed89d6c303e2ceb9e453ba74",
"tags": [
"x_transferred"
]
}
]
}
]
}
}