lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025011533-CVE-2024-57801-6479@gregkh>
Date: Wed, 15 Jan 2025 14:10:37 +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-57801: net/mlx5e: Skip restore TC rules for vport rep without loaded flag

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Skip restore TC rules for vport rep without loaded flag

During driver unload, unregister_netdev is called after unloading
vport rep. So, the mlx5e_rep_priv is already freed while trying to get
rpriv->netdev, or walk rpriv->tc_ht, which results in use-after-free.
So add the checking to make sure access the data of vport rep which is
still loaded.

The Linux kernel CVE team has assigned CVE-2024-57801 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.6 with commit d1569537a837d66620aa7ffc2bddf918e902f227 and fixed in 6.6.70 with commit 3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0
	Issue introduced in 6.6 with commit d1569537a837d66620aa7ffc2bddf918e902f227 and fixed in 6.12.9 with commit 47c78d3fc26e38ab805613a0f592dc8a820c7c64
	Issue introduced in 6.6 with commit d1569537a837d66620aa7ffc2bddf918e902f227 and fixed in 6.13-rc6 with commit 5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be

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-57801
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/esw/ipsec_fs.c
	drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
	drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.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/3e45dd1622a2c1a83c11bf42fdd8c1810123d6c0
	https://git.kernel.org/stable/c/47c78d3fc26e38ab805613a0f592dc8a820c7c64
	https://git.kernel.org/stable/c/5a03b368562a7ff5f5f1f63b5adf8309cbdbd5be

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ