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 EA1CF16CD33 for ; Sat, 16 Aug 2025 11:34:33 +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=1755344074; cv=none; b=X196PN4cjXTFjmxZvKisXPcsSGRWgJo+UyUntO2+QR+KLZ1+UHTEC/QjIhDOb4TvYV9lbPzFv9He9RapGLZJ4SokcEOKEB9Z7A+AEZF/w+MUrM9x5/fDvDR78DtIsnkWpqq8o9FC0OzH6/QWTCRjalPGibFA2jShGoAJ85R3cPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755344074; c=relaxed/simple; bh=I0tkFG+Uc1N6Ydg2iaknBit5fV0BU/XizuPnICOfHnU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p6x53VgkxezciFtk0aYtrorfO6BKaUU96MNcrHxs8ixJAyUmn5MLHkO+nsndwHGVdg6jHJTkJwGW6YEcNGT2bTTnirRzL3FyLbQDkt+S2+zSGdfgKQBV5EPkeqFyYo+acS91FZhEspYXSkwMt96ks+BG2NQuspP23dmgUXs8Hpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e8d/mQtx; 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="e8d/mQtx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC6E4C4CEEF; Sat, 16 Aug 2025 11:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755344073; bh=I0tkFG+Uc1N6Ydg2iaknBit5fV0BU/XizuPnICOfHnU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=e8d/mQtxhJNcAMqkfKTBtOZmQVdEjUQ5MC/eU20Hyy9OWWULMrdAFWfbRXE7WTxIj BH4NrB6zS2DGXa8WJ1xqI5vb7OtS8MjbJXADH5GzRBFIvYpef5ZbdA1UFVCJXvaxuV PxCeVVOn0ox66QlNpUQ4yAH1AK0K8rAz+EqlLaho= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38548: hwmon: (corsair-cpro) Validate the size of the received input buffer Date: Sat, 16 Aug 2025 13:34:25 +0200 Message-ID: <2025081627-CVE-2025-38548-6800@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=2569; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wtVjygPldFF7+iJeS98NMPYQ1XoOABJZoQMfw4Pq1fQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLcg5vXdDbWHjM4eeeH8+uST6rvnH4Qf7EzdtWRvYE5 PIcVjlysyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm4naQYcEek9xPVWxXX+5t n3W4yIFNhlkip5dhfnZL6wYzJ7d0Q51ju3x/y3clLGQoAAA= 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: hwmon: (corsair-cpro) Validate the size of the received input buffer Add buffer_recv_size to store the size of the received bytes. Validate buffer_recv_size in send_usb_cmd(). The Linux kernel CVE team has assigned CVE-2025-38548 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 40c3a445422579db8ad96c234dbe6c0ab3f6b936 and fixed in 6.1.147 with commit 0db770e2922389753ddbd6663a5516a32b97b743 Issue introduced in 5.9 with commit 40c3a445422579db8ad96c234dbe6c0ab3f6b936 and fixed in 6.6.100 with commit eda5e38cc4dd2dcb422840540374910ef2818494 Issue introduced in 5.9 with commit 40c3a445422579db8ad96c234dbe6c0ab3f6b936 and fixed in 6.12.40 with commit 3c4bdc8a852e446080adc8ceb90ddd67a56e1bb8 Issue introduced in 5.9 with commit 40c3a445422579db8ad96c234dbe6c0ab3f6b936 and fixed in 6.15.8 with commit 2771d2ee3d95700f34e1e4df6a445c90565cd4e9 Issue introduced in 5.9 with commit 40c3a445422579db8ad96c234dbe6c0ab3f6b936 and fixed in 6.16 with commit 495a4f0dce9c8c4478c242209748f1ee9e4d5820 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-38548 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/hwmon/corsair-cpro.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/0db770e2922389753ddbd6663a5516a32b97b743 https://git.kernel.org/stable/c/eda5e38cc4dd2dcb422840540374910ef2818494 https://git.kernel.org/stable/c/3c4bdc8a852e446080adc8ceb90ddd67a56e1bb8 https://git.kernel.org/stable/c/2771d2ee3d95700f34e1e4df6a445c90565cd4e9 https://git.kernel.org/stable/c/495a4f0dce9c8c4478c242209748f1ee9e4d5820