Skip to contentSkip to conversation

CVE-2021-47648: gpu: host1x: Fix a memory leak in 'host1x_remove()'

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Feb 26, 2025

lore
Share & tools
lore
#0 lore raw

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

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

gpu: host1x: Fix a memory leak in 'host1x_remove()'

Add a missing 'host1x_channel_list_free()' call in the remove function, as already done in the error handling path of the probe function.

The Linux kernel CVE team has assigned CVE-2021-47648 to this issue.

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

	Issue introduced in 4.13 with commit 8474b02531c4881a762c52ef869c52429e38633f and fixed in 5.10.110 with commit 6bb107332db28a0e9256c2d36a0902b85307612c
	Issue introduced in 4.13 with commit 8474b02531c4881a762c52ef869c52429e38633f and fixed in 5.15.33 with commit c06577a80485511b894cb688e881ef0bc2d1d296
	Issue introduced in 4.13 with commit 8474b02531c4881a762c52ef869c52429e38633f and fixed in 5.16.19 with commit 5124a344983e1b9670dae7add0e4d00d589aabcd
	Issue introduced in 4.13 with commit 8474b02531c4881a762c52ef869c52429e38633f and fixed in 5.17.2 with commit fe1ce680560d4f0049ffa0c687de17567421c1ec
	Issue introduced in 4.13 with commit 8474b02531c4881a762c52ef869c52429e38633f and fixed in 5.18 with commit 025c6643a81564f066d8381b9e2f4603e0f8438f

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-2021-47648

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/host1x/dev.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/6bb107332db28a0e9256c2d36a0902b85307612c
	https://git.kernel.org/stable/c/c06577a80485511b894cb688e881ef0bc2d1d296
	https://git.kernel.org/stable/c/5124a344983e1b9670dae7add0e4d00d589aabcd
	https://git.kernel.org/stable/c/fe1ce680560d4f0049ffa0c687de17567421c1ec
	https://git.kernel.org/stable/c/025c6643a81564f066d8381b9e2f4603e0f8438f