# CVE-2025-21986: net: switchdev: Convert blocking notification chain to a raw one

> 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, NVD) `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 7, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-04-01T15:47:12.636Z
- **Modified:** 2026-11-05T21:17:47.293Z

## Who should check

- Anyone running Linux \>= 91ac2c79e896b28a4a3a262384689ee6dfeaf083, \< af757f5ee3f754c5dceefb05c12ff37cb46fc682; \>= a83856bd0c240267a86ce3388f3437d6ba5ac5ca, \< 1f7d051814e7a0cb1f0717ed5527c1059992129d; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< a597d4b75669ec82c72cbee9fe75a15d04b35b2b; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< f9ed3fb50b872bd78bcb01f25087f9e4e25085d8; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< 62531a1effa87bdab12d5104015af72e60d926ff; a7589eca09929c3cc2a62950ef7f40bcc58afe3a; \>= 6.1.80, \< 6.1.132; \>= 6.6.19, \< 6.6.84; \>= 6.7.7, \< 6.8
- Anyone running Linux 6.8

## Description

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

net: switchdev: Convert blocking notification chain to a raw one

A blocking notification chain uses a read-write semaphore to protect the
integrity of the chain. The semaphore is acquired for writing when
adding / removing notifiers to / from the chain and acquired for reading
when traversing the chain and informing notifiers about an event.

In case of the blocking switchdev notification chain, recursive
notifications are possible which leads to the semaphore being acquired
twice for reading and to lockdep warnings being generated \[1\].

Specifically, this can happen when the bridge driver processes a
SWITCHDEV\_BRPORT\_UNOFFLOADED event which causes it to emit notifications
about deferred events when calling switchdev\_deferred\_process().

Fix this by converting the notification chain to a raw notification
chain in a similar fashion to the netdev notification chain. Protect
the chain using the RTNL mutex by acquiring it when modifying the chain.
Events are always informed under the RTNL mutex, but add an assertion in
call\_switchdev\_blocking\_notifiers() to make sure this is not violated in
the future.

Maintain the "blocking" prefix as events are always emitted from process
context and listeners are allowed to block.

\[1\]:
WARNING: possible recursive locking detected
6.14.0-rc4-custom-g079270089484 \#1 Not tainted
--------------------------------------------
ip/52731 is trying to acquire lock:
ffffffff850918d8 ((switchdev\_blocking\_notif\_chain).rwsem){++++}-{4:4}, at: blocking\_notifier\_call\_chain+0x58/0xa0

but task is already holding lock:
ffffffff850918d8 ((switchdev\_blocking\_notif\_chain).rwsem){++++}-{4:4}, at: blocking\_notifier\_call\_chain+0x58/0xa0

other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock((switchdev\_blocking\_notif\_chain).rwsem);
lock((switchdev\_blocking\_notif\_chain).rwsem);

\*\*\* DEADLOCK \*\*\*
May be due to missing lock nesting notation
3 locks held by ip/52731:
 \#0: ffffffff84f795b0 (rtnl\_mutex){+.+.}-{4:4}, at: rtnl\_newlink+0x727/0x1dc0
 \#1: ffffffff8731f628 (&net-\>rtnl\_mutex){+.+.}-{4:4}, at: rtnl\_newlink+0x790/0x1dc0
 \#2: ffffffff850918d8 ((switchdev\_blocking\_notif\_chain).rwsem){++++}-{4:4}, at: blocking\_notifier\_call\_chain+0x58/0xa0

stack backtrace:
...
? \_\_pfx\_down\_read+0x10/0x10
? \_\_pfx\_mark\_lock+0x10/0x10
? \_\_pfx\_switchdev\_port\_attr\_set\_deferred+0x10/0x10
blocking\_notifier\_call\_chain+0x58/0xa0
switchdev\_port\_attr\_notify.constprop.0+0xb3/0x1b0
? \_\_pfx\_switchdev\_port\_attr\_notify.constprop.0+0x10/0x10
? mark\_held\_locks+0x94/0xe0
? switchdev\_deferred\_process+0x11a/0x340
switchdev\_port\_attr\_set\_deferred+0x27/0xd0
switchdev\_deferred\_process+0x164/0x340
br\_switchdev\_port\_unoffload+0xc8/0x100 \[bridge\]
br\_switchdev\_blocking\_event+0x29f/0x580 \[bridge\]
notifier\_call\_chain+0xa2/0x440
blocking\_notifier\_call\_chain+0x6e/0xa0
switchdev\_bridge\_port\_unoffload+0xde/0x1a0
...

## Affected and fixed versions

- Linux: \>= 91ac2c79e896b28a4a3a262384689ee6dfeaf083, \< af757f5ee3f754c5dceefb05c12ff37cb46fc682; \>= a83856bd0c240267a86ce3388f3437d6ba5ac5ca, \< 1f7d051814e7a0cb1f0717ed5527c1059992129d; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< a597d4b75669ec82c72cbee9fe75a15d04b35b2b; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< f9ed3fb50b872bd78bcb01f25087f9e4e25085d8; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< 62531a1effa87bdab12d5104015af72e60d926ff; a7589eca09929c3cc2a62950ef7f40bcc58afe3a; \>= 6.1.80, \< 6.1.132; \>= 6.6.19, \< 6.6.84; \>= 6.7.7, \< 6.8 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 6.8 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-21986. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21986.md
Affected: Linux >= 91ac2c79e896b28a4a3a262384689ee6dfeaf083, < af757f5ee3f754c5dceefb05c12ff37cb46fc682; >= a83856bd0c240267a86ce3388f3437d6ba5ac5ca, < 1f7d051814e7a0cb1f0717ed5527c1059992129d; >= f7a70d650b0b6b0134ccba763d672c8439d9f09b, < a597d4b75669ec82c72cbee9fe75a15d04b35b2b; >= f7a70d650b0b6b0134ccba7…
Fixed in: Linux 1f7d051814e7a0cb1f0717ed5527c1059992129d, Linux 62531a1effa87bdab12d5104015af72e60d926ff, Linux 6.1.132, Linux 6.6.84, Linux 6.8

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-21986 being exploited?

There is no confirmed exploitation: CVE-2025-21986 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-2025-21986?

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

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

Linux \>= 91ac2c79e896b28a4a3a262384689ee6dfeaf083, \< af757f5ee3f754c5dceefb05c12ff37cb46fc682; \>= a83856bd0c240267a86ce3388f3437d6ba5ac5ca, \< 1f7d051814e7a0cb1f0717ed5527c1059992129d; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< a597d4b75669ec82c72cbee9fe75a15d04b35b2b; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< f9ed3fb50b872bd78bcb01f25087f9e4e25085d8; \>= f7a70d650b0b6b0134ccba763d672c8439d9f09b, \< 62531a1effa87bdab12d5104015af72e60d926ff; a7589eca09929c3cc2a62950ef7f40bcc58afe3a; \>= 6.1.80, \< 6.1.132; \>= 6.6.19, \< 6.6.84; \>= 6.7.7, \< 6.8; Linux 6.8.

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

Yes. Fixed in Linux 1f7d051814e7a0cb1f0717ed5527c1059992129d, Linux 62531a1effa87bdab12d5104015af72e60d926ff, Linux 6.1.132, Linux 6.6.84, Linux 6.8. Upgrade Linux to 6.8 or later.

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

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/af757f5ee3f754c5dceefb05c12ff37cb46fc682>
- patch: <https://git.kernel.org/stable/c/1f7d051814e7a0cb1f0717ed5527c1059992129d>
- patch: <https://git.kernel.org/stable/c/a597d4b75669ec82c72cbee9fe75a15d04b35b2b>
- patch: <https://git.kernel.org/stable/c/f9ed3fb50b872bd78bcb01f25087f9e4e25085d8>
- patch: <https://git.kernel.org/stable/c/62531a1effa87bdab12d5104015af72e60d926ff>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.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-2025-21986>

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