{"id":"CVE-2022-48981","state":"PUBLISHED","title":"drm/shmem-helper: Remove errant put in error path","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/shmem-helper: Remove errant put in error path\n\ndrm_gem_shmem_mmap() doesn't own this reference, resulting in the GEM\nobject getting prematurely freed leading to a later use-after-free.","publishedAt":"2024-10-21T20:05:59.043Z","updatedAt":"2026-08-05T08:53:14.133Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"585a07b820059462e0c93b76c7de2cd946b26b40","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"6a4da05acd062ae7774b6b19cef2b7d922902d36","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"83e3da8bb92fcfa7a1d232cf55f9e6c49bb84942","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"586847b98e20ab02212ca5c1fc46680384e68a28","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"24013314be6ee4ee456114a671e9fa3461323de8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_gem_shmem_helper.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.4.227","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.159","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.83","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.13","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_gem_shmem_helper.c"]}],"references":["https://git.kernel.org/stable/c/585a07b820059462e0c93b76c7de2cd946b26b40","https://git.kernel.org/stable/c/6a4da05acd062ae7774b6b19cef2b7d922902d36","https://git.kernel.org/stable/c/83e3da8bb92fcfa7a1d232cf55f9e6c49bb84942","https://git.kernel.org/stable/c/586847b98e20ab02212ca5c1fc46680384e68a28","https://git.kernel.org/stable/c/24013314be6ee4ee456114a671e9fa3461323de8"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48981.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48981","state":"PUBLISHED","datePublished":"2024-10-21T20:05:59.043Z","dateUpdated":"2026-08-05T08:53:14.133Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-22T01:27:53.633Z"},"containers":{"cna":{"title":"drm/shmem-helper: Remove errant put in error path","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/shmem-helper: Remove errant put in error path\n\ndrm_gem_shmem_mmap() doesn't own this reference, resulting in the GEM\nobject getting prematurely freed leading to a later use-after-free."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"585a07b820059462e0c93b76c7de2cd946b26b40","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"6a4da05acd062ae7774b6b19cef2b7d922902d36","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"83e3da8bb92fcfa7a1d232cf55f9e6c49bb84942","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"586847b98e20ab02212ca5c1fc46680384e68a28","versionType":"git"},{"version":"2194a63a818db71065ebe09c8104f5f021ca4e7b","status":"affected","lessThan":"24013314be6ee4ee456114a671e9fa3461323de8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_gem_shmem_helper.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.2","versionType":"semver"},{"version":"5.4.227","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.159","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.83","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.13","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/drm_gem_shmem_helper.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/585a07b820059462e0c93b76c7de2cd946b26b40"},{"url":"https://git.kernel.org/stable/c/6a4da05acd062ae7774b6b19cef2b7d922902d36"},{"url":"https://git.kernel.org/stable/c/83e3da8bb92fcfa7a1d232cf55f9e6c49bb84942"},{"url":"https://git.kernel.org/stable/c/586847b98e20ab02212ca5c1fc46680384e68a28"},{"url":"https://git.kernel.org/stable/c/24013314be6ee4ee456114a671e9fa3461323de8"}],"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 DRM device access (open /dev/dri/*, CREATE_DUMB/GEM_CREATE, MAP_DUMB, then mmap), not via network packet processing.\nAC:L - Attacker fully controls the path and can reliably force drm_gem_shmem_get_pages() failure (e.g., pending signal hitting mutex_lock_interruptible, or memory pressure on page allocation); once that fails the double-put UAF is deterministic with no uncontrolled race.\nPR:L - An unprivileged local user can open DRM primary/render nodes and create/mmap their own shmem GEM objects (e.g., vgem/vkms dumb buffers, or panfrost/lima/v3d render-node GEM_CREATE); no real root/CAP_SYS_ADMIN is required.\nUI:N - The attacker opens the device, creates the buffer, mmaps it to trigger the bug, and exploits the UAF without any victim action.\nS:U - This is a standard in-kernel GEM object UAF enabling privilege escalation within the host kernel security authority, not a VM/IOMMU/sandbox boundary escape.\nC:H - Premature free of the kmalloc-backed GEM object leaves a live handle to freed memory, which per UAF guidance enables reclaim/spray and arbitrary kernel read primitives.\nI:H - The same UAF of the GEM object structure enables heap spray and arbitrary write / control-flow hijacking in the kernel.\nA:H - The UAF reliably causes kernel oops (KASAN use-after-free in drm_gem_object_release_handle on close) and can panic or hang the system."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:53:14.133Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.4.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.10.159"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"5.15.83"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.0.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48981","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-10-22T13:17:51.238868Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-22T13:18:43.723Z"}}]}}}