# CVE-2024-49998: linux: In the Linux kernel, the following vulnerability has been resolved:  net: dsa: improve shutdown sequence  Alexander S...

CVE-2024-49998 is fixed in 40 products on 1 platform, first by DEBIAN-CVE-2024-49998, released October 21, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-49998
- Priority: Routine
- CVSS: 4.7 (medium)
- EPSS: 0.0019
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 21, 2024

## Description

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).

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | bpftool ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | dtb-aarch64 opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-64kb opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-64kb sles 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-azure opensuse-leap 15.6 | 6.4.0-150600.8.26.1 | [SUSE-SU-2025:0428-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0428-1.md) | Feb 11, 2025 |
| Linux | kernel-azure sles 15.6 | 6.4.0-150600.8.26.1 | [SUSE-SU-2025:0428-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0428-1.md) | Feb 11, 2025 |
| Linux | kernel-coco sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| Linux | kernel-coco_debug sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| Linux | kernel-debug opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-default opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-default sles 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-default-base opensuse-leap 15.6 | 6.4.0-150600.23.38.1.150600.12.16.2 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-default-base sles 15.6 | 6.4.0-150600.23.38.1.150600.12.16.2 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-docs opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-docs sles 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-kvmsmall opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-livepatch-SLE15-SP6-RT_Update_8 sles 15.6 | 1-150600.1.3.1 | [SUSE-SU-2025:0557-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0557-1.md) | Feb 14, 2025 |
| Linux | kernel-livepatch-SLE15-SP6_Update_8 sles 15.6 | 1-150600.13.3.2 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-obs-build opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-obs-build sles 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-obs-qa opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-rt opensuse-leap 15.6 | 6.4.0-150600.10.26.1 | [SUSE-SU-2025:0557-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0557-1.md) | Feb 14, 2025 |
| Linux | kernel-rt_debug opensuse-leap 15.6 | 6.4.0-150600.10.26.1 | [SUSE-SU-2025:0557-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0557-1.md) | Feb 14, 2025 |
| Linux | kernel-source opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-source sles 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-source-azure opensuse-leap 15.6 | 6.4.0-150600.8.26.1 | [SUSE-SU-2025:0428-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0428-1.md) | Feb 11, 2025 |
| Linux | kernel-source-azure sles 15.6 | 6.4.0-150600.8.26.1 | [SUSE-SU-2025:0428-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0428-1.md) | Feb 11, 2025 |
| Linux | kernel-source-coco sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| Linux | kernel-source-rt opensuse-leap 15.6 | 6.4.0-150600.10.26.1 | [SUSE-SU-2025:0557-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0557-1.md) | Feb 14, 2025 |
| Linux | kernel-syms opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-syms sles 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-syms-azure opensuse-leap 15.6 | 6.4.0-150600.8.26.1 | [SUSE-SU-2025:0428-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0428-1.md) | Feb 11, 2025 |
| Linux | kernel-syms-azure sles 15.6 | 6.4.0-150600.8.26.1 | [SUSE-SU-2025:0428-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0428-1.md) | Feb 11, 2025 |
| Linux | kernel-syms-coco sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| Linux | kernel-syms-rt opensuse-leap 15.6 | 6.4.0-150600.10.26.1 | [SUSE-SU-2025:0557-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0557-1.md) | Feb 14, 2025 |
| Linux | kernel-uek ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container-debug ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container-debug ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-core ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-core ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-core ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-core ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-devel ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-devel ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules-extra ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules-extra ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-devel ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-devel ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-doc ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-doc ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules-extra ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules-extra ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-zfcpdump opensuse-leap 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | kernel-zfcpdump sles 15.6 | 6.4.0-150600.23.38.1 | [SUSE-SU-2025:0499-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0499-1.md) | Feb 13, 2025 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.170-1 | [DEBIAN-CVE-2024-49998](https://patchblox.com/security/data/fix/linux/debian-cve-2024-49998.md) | Oct 21, 2024 |
| Linux | linux Debian 13.5 (trixie) | 6.11.4-1 | [DEBIAN-CVE-2024-49998](https://patchblox.com/security/data/fix/linux/debian-cve-2024-49998.md) | Oct 21, 2024 |
| Linux | linux Debian 14 | 6.11.4-1 | [DEBIAN-CVE-2024-49998](https://patchblox.com/security/data/fix/linux/debian-cve-2024-49998.md) | Oct 21, 2024 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
