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 0309C3191C8 for ; Fri, 5 Sep 2025 17:23:42 +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=1757093023; cv=none; b=DAWN7RU8vcbhE/MkWmXLLwHmd2xLnOtU5Za97AERF63BBsqoKxrcLR43taST60C51rop4GyQs0no8e7k4t5Jjs3p+uUO2CaSZ94Mm+f5sZAF2nH4LMJlw+3QQihnmJo8uc69GUfJhicbhNctCCrZbR74iHbd2q40n8Cz7qVh2Hs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757093023; c=relaxed/simple; bh=gIU1+PpXxvzYT5EG9S3i6Wv20Jee24anAPjvSXXy40E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=STw+wBU1KV6FyeFfQx16dpRXtu6gGdse/el/MlbvtMEyz+ApLO8CrJ6n8JUkrQnkHrOo8i54n0537KWxi8mEUJLtdfVbhe60v0L+ii0jrqygXoeiP2gMfMwpNJ2UsFp/pdf0Po4kG4UdPFMZLo/sFNyox7gZD9ynjMZvTau/H9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=msGQK4hJ; 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="msGQK4hJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 132C1C4CEF1; Fri, 5 Sep 2025 17:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757093022; bh=gIU1+PpXxvzYT5EG9S3i6Wv20Jee24anAPjvSXXy40E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=msGQK4hJEh1mMZRy6yxFQk5btecmxvXyd6nDk/5vvntjsFBOVsJfUEGoKKNeikkHx K2IR9FAHOlYxKsZmm/3PwBeyXndcj1z2YHrfTUEAd9rscW4Xe5lxlof6gSrul8JIt+ ZFrZP4loxwmtPvgPsQVeznWvvGc0UlgwHgIsM/Jw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39710: media: venus: Add a check for packet size after reading from shared memory Date: Fri, 5 Sep 2025 19:21:23 +0200 Message-ID: <2025090550-CVE-2025-39710-198c@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=3448; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F1xZY4nD2h/gieuUI1GhzB/punQdSgn+hmFKkIkqzOI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pT9tf3fT+K/5pzzOQ1aHtL8ZpHHfnsA35bqUrtds8 WzvL3sudsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVngwLOhNOdW1Yf6Pnp8/ vVZv33b+x1Et72kMcziSNqbdqxX5V3Wvt1E94F1s2+dTHQA= 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: Add a check for packet size after reading from shared memory Add a check to ensure that the packet size does not exceed the number of available words after reading the packet header from shared memory. This ensures that the size provided by the firmware is safe to process and prevent potential out-of-bounds memory access. The Linux kernel CVE team has assigned CVE-2025-39710 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 5.4.297 with commit 0520c89f6280d2b60ab537d5743601185ee7d8ab Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 5.10.241 with commit f5b7a943055a4a106d40a03bacd940e28cc1955f Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 5.15.190 with commit ef09b96665f16f3f0bac4e111160e6f24f1f8791 Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 6.1.149 with commit 7638bae4539dcebc3f68fda74ac35d73618ec440 Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 6.6.103 with commit ba567c2e52fbcf0e20502746bdaa79e911c2e8cf Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 6.12.44 with commit 2d8cea8310a245730816a1fd0c9fa4a5a3bdc68c Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 6.16.4 with commit f0cbd9386f974d310a0d20a02e4a1323e95ea654 Issue introduced in 4.13 with commit d96d3f30c0f2f564f6922bf4ccdf4464992e31fb and fixed in 6.17-rc1 with commit 49befc830daa743e051a65468c05c2ff9e8580e6 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-39710 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_venus.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/0520c89f6280d2b60ab537d5743601185ee7d8ab https://git.kernel.org/stable/c/f5b7a943055a4a106d40a03bacd940e28cc1955f https://git.kernel.org/stable/c/ef09b96665f16f3f0bac4e111160e6f24f1f8791 https://git.kernel.org/stable/c/7638bae4539dcebc3f68fda74ac35d73618ec440 https://git.kernel.org/stable/c/ba567c2e52fbcf0e20502746bdaa79e911c2e8cf https://git.kernel.org/stable/c/2d8cea8310a245730816a1fd0c9fa4a5a3bdc68c https://git.kernel.org/stable/c/f0cbd9386f974d310a0d20a02e4a1323e95ea654 https://git.kernel.org/stable/c/49befc830daa743e051a65468c05c2ff9e8580e6