CVE-2026-99025: openvswitch: fix soft lockup in the netlink flow dump
In the Linux kernel, the following vulnerability has been resolved:
openvswitch: fix soft lockup in the netlink flow dump
A production compute node carrying a few thousand datapath flows hit a soft lockup inside a single netlink flow dump and panicked.
ovsflowcmddump() calls ovsflowstatsget() for every flow it emits, and that releases stats->lock with spinunlockbh() once per CPU that has touched the flow. Every release is a localbhenable(), and each one runs the pending softirq backlog in the dumping thread's own context.
The skb bounds the flows one callback emits, but not the softirq work it absorbs. On a CPU that carries the box's packet load the backlog refills as fast as it drains, so the dumping thread becomes that CPU's softirq engine. It never sleeps and it has no reschedule point, so under voluntary preemption nothing can take the CPU away from it: neither the ksoftirqd the kernel woke to take the work over, nor the stopper thread the softlockup detector dispatches to refresh its timestamp.
Hold BH off across the whole callback instead, the way ctnetlinkdumptable() does, so the nested spinunlockbh() stop draining softirqs. The loop already runs under rcureadlock() and cannot sleep. What it gives up is preemption under CONFIGPREEMPT, since a BH-off region is not preemptible outside PREEMPTRT. The region stays short: the skb caps the flows one callback emits, and empty buckets cost no skb space but are each visited once per dump, as the cursor only moves forward. The table grows on insert and shrinks only on flush, so the walk is bounded by the largest flow count the datapath has held. The softirq backlog the callback used to absorb has no bound at all.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Open vSwitch netlink flow dump callback, keep bottom halves disabled across the entire callback instead of calling local_bh_enable() after each flow; avoid nested spin_unlock_bh() operations that re-enable bottom halves while the dump is still running.