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 9C88B16E882 for ; Fri, 12 Jul 2024 12:28:19 +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=1720787299; cv=none; b=DEOETd6iIEmpWendLHj7epIa2pJu2GK/UjNb4OBAIUXsLaMMaFffR+wwNfnGfCM4SWyAANMLsfB12oLUl/EOgXrVq0TuAG5DvvYIwOlqhTNt3sRognBXMoKcNBGlICbQWkOhCoDolKyfurSEeTEjrSj0oU2vqUmEgvdEFDIkdYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787299; c=relaxed/simple; bh=7QTS4H4Af41JDhj378+CKU64iPvrb8pPzIhlAC/egUA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EwnRIKbiBOoIDBsrpmQi0DqazVdMedJ1RQ9fMx2BfzUgy08Nxm0ORGfrmGIOdd6gR3j2Os04BLXaT65/kxNR7xJiVnPyZeIYnspCQCO1Rsv21+duZiVM/9IHXpoJhfJBfRvjBNsWrB41GxFF6vV/DrcJsWu0Jyy0sNDKGExEir0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=epJkh1W7; 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="epJkh1W7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8443C32782; Fri, 12 Jul 2024 12:28:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787299; bh=7QTS4H4Af41JDhj378+CKU64iPvrb8pPzIhlAC/egUA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=epJkh1W7tOZ+rY6b6cPSNE6ocOvT6+i2a3oX5TVJibVEFzUDcSmOI00jKMo7KhIzk l625gPbsdZKn7tfFVNi/ovCtR4Nu+2/50nORmv5zqrlVB3K9+fOH7goQ/qm2LEcTfX oq6d+1bWZvCGUEwD6KDPWxxW3ggEZxmjpMSVNTN8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40940: net/mlx5: Fix tainted pointer delete is case of flow rules creation fail Date: Fri, 12 Jul 2024 14:27:38 +0200 Message-ID: <2024071218-CVE-2024-40940-5b9e@gregkh> X-Mailer: git-send-email 2.45.2 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=2322; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7QTS4H4Af41JDhj378+CKU64iPvrb8pPzIhlAC/egUA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFdXUp6+deKV151avtuhGjd0Jnsw7I6Y9SRB6eqw9N uyZ5x6TjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIIQ6G+aW3nkx7PSFyf5Sp 0+nKsBPzYq9P2MEwz1ao+zX7nrmhv7sV3I5m7e83dd0bDwA= 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: Fix tainted pointer delete is case of flow rules creation fail In case of flow rule creation fail in mlx5_lag_create_port_sel_table(), instead of previously created rules, the tainted pointer is deleted deveral times. Fix this bug by using correct flow rules pointers. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-40940 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 352899f384d4 and fixed in 6.1.95 with commit 531eab2da27d Issue introduced in 5.19 with commit 352899f384d4 and fixed in 6.6.35 with commit d857df86837a Issue introduced in 5.19 with commit 352899f384d4 and fixed in 6.9.6 with commit a03a3fa12769 Issue introduced in 5.19 with commit 352899f384d4 and fixed in 6.10-rc3 with commit 229bedbf62b1 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-40940 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/lag/port_sel.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/531eab2da27dd42d68dfb841d82e987f4a6738b8 https://git.kernel.org/stable/c/d857df86837ac1c30592e8a068204d16feac9930 https://git.kernel.org/stable/c/a03a3fa12769e25f4385bee587afe1445aee7f7a https://git.kernel.org/stable/c/229bedbf62b13af5aba6525ad10b62ad38d9ccb5