# CVE-2025-71152: net: dsa: properly keep track of conduit reference

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-01-23T14:25:52.022Z
- **Modified:** 2026-10-30T13:18:26.257Z

## Who should check

- Anyone running Linux \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< bc3305eeeee5d8e43005ad46e252991e46d10f33; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< ec2b34acb1894cfc10ed22d8277ca4f11e9f4b23; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< b358fc6ff3b35a29f7f677da1c67af67d0d560cb; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< 0e766b77ba5093583dfe609fae0aa1545c46dbbd; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< 06e219f6a706c367c93051f408ac61417643d2f9
- Anyone running Linux 4.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: dsa: properly keep track of conduit reference

Problem description
-------------------

DSA has a mumbo-jumbo of reference handling of the conduit net device
and its kobject which, sadly, is just wrong and doesn't make sense.

There are two distinct problems.

1. The OF path, which uses of\_find\_net\_device\_by\_node(), never releases
   the elevated refcount on the conduit's kobject. Nominally, the OF and
   non-OF paths should result in objects having identical reference
   counts taken, and it is already suspicious that
   dsa\_dev\_to\_net\_device() has a put\_device() call which is missing in
   dsa\_port\_parse\_of(), but we can actually even verify that an issue
   exists. With CONFIG\_DEBUG\_KOBJECT\_RELEASE=y, if we run this command
   "before" and "after" applying this patch:

(unbind the conduit driver for net device eno2)
echo 0000:00:00.2 \> /sys/bus/pci/drivers/fsl\_enetc/unbind

we see these lines in the output diff which appear only with the patch
applied:

kobject: 'eno2' (ffff002009a3a6b8): kobject\_release, parent 0000000000000000 (delayed 1000)
kobject: '109' (ffff0020099d59a0): kobject\_release, parent 0000000000000000 (delayed 1000)

2. After we find the conduit interface one way (OF) or another (non-OF),
   it can get unregistered at any time, and DSA remains with a long-lived,
   but in this case stale, cpu\_dp-\>conduit pointer. Holding the net
   device's underlying kobject isn't actually of much help, it just
   prevents it from being freed (but we never need that kobject
   directly). What helps us to prevent the net device from being
   unregistered is the parallel netdev reference mechanism (dev\_hold()
   and dev\_put()).

Actually we actually use that netdev tracker mechanism implicitly on
user ports since commit 2f1e8ea726e9 ("net: dsa: link interfaces with
the DSA master to get rid of lockdep warnings"), via netdev\_upper\_dev\_link().
But time still passes at DSA switch probe time between the initial
of\_find\_net\_device\_by\_node() code and the user port creation time, time
during which the conduit could unregister itself and DSA wouldn't know
about it.

So we have to run of\_find\_net\_device\_by\_node() under rtnl\_lock() to
prevent that from happening, and release the lock only with the netdev
tracker having acquired the reference.

Do we need to keep the reference until dsa\_unregister\_switch() /
dsa\_switch\_shutdown()?
1: Maybe yes. A switch device will still be registered even if all user
   ports failed to probe, see commit 86f8b1c01a0a ("net: dsa: Do not
   make user port errors fatal"), and the cpu\_dp-\>conduit pointers
   remain valid.  I haven't audited all call paths to see whether they
   will actually use the conduit in lack of any user port, but if they
   do, it seems safer to not rely on user ports for that reference.
2. Definitely yes. We support changing the conduit which a user port is
   associated to, and we can get into a situation where we've moved all
   user ports away from a conduit, thus no longer hold any reference to
   it via the net device tracker. But we shouldn't let it go nonetheless
   - see the next change in relation to dsa\_tree\_find\_first\_conduit()
   and LAG conduits which disappear.
   We have to be prepared to return to the physical conduit, so the CPU
   port must explicitly keep another reference to it. This is also to
   say: the user ports and their CPU ports may not always keep a
   reference to the same conduit net device, and both are needed.

As for the conduit's kobject for the /sys/class/net/ entry, we don't
care about it, we can release it as soon as we hold the net device
object itself.

History and blame attribution
-----------------------------

The code has been refactored so many times, it is very difficult to
follow and properly attribute a blame, but I'll try to make a short
history which I hope to be correct.

We have two distinct probing paths:
- one for OF, introduced in 2016 i
---truncated---

## Affected and fixed versions

- Linux: \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< bc3305eeeee5d8e43005ad46e252991e46d10f33; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< ec2b34acb1894cfc10ed22d8277ca4f11e9f4b23; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< b358fc6ff3b35a29f7f677da1c67af67d0d560cb; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< 0e766b77ba5093583dfe609fae0aa1545c46dbbd; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< 06e219f6a706c367c93051f408ac61417643d2f9 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 06e219f6a706c367c93051f408ac61417643d2f9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-71152. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71152.md
Affected: Linux >= 83c0afaec7b730b16c518aecc8e6246ec91b265e, < bc3305eeeee5d8e43005ad46e252991e46d10f33; >= 83c0afaec7b730b16c518aecc8e6246ec91b265e, < ec2b34acb1894cfc10ed22d8277ca4f11e9f4b23; >= 83c0afaec7b730b16c518aecc8e6246ec91b265e, < b358fc6ff3b35a29f7f677da1c67af67d0d560cb; >= 83c0afaec7b730b16c518ae…
Fixed in: Linux 0e766b77ba5093583dfe609fae0aa1545c46dbbd, Linux 06e219f6a706c367c93051f408ac61417643d2f9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-71152 being exploited?

There is no confirmed exploitation: CVE-2025-71152 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-71152?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-71152?

Linux \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< bc3305eeeee5d8e43005ad46e252991e46d10f33; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< ec2b34acb1894cfc10ed22d8277ca4f11e9f4b23; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< b358fc6ff3b35a29f7f677da1c67af67d0d560cb; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< 0e766b77ba5093583dfe609fae0aa1545c46dbbd; \>= 83c0afaec7b730b16c518aecc8e6246ec91b265e, \< 06e219f6a706c367c93051f408ac61417643d2f9; Linux 4.8.

### Is there a fix for CVE-2025-71152?

Yes. Fixed in Linux 0e766b77ba5093583dfe609fae0aa1545c46dbbd, Linux 06e219f6a706c367c93051f408ac61417643d2f9. Upgrade Linux to 06e219f6a706c367c93051f408ac61417643d2f9 or later.

### How do I check if I'm affected by CVE-2025-71152?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0e766b77ba5093583dfe609fae0aa1545c46dbbd>
- patch: <https://git.kernel.org/stable/c/06e219f6a706c367c93051f408ac61417643d2f9>
- other: <https://git.kernel.org/stable/c/bc3305eeeee5d8e43005ad46e252991e46d10f33>
- other: <https://git.kernel.org/stable/c/ec2b34acb1894cfc10ed22d8277ca4f11e9f4b23>
- other: <https://git.kernel.org/stable/c/b358fc6ff3b35a29f7f677da1c67af67d0d560cb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-71152>

HTML: <https://flawdb.com/CVE-2025-71152> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-71152>
