CVE-2024-53116: drm/panthor: Fix handling of partial GPU mapping of BOs
In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Fix handling of partial GPU mapping of BOs
This commit fixes the bug in the handling of partial mapping of the buffer objects to the GPU, which caused kernel warnings.
Panthor didn't correctly handle the case where the partial mapping spanned multiple scatterlists and the mapping offset didn't point to the 1st page of starting scatterlist. The offset variable was not cleared after reaching the starting scatterlist.
Following warning messages were seen. WARNING: CPU: 1 PID: 650 at drivers/iommu/io-pgtable-arm.c:659 armlpaeunmap+0x254/0x5a0 <snip> pc : armlpaeunmap+0x254/0x5a0 lr : armlpaeunmap+0x2cc/0x5a0 <snip> Call trace: armlpaeunmap+0x254/0x5a0 armlpaeunmap+0x108/0x5a0 armlpaeunmap+0x108/0x5a0 armlpaeunmap+0x108/0x5a0 armlpaeunmappages+0x80/0xa0 panthorvmunmappages+0xac/0x1c8 [panthor] panthorgpuvasmstepunmap+0x4c/0xc8 [panthor] opunmapcb.isra.23.constprop.30+0x54/0x80 drmgpuvmsmunmap+0x184/0x1c8 drmgpuvmsmunmap+0x40/0x60 panthorvmexecop+0xa8/0x120 [panthor] panthorvmbindexecsyncop+0xc4/0xe8 [panthor] panthorioctlvmbind+0x10c/0x170 [panthor] drmioctlkernel+0xbc/0x138 drmioctl+0x210/0x4b0 arm64sysioctl+0xb0/0xf8 invokesyscall+0x4c/0x110 el0svccommon.constprop.1+0x98/0xf8 doel0svc+0x24/0x38 el0svc+0x34/0xc8 el0t64synchandler+0xa0/0xc8 el0t64sync+0x174/0x178 <snip> panthor : [drm] drmWARNON(unmappedsz != pgsize pgcount) WARNING: CPU: 1 PID: 650 at drivers/gpu/drm/panthor/panthormmu.c:922 panthorvmunmappages+0x124/0x1c8 [panthor] <snip> pc : panthorvmunmappages+0x124/0x1c8 [panthor] lr : panthorvmunmappages+0x124/0x1c8 [panthor] <snip> panthor : [drm] ERROR failed to unmap range ffffa388f000-ffffa3890000 (requested range ffffa388c000-ffffa3890000)
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-53116?
CVE-2024-53116 has been resolved in the Linux kernel, addressing kernel warnings related to partial GPU mapping of buffer objects.
How do I fix CVE-2024-53116?
To fix CVE-2024-53116, update your Linux kernel to version 6.11.10 or later, or to any release from 6.12-rc1 to 6.12-rc7.
Which versions of the Linux kernel are affected by CVE-2024-53116?
CVE-2024-53116 affects Linux kernel versions from 6.10 up to 6.11.10 and specific 6.12 release candidates including 6.12-rc1 to 6.12-rc7.
What issue does CVE-2024-53116 address?
CVE-2024-53116 addresses improper handling of partial GPU mappings that led to kernel warnings.
Is CVE-2024-53116 a critical vulnerability?
CVE-2024-53116 is significant as it relates to GPU operation within the Linux kernel but does not indicate direct security risks like remote code execution.