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 098DD221550 for ; Fri, 19 Sep 2025 15:28:57 +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=1758295738; cv=none; b=QJ5miykLHtIE2t1+uScxEupgbQH7EjhPCRNf9hW7Q9q8ofjVmvD3shDILQpxF+stMUOW1CuH3C0NYx6P39cEI/QJRugwVdc52A0YZ7hGHJDq0tcqUWhW2HagB6elkBjzGdo0yBiRgPzdLLBN/Ecy7v9eGShAkva1EJ1tfN0kL/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758295738; c=relaxed/simple; bh=Mf2vavYoFydbmZ5giKmA0625g165qX+fpswe9BT4CLc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cuiLSrQycfWNtclTgAS1/lGWFbWoRvQ7Mryh3eKQVLf9tn/IxhOl/PFotUgL1HoRBb4YhoCS6pQA3WTjOTroDpFdI1v2AXPhRm4z6Id5eybcoV9wDgEBSFmsqOPgrlSvfLiZq2I/ucewhRD1VxB7N0by24NE8o9KFfQUnTbhxf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n/WQAD79; 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="n/WQAD79" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAEEAC4CEF1; Fri, 19 Sep 2025 15:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758295737; bh=Mf2vavYoFydbmZ5giKmA0625g165qX+fpswe9BT4CLc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n/WQAD79j+qYzj3QwHOPcmoYSdwkDvwgYMmOmzBjiSkhg555FSKYwWTuBUldWWEx4 lgs46+asnIXOxua79Zi1wtqK3ajVw/EN1sFNUuiZ1J9XgMiS3jtz1e9dHeyWELYXhg DGW1If+KqGgqPuWVN3nEhuDrJUGZE5N81EDahP58= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39858: eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring Date: Fri, 19 Sep 2025 17:28:22 +0200 Message-ID: <2025091905-CVE-2025-39858-393c@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=1984; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JyowxHKnOzfxf3IscsCoj6BMtbG0+QXNNgMCybg4KZ0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlny1p9g0Q+G898b6F7TFg3Jr5i2vKbTeEPuo5Ky6vWm EZKX1LpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImYNDHMr3y4/2LLPRPpk4qf g/L+Lb+3e1LqVYYFU9emZXXlVGrklPUskkr486BhrpkhAA== 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: eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring Replace NULL check with IS_ERR() check after calling page_pool_create() since this function returns error pointers (ERR_PTR). Using NULL check could lead to invalid pointer dereference. The Linux kernel CVE team has assigned CVE-2025-39858 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 8533b14b3d65ee666ba31254787c1bdaee56d95a and fixed in 6.16.6 with commit 7b77d8841a98a9f45c8a615222c698df8dec581c Issue introduced in 6.15 with commit 8533b14b3d65ee666ba31254787c1bdaee56d95a and fixed in 6.17-rc5 with commit e580beaf43d563aaf457f1c7f934002355ebfe7b 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-39858 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/mlx4/en_rx.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/7b77d8841a98a9f45c8a615222c698df8dec581c https://git.kernel.org/stable/c/e580beaf43d563aaf457f1c7f934002355ebfe7b