CVE-2026-98791: net/mlx5e: Fix AF_XDP TX timestamp teardown NULL dereference
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5e: Fix AF_XDP TX timestamp teardown NULL dereference
During XSK TX queue teardown, outstanding descriptors are completed without a CQE. If one requested a TX timestamp, the completion path passes that NULL CQE to mlx5e_xsk_fill_timestamp(), which dereferences it.
Return zero when no CQE is available, indicating that teardown did not produce a TX timestamp.
The Linux kernel CVE team has assigned CVE-2026-98791 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit ec706a860eba99bf934d59f74b5db90af44e882e and fixed in 6.12.113 with commit fce70b6bf9f3261e887419a4e7caa25b80fa9d55 Issue introduced in 6.8 with commit ec706a860eba99bf934d59f74b5db90af44e882e and fixed in 6.18.56 with commit f81d40e2eb69552334f510114f3e6edd0d43178b Issue introduced in 6.8 with commit ec706a860eba99bf934d59f74b5db90af44e882e and fixed in 7.2.10 with commit 63df0ef4c6e3105589e6bb2e758ce611b0ada86c Issue introduced in 6.8 with commit ec706a860eba99bf934d59f74b5db90af44e882e and fixed in 7.3-rc6 with commit 7b97273cbebe9dd4fddc457f0c4f2a124d0e3996
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-2026-98791
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/en/xdp.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/fce70b6bf9f3261e887419a4e7caa25b80fa9d55 https://git.kernel.org/stable/c/f81d40e2eb69552334f510114f3e6edd0d43178b https://git.kernel.org/stable/c/63df0ef4c6e3105589e6bb2e758ce611b0ada86c https://git.kernel.org/stable/c/7b97273cbebe9dd4fddc457f0c4f2a124d0e3996