[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2024122751-CVE-2024-56660-fb9d@gregkh>
Date: Fri, 27 Dec 2024 16:06:57 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2024-56660: net/mlx5: DR, prevent potential error pointer dereference
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: DR, prevent potential error pointer dereference
The dr_domain_add_vport_cap() function generally returns NULL on error
but sometimes we want it to return ERR_PTR(-EBUSY) so the caller can
retry. The problem here is that "ret" can be either -EBUSY or -ENOMEM
and if it's and -ENOMEM then the error pointer is propogated back and
eventually dereferenced in dr_ste_v0_build_src_gvmi_qpn_tag().
The Linux kernel CVE team has assigned CVE-2024-56660 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 11a45def2e197532c46aa908dedd52bc1ee378a2 and fixed in 6.1.121 with commit 61f720e801443d4e2a3c0261eda4ad8431458dca
Issue introduced in 5.16 with commit 11a45def2e197532c46aa908dedd52bc1ee378a2 and fixed in 6.6.67 with commit 325cf73a1b449fea3158ab99d03a7a717aad1618
Issue introduced in 5.16 with commit 11a45def2e197532c46aa908dedd52bc1ee378a2 and fixed in 6.12.6 with commit a59c61a1869ceefc65ef02886f91e8cd0062211f
Issue introduced in 5.16 with commit 11a45def2e197532c46aa908dedd52bc1ee378a2 and fixed in 6.13-rc3 with commit 11776cff0b563c8b8a4fa76cab620bfb633a8cb8
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-2024-56660
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/sws/dr_domain.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/61f720e801443d4e2a3c0261eda4ad8431458dca
https://git.kernel.org/stable/c/325cf73a1b449fea3158ab99d03a7a717aad1618
https://git.kernel.org/stable/c/a59c61a1869ceefc65ef02886f91e8cd0062211f
https://git.kernel.org/stable/c/11776cff0b563c8b8a4fa76cab620bfb633a8cb8
Powered by blists - more mailing lists