Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F1E723EA9C for ; Mon, 20 Oct 2025 15:30:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760974241; cv=none; b=HgSdC9NuobYaNFsGg0CnDt+t0lNyLkBuqgNNP+72FWiojSIU3ipFcgkEu3/8xzkj2vW607oUO8GNjdBLU8whnVtLgpWb0HMKgOlZaz+CbPrWeuI8q/gJuWGiwNOOZkMIioDY7AiNKrzlypqfYo+HsxrTiMfD9mRa7DYzSabGvvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760974241; c=relaxed/simple; bh=dRI4o5Z/yqciHvpl5TltuBvvE80bDrgVoddnlgWybHw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SWvL+Scx3SA50RnSEC8ljGDNwFpCNJv0gl8TVGlDU8y08tu3EZi87MZ9hOuCDOPhAzQ8U1KeUttqG4qfe624a2p8y92247y3kkhIxz7tZ9nr930unKxN4itIiIMMlgAGPH2kRLRKVVDtkYSH/1/x7jfJQjI8aiIRuR+KM/oxLQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vnsWgx/x; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vnsWgx/x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45386C4CEF9; Mon, 20 Oct 2025 15:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760974240; bh=dRI4o5Z/yqciHvpl5TltuBvvE80bDrgVoddnlgWybHw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vnsWgx/xSAv66MtlE5mfdR8Op+UJF+ZFlqufWLQ4zfpDOFdaUE1sH4UvZi2E1rBXb BphY0aBxBjMkqcDyY+xgYn3/X6cZ4xeZ/9eDZFjhBNPpXkACHWcSx6lYf84jiKedZo CPFgyQwsSSwsd6HlBa5dA6NtF02bFQqIfnIOIxyQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40017: media: iris: Fix memory leak by freeing untracked persist buffer Date: Mon, 20 Oct 2025 17:30:38 +0200 Message-ID: <2025102037-CVE-2025-40017-797c@gregkh> X-Mailer: git-send-email 2.51.1.dirty Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2380; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VjAznrijpat1gMYOFoxdeMWo3+VSH280S2V/Sq5u6DU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnfQucqs8cJ/unZ+XJx7dmehQ66138ZbXsbIGJos+tTi pHQChOnjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIyQ8M8yyspPiNpfQNsltv zzG47lr9xUxDk2F+WYpe40KnTaL/mpQVOmIfPRf7v2s5AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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