In the Linux kernel, the following vulnerability has been resolved:
net: dsa: improve shutdown sequence
Alexander Sverdlin presents 2 problems during shutdown with the lan9303 driver. One is specific to lan9303 and the other just happens to reproduce there.
The first problem is that lan9303 is unique among DSA drivers in that it calls dev_get_drvdata() at "arbitrary runtime" (not probe, not shutdown, not remove):
phy_state_machine() -> ... -> dsa_user_phy_read() -> ds->ops->phy_read() -> lan9303_phy_read() -> chip->ops->phy_read() -> lan9303_mdio_phy_read() -> dev_get_drvdata()
But we never stop the phy_state_machine(), so it may continue to run after dsa_switch_shutdown(). Our common pattern in all DSA drivers is to set drvdata to NULL to suppress the remove() method that may come afterwards. But in this case it will result in an NPD.
The second problem is that the way in which we set dp->conduit->dsa_ptr = NULL; is concurrent with receive packet processing. dsa_switch_rcv() checks once whether dev->dsa_ptr is NULL, but afterwards, rather than continuing to use that non-NULL value, dev->dsa_ptr is dereferenced again and again without NULL checks: dsa_conduit_find_user() and many other places. In between dereferences, there is no locking to ensure that what was valid once continues to be valid.
Both problems have the common aspect that closing the conduit interface solves them.
In the first case, dev_close(conduit) triggers the NETDEV_GOING_DOWN event in dsa_user_netdevice_event() which closes user ports as well. dsa_port_disable_rt() calls phylink_stop(), which synchronously stops the phylink state machine, and ds->ops->phy_read() will thus no longer call into the driver after this point.
In the second case, dev_close(conduit) should do this, as per Documentation/networking/driver.rst:
| Quiescence | ---------- | | After the ndo_stop routine has been called, the hardware must | not receive or transmit any data. All in flight packets must | be aborted. If necessary, poll or wait for completion of | any reset commands.
So it should be sufficient to ensure that later, when we zeroize conduit->dsa_ptr, there will be no concurrent dsa_switch_rcv() call on this conduit.
The addition of the netif_device_detach() function is to ensure that ioctls, rtnetlinks and ethtool requests on the user ports no longer propagate down to the driver - we're no longer prepared to handle them.
The race condition actually did not exist when commit 0650bf52b31f ("net: dsa: be compatible with masters which unregister on shutdown") first introduced dsa_switch_shutdown(). It was created later, when we stopped unregistering the user interfaces from a bad spot, and we just replaced that sequence with a racy zeroization of conduit->dsa_ptr (one which doesn't ensure that the interfaces aren't up).
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux-6.1Upgrade linux | May 15, 2025 | Oct 21, 2024 |
| Oracle_linux | — | Upgrade kernel-uek | Feb 10, 2025 | Oct 21, 2024 |
| Ubuntu | — | Upgrade linux-image-6.8.0-1024-gcp-64kUpgrade linux-image-5.15.0-1072-ibmUpgrade linux-image-5.15.0-135-fipsUpgrade linux-image-5.15.0-136-generic-lpaeUpgrade linux-image-fipsUpgrade linux-image-nvidia-tegra-igxUpgrade linux-image-oem-20.04Upgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-6.8.0-54-generic-64kUpgrade linux-image-nvidia-tegra-igx-rtUpgrade linux-image-gkeop-6.8Upgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-5.15.0-1083-azure-fipsUpgrade linux-image-oem-22.04Upgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-aws-lts-22.04Upgrade linux-image-gke-5.15Upgrade linux-image-5.15.0-1077-oracleUpgrade linux-image-6.8.0-1020-oracle-64kUpgrade linux-image-5.15.0-1080-awsUpgrade linux-image-6.8.0-1024-oemUpgrade linux-image-6.11.0-1010-lowlatency-64kUpgrade linux-image-6.11.0-1011-oracleUpgrade linux-image-oracle-lts-22.04Upgrade linux-image-5.15.0-136-genericUpgrade linux-image-6.8.0-54-lowlatencyUpgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-azure-cvmUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-6.8.0-57-genericUpgrade linux-image-6.8.0-1006-gkeopUpgrade linux-image-5.15.0-1077-intel-iotgUpgrade linux-image-gcp-lts-22.04Upgrade linux-image-5.15.0-135-generic-lpaeUpgrade linux-image-xilinx-zynqmpUpgrade linux-image-oracleUpgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-5.15.0-1080-aws-fipsUpgrade linux-image-gcpUpgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-raspi-nolpaeUpgrade linux-image-5.15.0-1079-gcpUpgrade linux-image-generic-64k-hwe-20.04Upgrade linux-image-5.15.0-1021-nvidia-tegra-igxUpgrade linux-image-6.8.0-1022-nvidiaUpgrade linux-image-6.8.0-1022-nvidia-lowlatencyUpgrade linux-image-oem-24.04bUpgrade linux-image-awsUpgrade linux-image-6.8.0-54-genericUpgrade linux-image-6.11.0-1005-realtimeUpgrade linux-image-oem-20.04dUpgrade linux-image-virtualUpgrade linux-image-kvmUpgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-6.8.0-54-lowlatency-64kUpgrade linux-image-oem-22.04bUpgrade linux-image-realtimeUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-oem-24.04Upgrade linux-image-aws-fipsUpgrade linux-image-6.11.0-1009-gcpUpgrade linux-image-generic-lpaeUpgrade linux-image-6.8.0-1022-nvidia-64kUpgrade linux-image-6.8.0-1024-gcpUpgrade linux-image-5.15.0-135-genericUpgrade linux-image-nvidia-tegra-rtUpgrade linux-image-6.8.0-57-generic-64kUpgrade linux-image-5.15.0-1086-azure-fdeUpgrade linux-image-ibm-lts-24.04Upgrade linux-image-gkeUpgrade linux-image-6.8.0-1022-ibmUpgrade linux-image-5.15.0-135-lowlatency-64kUpgrade linux-image-lowlatency-hwe-20.04Upgrade linux-image-gcp-64kUpgrade linux-image-6.11.0-18-genericUpgrade linux-image-5.15.0-1077-gkeUpgrade linux-image-5.15.0-135-lowlatencyUpgrade linux-image-intel-iotgUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-5.15.0-1033-nvidia-tegra-rtUpgrade linux-image-oem-22.04dUpgrade linux-image-lowlatencyUpgrade linux-image-ibmUpgrade linux-image-6.11.0-1009-azure-fdeUpgrade linux-image-intel-iot-realtimeUpgrade linux-image-azure-lts-22.04Upgrade linux-image-realtime-hwe-24.04Upgrade linux-image-5.15.0-1074-nvidiaUpgrade linux-image-6.11.0-1009-awsUpgrade linux-image-generic-hwe-20.04Upgrade linux-image-6.11.0-1010-lowlatencyUpgrade linux-image-5.15.0-1044-xilinx-zynqmpUpgrade linux-image-oem-22.04aUpgrade linux-image-azure-nvidiaUpgrade linux-image-6.11.0-1008-raspiUpgrade linux-image-intelUpgrade linux-image-6.8.0-1020-oracleUpgrade linux-image-nvidiaUpgrade linux-image-azure-fde-lts-24.04Upgrade linux-image-oem-24.04aUpgrade linux-image-gcp-fipsUpgrade linux-image-5.15.0-1081-gcpUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-6.11.0-1015-oemUpgrade linux-image-lowlatency-64k-hwe-20.04Upgrade linux-image-5.15.0-1033-nvidia-tegraUpgrade linux-image-azure-lts-24.04Upgrade linux-image-6.11.0-1009-azureUpgrade linux-image-azure-fipsUpgrade linux-image-5.15.0-1080-realtimeUpgrade linux-image-azure-fdeUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-oem-20.04bUpgrade linux-image-6.11.0-1011-oracle-64kUpgrade linux-image-virtual-hwe-20.04Upgrade linux-image-virtual-hwe-22.04Upgrade linux-image-gkeop-5.15Upgrade linux-image-5.15.0-1074-raspiUpgrade linux-image-oem-20.04cUpgrade linux-image-6.8.0-1014-azure-nvidiaUpgrade linux-image-5.15.0-1075-intel-iotgUpgrade linux-image-azureUpgrade linux-image-genericUpgrade linux-image-gkeopUpgrade linux-image-6.8.0-1019-raspiUpgrade linux-image-generic-lpae-hwe-20.04Upgrade linux-image-raspiUpgrade linux-image-nvidia-64kUpgrade linux-image-5.15.0-1074-ibmUpgrade linux-image-5.15.0-1073-intel-iot-realtimeUpgrade linux-image-5.15.0-136-generic-64kUpgrade linux-image-5.15.0-1062-gkeopUpgrade linux-image-oem-22.04cUpgrade linux-image-6.8.0-1025-azureUpgrade linux-image-5.15.0-135-generic-64kUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-5.15.0-1079-gcp-fipsUpgrade linux-image-6.8.0-1019-gkeUpgrade linux-image-5.15.0-1084-azureUpgrade linux-image-6.11.0-18-generic-64kUpgrade linux-image-5.15.0-1076-kvmUpgrade linux-image-6.8.0-1023-awsUpgrade linux-image-nvidia-6.8Upgrade linux-image-generic-64kUpgrade linux-image-6.8.0-1025-azure-fdeUpgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-ibm-classicUpgrade linux-image-5.15.0-1021-nvidia-tegra-igx-rtUpgrade linux-image-5.15.0-1086-azureUpgrade linux-image-nvidia-tegraUpgrade linux-image-lowlatency-64kUpgrade linux-image-aws-lts-24.04Upgrade linux-image-gcp-lts-24.04Upgrade linux-image-nvidia-lowlatencyUpgrade linux-image-oracle-64kUpgrade linux-image-6.8.0-1022-nvidia-lowlatency-64kUpgrade linux-image-5.15.0-1074-nvidia-lowlatency | Feb 20, 2025 | Oct 21, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Oct 21, 2024 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub