[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025091905-CVE-2025-39858-393c@gregkh>
Date: Fri, 19 Sep 2025 17:28:22 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-39858: eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists