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 83BB53191B2 for ; Tue, 16 Sep 2025 13:09:05 +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=1758028145; cv=none; b=DxB4X6lO2cBs6LjPu1SkxA3pejKlGn6K525jvyghIlOM/CeBsBrjLnaOZeu3buY9OqY3VId/Ee69gAyqkAubTqNAKT1qq+CsKDx5qqaMUEXwPYJEwE0AcOJjr8bK5kpb8E1VR9PWvAvn1RrIj81xciC9FpbLJKzgipFawlru6Zo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758028145; c=relaxed/simple; bh=clIW6xE7i2YtVYzlS6361FVl5pToPJCLZu2Nv1REt/s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HcYAze+siX+v7ELs/LDvAlwM+a52qx7Y4udJPjCHq2vrzE0YFi/pJgp7Kd7VzllA2uRXF6inh+K+qIZ+q8ppVZoSpE1hevyJ6Pm30DjYwgVQD/uLZmSnHazny/1Y3uM4oifFiLLHfscEFazFMij/Q3SrlRXIdx+4iN1v+GqCttI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2YG9tPmA; 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="2YG9tPmA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7633C4CEF0; Tue, 16 Sep 2025 13:09:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758028145; bh=clIW6xE7i2YtVYzlS6361FVl5pToPJCLZu2Nv1REt/s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2YG9tPmAG7XxLDNouVevTM7WVjfYGRvPspEz+VHaBI6iFqrJAEKyOrQvTETArSNe6 9zgTgskVF4I5pT+ukosNEsY1GOA9ObkEZLIawINRBAXLi4CATE3XdSl5TZ23oIPIua IGDHDOpv0ycD9O7bbRZ9oivc0QYN5hOEwvStWTYI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39830: net/mlx5: HWS, Fix memory leak in hws_pool_buddy_init error path Date: Tue, 16 Sep 2025 15:08:58 +0200 Message-ID: <2025091657-CVE-2025-39830-5341@gregkh> X-Mailer: git-send-email 2.51.0 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=2020; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nhzcoOWJWkxxda63GN74kxbxLg65XnDB6mFsA4KNDbg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknEzNX3eCKlK1TufVzz5z5kh8XJt58qDZ/97b3gp+Xr kh5XF7f3xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATyVJnWDBr14/nbPd9jkyc kdXCt+2CbH10pT/Dgouny9OzVxzcVHzv1vbHCiKrhbxPJQEA 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: net/mlx5: HWS, Fix memory leak in hws_pool_buddy_init error path In the error path of hws_pool_buddy_init(), the buddy allocator cleanup doesn't free the allocator structure itself, causing a memory leak. Add the missing kfree() to properly release all allocated memory. The Linux kernel CVE team has assigned CVE-2025-39830 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit c61afff94373641695cc81999e9bb10408ea84d5 and fixed in 6.16.5 with commit 86d13a6f49cb68aa91bd718b1b627e72e77285c1 Issue introduced in 6.12 with commit c61afff94373641695cc81999e9bb10408ea84d5 and fixed in 6.17-rc4 with commit 2c0a959bebdc1ada13cf9a8242f177c5400299e6 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-39830 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/pool.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/86d13a6f49cb68aa91bd718b1b627e72e77285c1 https://git.kernel.org/stable/c/2c0a959bebdc1ada13cf9a8242f177c5400299e6