Description
In the Linux kernel, the following vulnerability has been resolved: net: hix5hd2: serialize timeout recovery with interface teardown The timeout worker calls the driver's close and open methods without RTNL or a running-state check. A timeout queued before an interface is closed can call close again after ndo_stop has disabled NAPI. The second napi_disable() can then wait indefinitely. The worker can also race with an ongoing close. Take RTNL and skip recovery when the interface is no longer running. Use the netdev core close and open helpers so a failed reopen leaves the interface down, rather than leaving it marked running with NAPI disabled. After unregister_netdev() has stopped the watchdog, drain the worker before releasing its MDIO and descriptor resources. This wait is outside RTNL, allowing an already queued worker to take RTNL, observe the down state, and finish. This issue was identified as part of our ongoing research while reviewing kernel code.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < 1e3669c0b8cf6f0128ca987785efa3718feb2a88affected57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < 423a53b78b0b765b5889b39111725b058b6faaf1affected57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < d0b44156849f275f9de13423935b2bb598ee24fcaffected57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < 3d53e78465916db13a3bc1a976b72d7a2478098faffected57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < 16b3c603817a782e756f249f4a9c4449ac1ed35daffected57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < 41e61bcb20b071d3e521ee3e85ef3044cd12f857affected57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < ac813b0c73b7f884fbbad9dd40c1487d7a5935ddaffected57c5bc9ad7d799e9507ba6e993398d2c55f03fab to < 87cce46329a811ea3fe108ac721e0a2400d0a3bbaffected
Linux Linux
Default version status: affected
3.16affected0 to < 3.16unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/1e3669c0b8cf6f0128ca987785efa3718feb2a88 ↗
- https://git.kernel.org/stable/c/423a53b78b0b765b5889b39111725b058b6faaf1 ↗
- https://git.kernel.org/stable/c/d0b44156849f275f9de13423935b2bb598ee24fc ↗
- https://git.kernel.org/stable/c/3d53e78465916db13a3bc1a976b72d7a2478098f ↗
- https://git.kernel.org/stable/c/16b3c603817a782e756f249f4a9c4449ac1ed35d ↗
- https://git.kernel.org/stable/c/41e61bcb20b071d3e521ee3e85ef3044cd12f857 ↗
- https://git.kernel.org/stable/c/ac813b0c73b7f884fbbad9dd40c1487d7a5935dd ↗
- https://git.kernel.org/stable/c/87cce46329a811ea3fe108ac721e0a2400d0a3bb ↗