Skip to content
Noroxi
CVE-2024-49998· NVD / CVE Program· CNA Linux

net: dsa: improve shutdown sequence

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

MediumCVSS 4.7 · v3.1—No exploit Fix available
Published
Oct 21, 2024
Updated
Sep 8, 2026
EPSS
0.2% · 6th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

18

Monitor

Low priority for now.

CVSS
18 / 40 · 4.7 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.2%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
linuxlinux kernel

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • linux linux kernel5.15.155 and later · before 5.16
  • linux linux kernel5.16.10 and later · before 5.17
  • linux linux kernel5.17 and later · before 6.10.14
  • linux linux kernel6.11 and later · before 6.11.3
  • linux linux kernel6.12

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 89b60402d43cdab4387dbbf24afebda5cf092ae7, 5.17affected
    • ff45899e732e57088985e3a497b1d9100571c0f5 and later · before 87bd909a7014e32790e8c759d5b7694a95778ca5affected · git
    • ee534378f00561207656663d93907583958339ae and later · before ab9e90619b6339becc5415647ae154a9a46a044daffected · git
    • ee534378f00561207656663d93907583958339ae and later · before 2e93bf719462ac6d23c881c8b93e5dc9bf5ab7f5affected · git
    • ee534378f00561207656663d93907583958339ae and later · before ab5d3420a1120950703dbdc33698b28a6ebc3d23affected · git
    • ee534378f00561207656663d93907583958339ae and later · before b4a65d479213fe84ecb14e328271251eebe69492affected · git
    • ee534378f00561207656663d93907583958339ae and later · before 6c24a03a61a245fe34d47582898331fa034b6ccdaffected · git
    • 5.15.155 and later · before 5.15.176affected · semver
    • 5.16.10 and later · before 5.17affected · semver
    • before 5.17not affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 6.1.170-16.1.170-1
Debian:13linuxbefore 6.11.4-16.11.4-1
openSUSE:Leap 15.6dtb-aarch64before 6.4.0-150600.23.38.16.4.0-150600.23.38.1
openSUSE:Leap 15.6kernel-debugbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
openSUSE:Leap 15.6kernel-kvmsmallbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
openSUSE:Leap 15.6kernel-obs-qabefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_8before 1-150600.13.3.21-150600.13.3.2
SUSE:Linux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_8before 1-150600.13.3.21-150600.13.3.2
SUSE:Linux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_8before 1-150600.1.3.11-150600.1.3.1
SUSE:Linux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_8before 1-150600.1.3.11-150600.1.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-64kbbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-64kbbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-defaultbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-defaultbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-default-basebefore 6.4.0-150600.23.38.1.150600.12.16.26.4.0-150600.23.38.1.150600.12.16.2
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-default-basebefore 6.4.0-150600.23.38.1.150600.12.16.26.4.0-150600.23.38.1.150600.12.16.2
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-sourcebefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-sourcebefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-zfcpdumpbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6kernel-zfcpdumpbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6kernel-docsbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6kernel-docsbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6kernel-obs-buildbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6kernel-obs-buildbefore 6.4.0-150600.23.38.16.4.0-150600.23.38.1

+16

Other highest-scoring records for the same primary product.

  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now
  • CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV
    83Now
  • CVE-2019-13272In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to creKEV
    77This week
  • CVE-2013-6282The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the v6k and v7 ARM platforms do not validate certain addKEV
    77This week
  • CVE-2013-2094The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows loKEV
    77This week

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux2e93bf719462ac6d23c881c8b93e5dc9bf5ab7f5Vendor (CNA)
Linux Linux5.15.176Vendor (CNA)
Linux Linux5.17Vendor (CNA)
Linux Linux6c24a03a61a245fe34d47582898331fa034b6ccdVendor (CNA)
Linux Linux87bd909a7014e32790e8c759d5b7694a95778ca5Vendor (CNA)
Linux Linuxab5d3420a1120950703dbdc33698b28a6ebc3d23Vendor (CNA)
Linux Linuxab9e90619b6339becc5415647ae154a9a46a044dVendor (CNA)
Linux Linuxb4a65d479213fe84ecb14e328271251eebe69492Vendor (CNA)
debian:linux6.1.170-1 · Debian:12Package registry (OSV)
opensuse:kernel-azure6.4.0-150600.8.26.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-source-azure6.4.0-150600.8.26.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-syms-azure6.4.0-150600.8.26.1 · openSUSE:Leap 15.6Package registry (OSV)
suse:kernel-64kb6.4.0-150600.23.38.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:kernel-azure6.4.0-150600.8.26.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Package registry (OSV)
suse:kernel-default6.4.0-150600.23.38.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:kernel-default-base6.4.0-150600.23.38.1.150600.12.16.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:kernel-docs6.4.0-150600.23.38.1 · SUSE:Linux Enterprise Module for Development Tools 15 SP6Package registry (OSV)
suse:kernel-source6.4.0-150600.23.38.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:kernel-source-azure6.4.0-150600.8.26.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Package registry (OSV)
suse:kernel-syms-azure6.4.0-150600.8.26.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Package registry (OSV)
suse:kernel-zfcpdump6.4.0-150600.23.38.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2025-38352274 days apartposix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del()KEV
    61This week
  • CVE-2024-5023419 days apartwifi: iwlegacy: Clear stale interrupts before resuming device
    28Monitor
  • CVE-2024-4388262 days apartexec: Fix ToCToU between perm check and set-uid/gid usage
    28Monitor
  • CVE-2021-47280153 days apartdrm: Fix use-after-free read in drm_getunique()
    28Monitor
  • CVE-2024-26974173 days apartcrypto: qat - resolve race condition during AER recovery
    28Monitor
  • CVE-2023-1295481 days apartPrivilege escalation with IO_RING_OP_CLOSE in the Linux Kernel
    28Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records