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 AD30E17C77 for ; Thu, 27 Feb 2025 20:01:21 +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=1740686481; cv=none; b=GQj7fVP4ZHDY2oGakFgCvd8bozXtsg1s5ESc3DiBJkdmxRvSUFK0F06L2lEudaRG4pvA7QZwR9bNPWP+IA4f6fTl6E/3fgMtGAfI0JX73iSnP/98dprnYK8zZxAP0mPhK37uszxwX6iMeopF+ezQ+lJ9ChzlMh0SqNehWUojxdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740686481; c=relaxed/simple; bh=yKQiultciE76AAR7KLh/Spi8MkK/run27naLIElCIak=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YvSUAn5wqHJNObzyRyRf1mroHdIunEaSwRUeqKKZmBEwlV7bIyTpXGXnkWVgkWr9utXaQIWA/ZGREoyl0eSwc1Cshyr2aIVB7As7RJ5vDKrjjtYJjauNwbTPYX0W/+X9EUZEvgHGQyXtQvJ+wpPXE/NHDkEsyY5YXHirCanYtok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ByXB8iEY; 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="ByXB8iEY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81148C4CEE4; Thu, 27 Feb 2025 20:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740686481; bh=yKQiultciE76AAR7KLh/Spi8MkK/run27naLIElCIak=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ByXB8iEYdoFhtQ3lfD5kYy6YXMwHL9cOZMw47rtf80vLesLELMnfQFxBPJ/pF1aMg BeCa/CmY5s3rnLcf1Tx7n7R6U3ARbiLhaBBy9NtS6296r0CuoELPHRgkvkO7Ff9HN0 35d2qTZOYgEXHaCQHYwwF3zlBcstuGVR9rPnk/Pg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21800: net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset Date: Thu, 27 Feb 2025 11:59:54 -0800 Message-ID: <2025022752-CVE-2025-21800-d1e6@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=2279; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yKQiultciE76AAR7KLh/Spi8MkK/run27naLIElCIak=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkHjlic+bR8YnZM/GwGg+zUlm33GQoiU1MVdklZG/5TW S0R9+59RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk0J1hQXsHl8CjuSbBbzft Tk811VaYXPrFiGEWM5+95Pzwd3V3Xs/qOKHaLHam/DIHAA== 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/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset When bit offset for HWS_SET32 macro is negative, UBSAN complains about the shift-out-of-bounds: UBSAN: shift-out-of-bounds in drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c:177:2 shift exponent -8 is negative The Linux kernel CVE team has assigned CVE-2025-21800 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 74a778b4a63faef9ff02aad0d332b209835f93e1 and fixed in 6.12.13 with commit 92cff996624c4757d5bbace3dfa3f1567ba94143 Issue introduced in 6.12 with commit 74a778b4a63faef9ff02aad0d332b209835f93e1 and fixed in 6.13.2 with commit 69c676c0ded472713e6d1b3a456b3c4f52f66f0e Issue introduced in 6.12 with commit 74a778b4a63faef9ff02aad0d332b209835f93e1 and fixed in 6.14-rc1 with commit be482f1d10da781db9445d2753c1e3f1fd82babf 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-21800 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/ethernet/mellanox/mlx5/core/steering/hws/definer.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/92cff996624c4757d5bbace3dfa3f1567ba94143 https://git.kernel.org/stable/c/69c676c0ded472713e6d1b3a456b3c4f52f66f0e https://git.kernel.org/stable/c/be482f1d10da781db9445d2753c1e3f1fd82babf