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 81B3949620 for ; Thu, 27 Feb 2025 02:08:31 +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=1740622111; cv=none; b=jxkIxay6o/TuspHxGEZMWcXTOgpfkm1jNewKKBbgCh/WAqwaoO6WQP0BID0y30aO5kccI+gyrhhP+FWpcrIie8L41YLHldr43I0VtIQ3rS/VBahywxkTCTQVz6tiHNcxucDVQMm5HKSw3JC2WdzELh/5KVMeAt4IYYYOVJSc3LI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622111; c=relaxed/simple; bh=/k6aRvautZPL7tIjb63TylT1GiyJkqclLc/4z086J/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ceGRCHHt1eC2MLqSktY24+6iC4TbmXYv/Ihr0m/9sU4kPmP5Wk52vIviC4ZpWgCORq261vOdNGnYji1eN/rWy7Ec5sk5xipK6lhVpQLgEyc1o5fW3j5S1G06DTPZ/5fnjxYQ80ZDPrtecVgMkT5aAUCMMpQGO2RtVtI0nG0ghMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HPK4kNwj; 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="HPK4kNwj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E579C4CED6; Thu, 27 Feb 2025 02:08:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622111; bh=/k6aRvautZPL7tIjb63TylT1GiyJkqclLc/4z086J/o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HPK4kNwj6gaHmzzh4xNofANquGNHimkzmbIpxOYXfHELyoCaE5uUF0KtvEeaT4w1F SCnxGGx2o5vu7/vrRV64vtyR12MuVslutHc9o5QpocJ3oUb/RNALFmsMCInPmp1rSf ZMba/o+zZny21RLBcR7NMqXccFBUGq5FXixmuUWM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57973: rdma/cxgb4: Prevent potential integer overflow on 32bit Date: Wed, 26 Feb 2025 18:05:32 -0800 Message-ID: <2025022632-CVE-2024-57973-8797@gregkh> X-Mailer: git-send-email 2.48.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=2732; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/k6aRvautZPL7tIjb63TylT1GiyJkqclLc/4z086J/o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T+Q8Xi9VzLJ5fbrPj5jZqzR6POY9FIyNelCxry84V +fmhJ2iHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRlRoM82ytU3Z/XnPm6y6f 9PaII/x3c67GNTAsmCW+4OzF5IvbVk9Kfr1QJdGqpzdhLgA= 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: rdma/cxgb4: Prevent potential integer overflow on 32bit The "gl->tot_len" variable is controlled by the user. It comes from process_responses(). On 32bit systems, the "gl->tot_len + sizeof(struct cpl_pass_accept_req) + sizeof(struct rss_header)" addition could have an integer wrapping bug. Use size_add() to prevent this. The Linux kernel CVE team has assigned CVE-2024-57973 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit 1cab775c3e75f1250c965feafd061d696df36e53 and fixed in 6.1.129 with commit 4422f452d028850b9cc4fd8f1cf45a8ff91855eb Issue introduced in 3.8 with commit 1cab775c3e75f1250c965feafd061d696df36e53 and fixed in 6.6.76 with commit de8d88b68d0cfd41152a7a63d6aec0ed3e1b837a Issue introduced in 3.8 with commit 1cab775c3e75f1250c965feafd061d696df36e53 and fixed in 6.12.13 with commit dd352107f22bfbecbbf3b74bde14f3f932296309 Issue introduced in 3.8 with commit 1cab775c3e75f1250c965feafd061d696df36e53 and fixed in 6.13.2 with commit aeb814484387811b3579d5c78ad4eb301e3bf1c8 Issue introduced in 3.8 with commit 1cab775c3e75f1250c965feafd061d696df36e53 and fixed in 6.14-rc1 with commit bd96a3935e89486304461a21752f824fc25e0f0b 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-2024-57973 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/infiniband/hw/cxgb4/device.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/4422f452d028850b9cc4fd8f1cf45a8ff91855eb https://git.kernel.org/stable/c/de8d88b68d0cfd41152a7a63d6aec0ed3e1b837a https://git.kernel.org/stable/c/dd352107f22bfbecbbf3b74bde14f3f932296309 https://git.kernel.org/stable/c/aeb814484387811b3579d5c78ad4eb301e3bf1c8 https://git.kernel.org/stable/c/bd96a3935e89486304461a21752f824fc25e0f0b