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 EF16917A310 for ; Fri, 25 Jul 2025 14:17:32 +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=1753453053; cv=none; b=YPwQu4yYPXRaUSK4BfZfgyX2nlMtoKkLRN/3+VpITbdl60hDIcSRKl49M5Dq5zpIS/TN8BVjsShmlIfmdz+6FAELxrpU23im6+JByQicsShglkcC+X3gjE4Cp2iHhi4+89PEtabHaIsvx5cRTMpqpygsB+xNR1CVZaZS72uKu/4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753453053; c=relaxed/simple; bh=w/J2iLibDb2B/ATc9q/Dy4KE/CrsHFF4CudkF8hh5hA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KjOEwM0O/Fce6LCmkmlU8vEMpsqoRL9om92EJesW40UulmwA0pa7hOdUMutO8b05jcYD/LwpjIv7Ux1wqy2vTOCFXLlB5f+ldd2QoQOGzby6kngJ7KJQNCl5g8XddfbIVv1u9ndPNhE54qoDafdPV75hxi+i69aS3fyCgr9d9DM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nfn1IVxj; 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="nfn1IVxj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 242C7C4CEEB; Fri, 25 Jul 2025 14:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753453052; bh=w/J2iLibDb2B/ATc9q/Dy4KE/CrsHFF4CudkF8hh5hA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nfn1IVxjsKw3R8TjD3YxnoC6hIyjKAH4GfdSRwvCjlwS7R/th3x3mEtO3OOfeF6N3 Z25Yids5q3SJW8qjYaygGfNJ6IDv9lIiMv9HE7e6mTLlSxMclfcNVI/a+HsA34btcU bN1E0z4kYX43w50uaBF9nduyYDe1qznHVOF0Y6uY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38428: Input: ims-pcu - check record size in ims_pcu_flash_firmware() Date: Fri, 25 Jul 2025 16:17:01 +0200 Message-ID: <2025072556-CVE-2025-38428-8b33@gregkh> X-Mailer: git-send-email 2.50.1 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=3391; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DHHl/NAoROg46J1TCaIdAo8GnPoOo85zcyXcBc+qKqE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNE2/kX3aqXHbwZ7PikZehhbtnZlyIDL5ud4bHIfrqY e5QpZ0tHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARSz6GOZz7rVQWRCV9+Vo7 /+zE0midmNYTkQwLGmXyH298uirMryh/7wGL3k+qh+/nAgA= 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: Input: ims-pcu - check record size in ims_pcu_flash_firmware() The "len" variable comes from the firmware and we generally do trust firmware, but it's always better to double check. If the "len" is too large it could result in memory corruption when we do "memcpy(fragment->data, rec->data, len);" The Linux kernel CVE team has assigned CVE-2025-38428 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 5.4.295 with commit c1b9d140b0807c6aee4bb53e1bfa4e391e3dc204 Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 5.10.239 with commit d63706d9f73846106fde28b284f08e01b92ce9f1 Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 5.15.186 with commit e5a2481dc2a0b430f49276d7482793a8923631d6 Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 6.1.142 with commit 8e03f1c7d50343bf21da54873301bc4fa647479f Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 6.6.95 with commit 17474a56acf708bf6b2d174c06ed26abad0a9fd6 Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 6.12.35 with commit 5a8cd6ae8393e2eaebf51d420d5374821ef2af87 Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 6.15.4 with commit 74661516daee1eadebede8dc607b6830530096ec Issue introduced in 3.10 with commit 628329d52474323938a03826941e166bc7c8eff4 and fixed in 6.16-rc1 with commit a95ef0199e80f3384eb992889322957d26c00102 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-38428 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/input/misc/ims-pcu.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/c1b9d140b0807c6aee4bb53e1bfa4e391e3dc204 https://git.kernel.org/stable/c/d63706d9f73846106fde28b284f08e01b92ce9f1 https://git.kernel.org/stable/c/e5a2481dc2a0b430f49276d7482793a8923631d6 https://git.kernel.org/stable/c/8e03f1c7d50343bf21da54873301bc4fa647479f https://git.kernel.org/stable/c/17474a56acf708bf6b2d174c06ed26abad0a9fd6 https://git.kernel.org/stable/c/5a8cd6ae8393e2eaebf51d420d5374821ef2af87 https://git.kernel.org/stable/c/74661516daee1eadebede8dc607b6830530096ec https://git.kernel.org/stable/c/a95ef0199e80f3384eb992889322957d26c00102