blob: 7eb604a63fef03f16796dd6aa3b42150baaf1787 [file] [log] [blame]
From bippy-7c5fe7eed585 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2025-21975: net/mlx5: handle errors in mlx5_chains_create_table()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: handle errors in mlx5_chains_create_table()
In mlx5_chains_create_table(), the return value of mlx5_get_fdb_sub_ns()
and mlx5_get_flow_namespace() must be checked to prevent NULL pointer
dereferences. If either function fails, the function should log error
message with mlx5_core_warn() and return error pointer.
The Linux kernel CVE team has assigned CVE-2025-21975 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.6 with commit 39ac237ce00968545e7298faa9e07ecb7e440fb5 and fixed in 5.10.236 with commit 15bdd93728369b2c8942a8e5d549d4b5dc04a2d9
Issue introduced in 5.6 with commit 39ac237ce00968545e7298faa9e07ecb7e440fb5 and fixed in 5.15.180 with commit 29c419c64e9b396baeda1d8713d2aa3ba7c0acf6
Issue introduced in 5.6 with commit 39ac237ce00968545e7298faa9e07ecb7e440fb5 and fixed in 6.1.132 with commit 1598307c914ba3d2642a2b03d1ff11efbdb7c6c2
Issue introduced in 5.6 with commit 39ac237ce00968545e7298faa9e07ecb7e440fb5 and fixed in 6.6.84 with commit 637105ef0d46fe5beac15aceb431da3ec832bb00
Issue introduced in 5.6 with commit 39ac237ce00968545e7298faa9e07ecb7e440fb5 and fixed in 6.12.20 with commit 1d34296409a519b4027750e3e82d9e19553a7398
Issue introduced in 5.6 with commit 39ac237ce00968545e7298faa9e07ecb7e440fb5 and fixed in 6.13.8 with commit 093b4aaec97ec048623e3fe1e516fc45a954d412
Issue introduced in 5.6 with commit 39ac237ce00968545e7298faa9e07ecb7e440fb5 and fixed in 6.14 with commit eab0396353be1c778eba1c0b5180176f04dd21ce
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-21975
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/lib/fs_chains.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/15bdd93728369b2c8942a8e5d549d4b5dc04a2d9
https://git.kernel.org/stable/c/29c419c64e9b396baeda1d8713d2aa3ba7c0acf6
https://git.kernel.org/stable/c/1598307c914ba3d2642a2b03d1ff11efbdb7c6c2
https://git.kernel.org/stable/c/637105ef0d46fe5beac15aceb431da3ec832bb00
https://git.kernel.org/stable/c/1d34296409a519b4027750e3e82d9e19553a7398
https://git.kernel.org/stable/c/093b4aaec97ec048623e3fe1e516fc45a954d412
https://git.kernel.org/stable/c/eab0396353be1c778eba1c0b5180176f04dd21ce