CVE-2025-21681 json
openvswitch: fix lockup on tx to unregistering netdev with carrier
published 2025-01-31 21 mo ago modified 2026-11-05 3 d ago also EUVD-2025-2630
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 12%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
openvswitch: fix lockup on tx to unregistering netdev with carrier
Commit in a fixes tag attempted to fix the issue in the following sequence of calls:
do_output -> ovs_vport_send -> dev_queue_xmit -> __dev_queue_xmit -> netdev_core_pick_tx -> skb_tx_hash
When device is unregistering, the 'dev->real_num_tx_queues' goes to zero and the 'while (unlikely(hash >= qcount))' loop inside the 'skb_tx_hash' becomes infinite, locking up the core forever.
But unfortunately, checking just the carrier status is not enough to fix the issue, because some devices may still be in unregistering state while reporting carrier status OK.
One example of such device is a net/dummy. It sets carrier ON on start, but it doesn't implement .ndo_stop to set the carrier off. And it makes sense, because dummy doesn't really have a carrier. Therefore, while this device is unregistering, it's still easy to hit the infinite loop in the skb_tx_hash() from the OVS datapath. There might be other drivers that do the same, but dummy by itself is important for the OVS ecosystem, because it is frequently used as a packet sink for tcpdump while debugging OVS deployments. And when the issue is hit, the only way to recover is to reboot.
Fix that by also checking if the device is running. The running state is handled by the net core during unregistering, so it covers unregistering case better, and we don't really need to send packets to devices that are not running anyway.
While only checking the running state might be enough, the carrier check is preserved. The running and the carrier states seem disjoined throughout the code and different drivers. And other core functions like __dev_direct_xmit() check both before attempting to transmit a packet. So, it seems safer to check both flags in OVS as well.
Patch / fix
- Linux Linux 6.1.127, 6.3, 6.6.74, 6.12.11, 6.13
- linux Debian 12 6.1.128-1
- linux Debian 14, Debian 13 6.12.11-1
debian advisories DEBIAN-CVE-2025-21681
- linux Ubuntu 24.04 LTS 6.8.0-62.65
- linux-aws Ubuntu 24.04 LTS 6.8.0-1030.32
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1031.33
- linux-gke Ubuntu 24.04 LTS 6.8.0-1026.30
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1027.27
- linux-azure Ubuntu 24.04 LTS 6.8.0-1030.35
- linux-gkeop Ubuntu 24.04 LTS 6.8.0-1013.15
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1029.33
ubuntu advisories UBUNTU-CVE-2025-21681
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-28.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-28.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-28.1
- kernel-default-base Linux Micro 6.1, Linux Micro 6.0 6.4.0-28.1.21.6
- kernel-livepatch-MICRO-6-0_Update_6 Linux Micro 6.1, Linux Micro 6.0 1-3.1
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-28.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-28.1
- kernel-livepatch-MICRO-6-0-RT_Update_6 Linux Micro 6.1, Linux Micro 6.0 1-3.1
suse advisories SUSE-SU-2026:0473-1SUSE-SU-2025:20192-1SUSE-SU-2025:20270-1SUSE-SU-2025:20190-1SUSE-SU-2025:20260-1SUSE-SU-2025:0955-1
- git.kernel.org/stable/c/b5c73fc92f8d15c16e5dc87b5c17d2abf1e6d092 commit
- git.kernel.org/stable/c/87fcf0d137c770e6040ebfdb0abd8e7dd481b504 commit
- git.kernel.org/stable/c/930268823f6bccb697aa5d2047aeffd4a497308c commit
- git.kernel.org/stable/c/ea9e990356b7bee95440ba0e6e83cc4d701afaca commit
- git.kernel.org/stable/c/ea966b6698785fb9cd0fdb867acd91b222e4723f commit
- git.kernel.org/stable/c/82f433e8dd0629e16681edf6039d094b5518d8ed commit
- git.kernel.org/stable/c/47e55e4b410f7d552e43011baa5be1aab4093990 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-21681 updated cvss 4.4
kernel: openvswitch: fix lockup on tx to unregistering netdev with carrier
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 moreaffected: no fix available
-
Red Hat Enterprise Linux 10 kernelaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
- Technology feeds
References
- git.kernel.org /stable/c/b5c73fc92f8d15c16e5dc87b5c17d2abf1e6d092
- git.kernel.org /stable/c/87fcf0d137c770e6040ebfdb0abd8e7dd481b504
- git.kernel.org /stable/c/930268823f6bccb697aa5d2047aeffd4a497308c
-
git.kernel.org
/stable/c/ea9e990356b7bee95440ba0e6e83cc4d701afaca
patch
-
git.kernel.org
/stable/c/ea966b6698785fb9cd0fdb867acd91b222e4723f
patch
-
git.kernel.org
/stable/c/82f433e8dd0629e16681edf6039d094b5518d8ed
patch
-
git.kernel.org
/stable/c/47e55e4b410f7d552e43011baa5be1aab4093990
patch
- lists.debian.org /debian-lts-announce/2025/03/msg00001.html
Sources
- CVE List CVE-2025-21681
- NVD CVE-2025-21681
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.