Skip to contentSkip to conversation

CVE-2025-38228: media: imagination: fix a potential memory leak in e5010_probe()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 4, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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

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

media: imagination: fix a potential memory leak in e5010_probe()

Add video_device_release() to release the memory allocated by video_device_alloc() if something goes wrong.

The Linux kernel CVE team has assigned CVE-2025-38228 to this issue.

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

	Issue introduced in 6.11 with commit a1e2940458853d00c178c842c889e4ae3ef5eaec and fixed in 6.12.35 with commit 2a2bd7df402decbdefd0acb64ba4e17a0a2a4117
	Issue introduced in 6.11 with commit a1e2940458853d00c178c842c889e4ae3ef5eaec and fixed in 6.15.4 with commit fac3b9a91fa099d9bad29648127c0328d6c478c3
	Issue introduced in 6.11 with commit a1e2940458853d00c178c842c889e4ae3ef5eaec and fixed in 6.16-rc1 with commit 609ba05b9484856b08869f827a6edee51d51b5f3

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-2025-38228

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/media/platform/imagination/e5010-jpeg-enc.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/2a2bd7df402decbdefd0acb64ba4e17a0a2a4117
	https://git.kernel.org/stable/c/fac3b9a91fa099d9bad29648127c0328d6c478c3
	https://git.kernel.org/stable/c/609ba05b9484856b08869f827a6edee51d51b5f3