Infinite Loop Vulnerability in Open vSwitch due to Device Unregistration in Linux Kernel

linux Updated 02 Oct 2025

Summary

31/01/2025
N/A
Yes i
Medium
5.5

CVE-2025-21681: 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:... Affects linux versions < 6.1.128-1. Fixed in 6.1.128-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux kernel is a core component of the operating system that manages hardware and system resources. It provides essential services for all other parts of the operating system, including process management, memory management, and device control. Open vSwitch (OVS) is a multilayer virtual switch designed to enable network automation while supporting standard management interfaces and protocols. This vulnerability affects the OVS component when interacting with network devices that are in the process of unregistering, leading to potential system lockups.

Vulnerability Detail

The vulnerability arises from an infinite loop in the skb_tx_hash function when a network device is unregistering. During this process, the device's real_num_tx_queues is set to zero, causing the loop condition to always evaluate to true. This can lead to a system lockup, as the core becomes unresponsive. The issue is exacerbated by certain devices, like net/dummy, which may report an active carrier status even while unregistering, leading to further complications. The vulnerability can affect network performance and stability, necessitating immediate attention.

How To Fix

Minimum fixed version

6.1.128-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using network devices that are known to cause this issue while they are in the process of unregistering. Additionally, monitoring the device states and ensuring they are not in the unregistering phase before attempting to transmit packets can help mitigate the risk of encountering the infinite loop.

Conclusion

The CVE-2025-21681 vulnerability poses a significant risk to systems using the Linux kernel and Open vSwitch, particularly during the unregistering of network devices. Immediate action is recommended to update the kernel to the patched version to prevent potential system lockups. Users should also consider temporary workarounds until they can apply the necessary updates.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-21681 is a vulnerability in the Linux kernel that causes an infinite loop in the Open vSwitch when a network device is unregistering.

This vulnerability can lead to system lockups, making the kernel unresponsive and potentially requiring a reboot to recover.

Yes, users are advised to update their Linux kernel to the latest version that includes the fix for CVE-2025-21681.

As a temporary measure, avoid using network devices that may cause this issue during their unregistering phase.

You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

6.1.128-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback