# CVE-2024-58071: team: prevent adding a device which is already a team device lower

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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 8, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-03-06T15:54:10.950Z
- **Modified:** 2026-10-15T02:17:20.293Z

## Who should check

- Anyone running Linux \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 0a7794b9ca78c8e7d001c583bf05736169de3f20; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 62ff1615815d565448c37cb8a7a2a076492ec471; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< bd099a2fa9be983ba0e90a57a59484fe9d520ba8; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< adff6ac889e16d97abd1e4543f533221127e978a; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 184a564e6000b41582f160a5be9a9b5aabe22ac1; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 1bb06f919fa5bec77ad9b6002525c3dcc5c1fd6c; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< d9bce1310c0e2a55888e3e08c9f69d8377b3a377; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50
- Anyone running Linux 3.3

## Description

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

team: prevent adding a device which is already a team device lower

Prevent adding a device which is already a team device lower,
e.g. adding veth0 if vlan1 was already added and veth0 is a lower of
vlan1.

This is not useful in practice and can lead to recursive locking:

$ ip link add veth0 type veth peer name veth1
$ ip link set veth0 up
$ ip link set veth1 up
$ ip link add link veth0 name veth0.1 type vlan protocol 802.1Q id 1
$ ip link add team0 type team
$ ip link set veth0.1 down
$ ip link set veth0.1 master team0
team0: Port device veth0.1 added
$ ip link set veth0 down
$ ip link set veth0 master team0

============================================
WARNING: possible recursive locking detected
6.13.0-rc2-virtme-00441-ga14a429069bb \#46 Not tainted
--------------------------------------------
ip/7684 is trying to acquire lock:
ffff888016848e00 (team-\>team\_lock\_key){+.+.}-{4:4}, at: team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)

but task is already holding lock:
ffff888016848e00 (team-\>team\_lock\_key){+.+.}-{4:4}, at: team\_add\_slave (drivers/net/team/team\_core.c:1147 drivers/net/team/team\_core.c:1977)

other info that might help us debug this:
Possible unsafe locking scenario:

CPU0
----
lock(team-\>team\_lock\_key);
lock(team-\>team\_lock\_key);

\*\*\* DEADLOCK \*\*\*

May be due to missing lock nesting notation

2 locks held by ip/7684:

stack backtrace:
CPU: 3 UID: 0 PID: 7684 Comm: ip Not tainted 6.13.0-rc2-virtme-00441-ga14a429069bb \#46
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
\<TASK\>
dump\_stack\_lvl (lib/dump\_stack.c:122)
print\_deadlock\_bug.cold (kernel/locking/lockdep.c:3040)
\_\_lock\_acquire (kernel/locking/lockdep.c:3893 kernel/locking/lockdep.c:5226)
? netlink\_broadcast\_filtered (net/netlink/af\_netlink.c:1548)
lock\_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5851)
? team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)
? trace\_lock\_acquire (./include/trace/events/lock.h:24 (discriminator 2))
? team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)
? lock\_acquire (kernel/locking/lockdep.c:5822)
? team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)
\_\_mutex\_lock (kernel/locking/mutex.c:587 kernel/locking/mutex.c:735)
? team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)
? team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)
? fib\_sync\_up (net/ipv4/fib\_semantics.c:2167)
? team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)
team\_device\_event (drivers/net/team/team\_core.c:2928 drivers/net/team/team\_core.c:2951 drivers/net/team/team\_core.c:2973)
notifier\_call\_chain (kernel/notifier.c:85)
call\_netdevice\_notifiers\_info (net/core/dev.c:1996)
\_\_dev\_notify\_flags (net/core/dev.c:8993)
? \_\_dev\_change\_flags (net/core/dev.c:8975)
dev\_change\_flags (net/core/dev.c:9027)
vlan\_device\_event (net/8021q/vlan.c:85 net/8021q/vlan.c:470)
? br\_device\_event (net/bridge/br.c:143)
notifier\_call\_chain (kernel/notifier.c:85)
call\_netdevice\_notifiers\_info (net/core/dev.c:1996)
dev\_open (net/core/dev.c:1519 net/core/dev.c:1505)
team\_add\_slave (drivers/net/team/team\_core.c:1219 drivers/net/team/team\_core.c:1977)
? \_\_pfx\_team\_add\_slave (drivers/net/team/team\_core.c:1972)
do\_set\_master (net/core/rtnetlink.c:2917)
do\_setlink.isra.0 (net/core/rtnetlink.c:3117)

## Affected and fixed versions

- Linux: \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 0a7794b9ca78c8e7d001c583bf05736169de3f20; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 62ff1615815d565448c37cb8a7a2a076492ec471; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< bd099a2fa9be983ba0e90a57a59484fe9d520ba8; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< adff6ac889e16d97abd1e4543f533221127e978a; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 184a564e6000b41582f160a5be9a9b5aabe22ac1; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 1bb06f919fa5bec77ad9b6002525c3dcc5c1fd6c; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< d9bce1310c0e2a55888e3e08c9f69d8377b3a377; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50 (cvelist)
- Linux: 3.3 (cvelist)

## Mitigation

- Upgrade Linux to 3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-58071.md
Affected: Linux >= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, < 0a7794b9ca78c8e7d001c583bf05736169de3f20; >= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, < 62ff1615815d565448c37cb8a7a2a076492ec471; >= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, < bd099a2fa9be983ba0e90a57a59484fe9d520ba8; >= 3d249d4ca7d0ed6629a135e…
Fixed in: Linux 0a7794b9ca78c8e7d001c583bf05736169de3f20, Linux 62ff1615815d565448c37cb8a7a2a076492ec471, Linux 184a564e6000b41582f160a5be9a9b5aabe22ac1, Linux 1bb06f919fa5bec77ad9b6002525c3dcc5c1fd6c, Linux 3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50

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-2024-58071 being exploited?

There is no confirmed exploitation: CVE-2024-58071 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-26).

### How serious is CVE-2024-58071?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-58071?

Linux \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 0a7794b9ca78c8e7d001c583bf05736169de3f20; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 62ff1615815d565448c37cb8a7a2a076492ec471; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< bd099a2fa9be983ba0e90a57a59484fe9d520ba8; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< adff6ac889e16d97abd1e4543f533221127e978a; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 184a564e6000b41582f160a5be9a9b5aabe22ac1; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 1bb06f919fa5bec77ad9b6002525c3dcc5c1fd6c; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< d9bce1310c0e2a55888e3e08c9f69d8377b3a377; \>= 3d249d4ca7d0ed6629a135ea1ea21c72286c0d80, \< 3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50; Linux 3.3.

### Is there a fix for CVE-2024-58071?

Yes. Fixed in Linux 0a7794b9ca78c8e7d001c583bf05736169de3f20, Linux 62ff1615815d565448c37cb8a7a2a076492ec471, Linux 184a564e6000b41582f160a5be9a9b5aabe22ac1, Linux 1bb06f919fa5bec77ad9b6002525c3dcc5c1fd6c, Linux 3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50. Upgrade Linux to 3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50 or later.

### How do I check if I'm affected by CVE-2024-58071?

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/0a7794b9ca78c8e7d001c583bf05736169de3f20>
- patch: <https://git.kernel.org/stable/c/62ff1615815d565448c37cb8a7a2a076492ec471>
- patch: <https://git.kernel.org/stable/c/bd099a2fa9be983ba0e90a57a59484fe9d520ba8>
- patch: <https://git.kernel.org/stable/c/adff6ac889e16d97abd1e4543f533221127e978a>
- patch: <https://git.kernel.org/stable/c/184a564e6000b41582f160a5be9a9b5aabe22ac1>
- patch: <https://git.kernel.org/stable/c/1bb06f919fa5bec77ad9b6002525c3dcc5c1fd6c>
- patch: <https://git.kernel.org/stable/c/d9bce1310c0e2a55888e3e08c9f69d8377b3a377>
- patch: <https://git.kernel.org/stable/c/3fff5da4ca2164bb4d0f1e6cd33f6eb8a0e73e50>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## 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-2024-58071>

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