Skip to contentSkip to conversation

CVE-2024-50173: drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 8, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()

The group variable can't be used to retrieve ptdev in our second loop, because it points to the previously iterated list_head, not a valid group. Get the ptdev object from the scheduler instead.

The Linux kernel CVE team has assigned CVE-2024-50173 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit d72f049087d4 and fixed in 6.10.14 with commit ac2ca5e5148a
	Issue introduced in 6.10 with commit d72f049087d4 and fixed in 6.11.3 with commit 3bde05794497
	Issue introduced in 6.10 with commit d72f049087d4 and fixed in 6.12-rc2 with commit 282864cc5d3f

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2024-50173

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/panthor/panthor_sched.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/ac2ca5e5148a0d4d78ac01c2d8348d0757c7367f
	https://git.kernel.org/stable/c/3bde05794497d5f426d4ea2ecb9868bf7721fb24
	https://git.kernel.org/stable/c/282864cc5d3f144af0cdea1868ee2dc2c5110f0d