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 6CDA726FA4B for ; Thu, 4 Sep 2025 15:33:22 +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=1757000002; cv=none; b=G8XfdETthKE3E7nSAYFs0//cv3XsYybiWakVOEtzCYbFQyYumxfioZmrVv7B9rTLVLkRr/zbZHwWK84A7wM7o5v6QcH0VnE9KQav6pkw56RTJ7wtmyjbZ/wBWTWXE70wGAJKVaun0mFC12q0REk6G0Hn7kVutnEnEbb8sF/IRyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000002; c=relaxed/simple; bh=0BOt7bpzkeGBcbXIPeHF6aiyz4wt3zKH9ewXXPlC4HA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=epoy3TUEX8KvmgPJxiEiWVd5hkMT8o+i+JgNFe2aLUmHXY9lPZ/qhKPcL1ogCx+3N8jmAa98uNqsK1gxphMVTHqnB3O6LEAtkaU8CglbQTJ2UAlmt5cloxF5OHQ4Lpi/rKm0CDu+rTHuy3Zw4zjU8nhBoc71Zr1vZYRYSNYDHAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sR1U4bI7; 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="sR1U4bI7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0545C4CEF1; Thu, 4 Sep 2025 15:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000002; bh=0BOt7bpzkeGBcbXIPeHF6aiyz4wt3zKH9ewXXPlC4HA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sR1U4bI7BGfZ2wE69sHtbH9PkpgRmetbVi2SkSyLn9qsR2R3aR1Hjo2fQ6Edotmh0 SdG69mRnrFFIkt4/FDaakYiv4699qhyAcCgCfpNf4MchKgCzG/u+s6H8eeHPZlgTnz HIiAEhF2erfrUoSvtGjaRjM44yRokwiOy8zXlOqo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38679: media: venus: Fix OOB read due to missing payload bound check Date: Thu, 4 Sep 2025 17:32:44 +0200 Message-ID: <2025090443-CVE-2025-38679-be66@gregkh> X-Mailer: git-send-email 2.51.0 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=3566; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h43c2NPAkzRgHkuz5cBoSB/ETnYmUUis9CsDgQA7VeY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N0rz1ct8iJtaKbpWycRgQvDOpcqtbA+apX+cWhboc 2VqXvbWjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIiwvDPMW0y26t89SEii3C A38qPQyQiBAtY1iwyqiuQ4+dOTUxcdv8Q3GL3E/PO/kMAA== 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: venus: Fix OOB read due to missing payload bound check Currently, The event_seq_changed() handler processes a variable number of properties sent by the firmware. The number of properties is indicated by the firmware and used to iterate over the payload. However, the payload size is not being validated against the actual message length. This can lead to out-of-bounds memory access if the firmware provides a property count that exceeds the data available in the payload. Such a condition can result in kernel crashes or potential information leaks if memory beyond the buffer is accessed. Fix this by properly validating the remaining size of the payload before each property access and updating bounds accordingly as properties are parsed. This ensures that property parsing is safely bounded within the received message buffer and protects against malformed or malicious firmware behavior. The Linux kernel CVE team has assigned CVE-2025-38679 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.1.149 with commit a3eef5847603cd8a4110587907988c3f93c9605a Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.6.103 with commit 8f274e2b05fdae7a53cee83979202b5ecb49035c Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.12.43 with commit 6f08bfb5805637419902f3d70069fe17a404545b Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.15.11 with commit c956c3758510b448b3d4d10d1da8230e8c9bf668 Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.16.2 with commit bed4921055dd7bb4d2eea2729852ae18cf97a2c6 Issue introduced in 4.13 with commit 09c2845e8fe4fcab942929480203f504a6e0a114 and fixed in 6.17-rc1 with commit 06d6770ff0d8cc8dfd392329a8cc03e2a83e7289 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-38679 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/venus/hfi_msgs.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/a3eef5847603cd8a4110587907988c3f93c9605a https://git.kernel.org/stable/c/8f274e2b05fdae7a53cee83979202b5ecb49035c https://git.kernel.org/stable/c/6f08bfb5805637419902f3d70069fe17a404545b https://git.kernel.org/stable/c/c956c3758510b448b3d4d10d1da8230e8c9bf668 https://git.kernel.org/stable/c/bed4921055dd7bb4d2eea2729852ae18cf97a2c6 https://git.kernel.org/stable/c/06d6770ff0d8cc8dfd392329a8cc03e2a83e7289