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 D373C1442EF for ; Tue, 21 May 2024 15:25:23 +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=1716305123; cv=none; b=XCKTtxd7MHLRmRjwI+rFz8rKECZbHCkWvnKYtx/VFfASTGhiz9cRkCJ48Z2IaG1QmyapOdGNPjl3jExbt5Rfy76k+m5EV7Sk6QX1uwKhSCuCSFXibhkT/PHMyA1EbNN3HaBZO0UQ00Erbql29Ic2s/BlvwyipJ95RmrDpJvyy68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305123; c=relaxed/simple; bh=gg6qcRU2c+IoVpqz8Fh3dfCk8Sz77itxZvjNbPN/ggU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dxaHY+IWUDbxCzcKpQgl80Bu4QzsrhIlsHjWFdqJZ6QohlkijCcyubjwY7BjdL2mXsPuJBcbWN9pWAvNKXfX00XUmE52QaB8t0RLCQ2I8aNiGqlmHahGO3YSohranCQObLZiZxUbiXfvYWerQnaV5XnmFS1Za4Tc1aBgs4KAWWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o8I4Z0O6; 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="o8I4Z0O6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5616CC2BD11; Tue, 21 May 2024 15:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305123; bh=gg6qcRU2c+IoVpqz8Fh3dfCk8Sz77itxZvjNbPN/ggU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=o8I4Z0O6QH2Bpe3H2jmeloJrUQxXTxzzqLfFSdiL2XpnVMqiBSitGPic4/hnUHryt L2uJJvS5Qnf1kbLZfnSs4KT/b7/8i2WFXPO6dYfUiaRjnmSujiHf3InsIva2BXgLHf 8TFEL83F4X+tL/w597oq66bQuTsVW9zW6mp9zvJM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52703: net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path Date: Tue, 21 May 2024 17:23:01 +0200 Message-ID: <2024052157-CVE-2023-52703-abcb@gregkh> X-Mailer: git-send-email 2.45.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=3001; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gg6qcRU2c+IoVpqz8Fh3dfCk8Sz77itxZvjNbPN/ggU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+ewIVOHfIMc4tON6vb1e7KyCFt5+/XrkwWMBvTfRm5 y2sUfs7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJ7WxnmCke2zb4061fy+9u3 RD69yuLc3HxFnGHB5Z1Vuu/PRH7dHXDs7JsXpa5aAbeTAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path syzbot reported that act_len in kalmia_send_init_packet() is uninitialized when passing it to the first usb_bulk_msg error path. Jiri Pirko noted that it's pointless to pass it in the error path, and that the value that would be printed in the second error path would be the value of act_len from the first call to usb_bulk_msg.[1] With this in mind, let's just not pass act_len to the usb_bulk_msg error paths. 1: https://lore.kernel.org/lkml/Y9pY61y1nwTuzMOa@nanopsycho/ The Linux kernel CVE team has assigned CVE-2023-52703 to this issue. Affected and fixed versions =========================== Issue introduced in 3.0 with commit d40261236e8e and fixed in 4.14.306 with commit 1b5de7d44890 Issue introduced in 3.0 with commit d40261236e8e and fixed in 4.19.273 with commit 723ef7b66f37 Issue introduced in 3.0 with commit d40261236e8e and fixed in 5.4.232 with commit a753352622b4 Issue introduced in 3.0 with commit d40261236e8e and fixed in 5.10.169 with commit 525bdcb0838d Issue introduced in 3.0 with commit d40261236e8e and fixed in 5.15.95 with commit 338f826d3afe Issue introduced in 3.0 with commit d40261236e8e and fixed in 6.1.13 with commit 02df3170c04a Issue introduced in 3.0 with commit d40261236e8e and fixed in 6.2 with commit c68f345b7c42 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-2023-52703 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/net/usb/kalmia.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/1b5de7d44890b78519acbcc80d8d1f23ff2872e5 https://git.kernel.org/stable/c/723ef7b66f37c0841f5a451ccbce47ee1641e081 https://git.kernel.org/stable/c/a753352622b4f3c0219e0e9c73114b2848ae6042 https://git.kernel.org/stable/c/525bdcb0838d19d918c7786151ee14661967a030 https://git.kernel.org/stable/c/338f826d3afead6e4df521f7972a4bef04a72efb https://git.kernel.org/stable/c/02df3170c04a8356cd571ab9155a42f030190abc https://git.kernel.org/stable/c/c68f345b7c425b38656e1791a0486769a8797016