CVE-2025-37933: octeon_ep: Fix host hang issue during device reboot
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
octeon_ep: Fix host hang issue during device reboot
When the host loses heartbeat messages from the device, the driver calls the device-specific ndo_stop function, which frees the resources. If the driver is unloaded in this scenario, it calls ndo_stop again, attempting to free resources that have already been freed, leading to a host hang issue. To resolve this, dev_close should be called instead of the device-specific stop function.dev_close internally calls ndo_stop to stop the network interface and performs additional cleanup tasks. During the driver unload process, if the device is already down, ndo_stop is not called.
The Linux kernel CVE team has assigned CVE-2025-37933 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.4 with commit 5cb96c29aa0ea359e4f5d30585538dc6a847d69d and fixed in 6.6.90 with commit 7e1ca1bed3f66e00377f7d2147be390144924276 Issue introduced in 6.4 with commit 5cb96c29aa0ea359e4f5d30585538dc6a847d69d and fixed in 6.12.28 with commit c8d788f800f83b94d9db8b3dacc1d26be38a6ef4 Issue introduced in 6.4 with commit 5cb96c29aa0ea359e4f5d30585538dc6a847d69d and fixed in 6.14.6 with commit 6d1052423518e7d0aece9af5e77bbc324face8f1 Issue introduced in 6.4 with commit 5cb96c29aa0ea359e4f5d30585538dc6a847d69d and fixed in 6.15-rc5 with commit 34f42736b325287a7b2ce37e415838f539767bda
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-37933
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/marvell/octeon_ep/octep_main.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/7e1ca1bed3f66e00377f7d2147be390144924276 https://git.kernel.org/stable/c/c8d788f800f83b94d9db8b3dacc1d26be38a6ef4 https://git.kernel.org/stable/c/6d1052423518e7d0aece9af5e77bbc324face8f1 https://git.kernel.org/stable/c/34f42736b325287a7b2ce37e415838f539767bda