Skip to contentSkip to conversation

CVE-2025-40017: media: iris: Fix memory leak by freeing untracked persist buffer

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 20, 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: iris: Fix memory leak by freeing untracked persist buffer

One internal buffer which is allocated only once per session was not being freed during session close because it was not being tracked as part of internal buffer list which resulted in a memory leak.

Add the necessary logic to explicitly free the untracked internal buffer during session close to ensure all allocated memory is released properly.

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

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

	Issue introduced in 6.15 with commit 73702f45db81b74897b2808aaa13484826156006 and fixed in 6.16.11 with commit c9e024e907cafafd6b094f69a0d0f5d18fd28876
	Issue introduced in 6.15 with commit 73702f45db81b74897b2808aaa13484826156006 and fixed in 6.17.1 with commit ec2f87ad035e8d1ad67567542842f1f23a4dbde2
	Issue introduced in 6.15 with commit 73702f45db81b74897b2808aaa13484826156006 and fixed in 6.18-rc1 with commit 02a24f13b3a1d9da9f3de56aa5fdb7cc1fe167a2

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-40017

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/qcom/iris/iris_buffer.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/c9e024e907cafafd6b094f69a0d0f5d18fd28876
	https://git.kernel.org/stable/c/ec2f87ad035e8d1ad67567542842f1f23a4dbde2
	https://git.kernel.org/stable/c/02a24f13b3a1d9da9f3de56aa5fdb7cc1fe167a2