140 lines
8.1 KiB
JSON
140 lines
8.1 KiB
JSON
{
|
|
"dataType": "CVE_RECORD",
|
|
"dataVersion": "5.2",
|
|
"cveMetadata": {
|
|
"cveId": "CVE-2022-50867",
|
|
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"state": "PUBLISHED",
|
|
"assignerShortName": "Linux",
|
|
"dateReserved": "2025-12-30T12:06:07.136Z",
|
|
"datePublished": "2025-12-30T12:15:38.520Z",
|
|
"dateUpdated": "2026-08-05T08:59:53.122Z"
|
|
},
|
|
"containers": {
|
|
"cna": {
|
|
"providerMetadata": {
|
|
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"shortName": "Linux",
|
|
"dateUpdated": "2026-08-05T08:59:53.122Z"
|
|
},
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage\n\nadreno_show_object() is a trap! It will re-allocate the pointer it is\npassed on first call, when the data is ascii85 encoded, using kvmalloc/\nkvfree(). Which means the data *passed* to it must be kvmalloc'd, ie.\nwe cannot use the state_kcalloc() helper.\n\nThis partially reverts commit ec8f1813bf8d (\"drm/msm/a6xx: Replace\nkcalloc() with kvzalloc()\"), but adds the missing kvfree() to fix the\nmemory leak that was present previously. And adds a warning comment.\n\nPatchwork: https://patchwork.freedesktop.org/patch/507014/"
|
|
}
|
|
],
|
|
"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 - The vulnerable show/encode path is reached after a local GPU hang or iova fault captures crash state via msm_gpu_crashstate_capture(); an unprivileged process triggers that through DRM render-node submits (MSM_GEM_SUBMIT). There is no network or adjacent-packet path into a6xx_show/adreno_show_object.\nAC:L - An attacker fully controls both sides: submit work that hangs or faults the a6xx GPU, then rely on the deterministic ascii85 reallocation in adreno_show_object() when the dump is read. No race or attacker-uncontrollable memory-layout precondition is required.\nPR:L - Unprivileged users can open /dev/dri/renderD* and hang the GPU. On the primary msm deployments (ChromeOS/Android), crash_reporter/udev_collector automatically reads /sys/class/devcoredump/devcdN/data for the adreno driver, invoking the bad kvfree without the attacker needing root. Choosing the higher-severity PR:L over PR:H for that reasonable scenario.\nUI:N - The attacker submits the hanging GPU work themselves, and automatic device-coredump collection invokes a6xx_show without any separate victim mount/open/interactive action.\nS:U - The invalid free corrupts host kernel allocator state within the same OS security authority; this is a local privilege-escalation class bug, not a VM escape, IOMMU bypass, or other cross-boundary impact.\nC:H - adreno_show_object() kvfree()s an interior pointer into a state_kcalloc() memobj (past list_head), corrupting kvmalloc/SLUB freelist metadata; that heap corruption can be leveraged for arbitrary kernel memory disclosure, matching kernel CVSS guidance for memory-corruption bugs.\nI:H - The same interior-pointer free (and subsequent double-free of the memobj on a6xx_gpu_state_destroy) corrupts heap freelists and adjacent objects, enabling reuse and write/control-flow hijacking primitives rather than a benign bounded fault.\nA:H - The gitlab issue closed by the fix reports that reading the devcoredump triggers memory corruption; invalid free/double-free produce kernel oops/panic, which is Availability High under kernel CVSS guidance."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"product": "Linux",
|
|
"vendor": "Linux",
|
|
"defaultStatus": "unaffected",
|
|
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
|
"programFiles": [
|
|
"drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c",
|
|
"drivers/gpu/drm/msm/adreno/adreno_gpu.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "b859f9b009bbfbc236d9b076c64c59ccb41b8737",
|
|
"lessThan": "4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
},
|
|
{
|
|
"version": "b859f9b009bbfbc236d9b076c64c59ccb41b8737",
|
|
"lessThan": "83d18e9d9c0150d98dc24e3642ea93f5e245322c",
|
|
"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/msm/adreno/a6xx_gpu_state.c",
|
|
"drivers/gpu/drm/msm/adreno/adreno_gpu.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "5.17",
|
|
"status": "affected"
|
|
},
|
|
{
|
|
"version": "0",
|
|
"lessThan": "5.17",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "6.0.7",
|
|
"lessThanOrEqual": "6.0.*",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "6.1",
|
|
"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.17",
|
|
"versionEndExcluding": "6.0.7"
|
|
},
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "5.17",
|
|
"versionEndExcluding": "6.1"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/4b1bbc0571a5d7ee10f754186dc3d619b9ced5c1"
|
|
},
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/83d18e9d9c0150d98dc24e3642ea93f5e245322c"
|
|
}
|
|
],
|
|
"title": "drm/msm/a6xx: Fix kvzalloc vs state_kcalloc usage",
|
|
"x_generator": {
|
|
"engine": "bippy-1.2.0"
|
|
}
|
|
}
|
|
}
|
|
} |