CVE-2025-38146: net: openvswitch: Fix the dead loop of MPLS parse
In the Linux kernel, the following vulnerability has been resolved:
net: openvswitch: Fix the dead loop of MPLS parse
The unexpected MPLS packet may not end with the bottom label stack.
When there are many stacks, The label count value has wrapped around.
A dead loop occurs, soft lockup/CPU stuck finally.
stack backtrace:
UBSAN: array-index-out-of-bounds in /build/linux-0Pa0xK/linux-5.15.0/net/openvswitch/flow.c:662:26
index -1 is out of range for type '__be32 [3]'
CPU: 34 PID: 0 Comm: swapper/34 Kdump: loaded Tainted: G OE 5.15.0-121-generic #131-Ubuntu
Hardware name: Dell Inc. PowerEdge C6420/0JP9TF, BIOS 2.12.2 07/14/2021
Call Trace:
<IRQ>
show_stack+0x52/0x5c
dump_stack_lvl+0x4a/0x63
dump_stack+0x10/0x16
ubsan_epilogue+0x9/0x36
__ubsan_handle_out_of_bounds.cold+0x44/0x49
key_extract_l3l4+0x82a/0x840 [openvswitch]
? kfree_skbmem+0x52/0xa0
key_extract+0x9c/0x2b0 [openvswitch]
ovs_flow_key_extract+0x124/0x350 [openvswitch]
ovs_vport_receive+0x61/0xd0 [openvswitch]
? kernel_init_free_pages.part.0+0x4a/0x70
? get_page_from_freelist+0x353/0x540
netdev_port_receive+0xc4/0x180 [openvswitch]
? netdev_port_receive+0x180/0x180 [openvswitch]
netdev_frame_hook+0x1f/0x40 [openvswitch]
__netif_receive_skb_core.constprop.0+0x23a/0xf00
__netif_receive_skb_list_core+0xfa/0x240
netif_receive_skb_list_internal+0x18e/0x2a0
napi_complete_done+0x7a/0x1c0
bnxt_poll+0x155/0x1c0 [bnxt_en]
__napi_poll+0x30/0x180
net_rx_action+0x126/0x280
? bnxt_msix+0x67/0x80 [bnxt_en]
handle_softirqs+0xda/0x2d0
irq_exit_rcu+0x96/0xc0
common_interrupt+0x8e/0xa0
</IRQ>
Security readout for executives and security teams
Plain-English summary
A malformed MPLS packet processed by Linux kernel Open vSwitch can make its parser loop indefinitely after a label counter wraps. The affected CPU may become stuck, potentially degrading virtual networking or host availability. The supplied rating is CVSS 9.4 critical, but the description primarily demonstrates denial of service; it does not substantiate data theft.
Executive priority
Prioritize affected network virtualization, cloud, and container hosts because one malformed packet could impair packet processing or host availability. Patch promptly after confirming vendor packages, especially where untrusted MPLS traffic can reach Open vSwitch. Emergency incident response is not supported solely by current evidence because active exploitation is unreported.
Technical view
Open vSwitch kernel flow-key extraction parses an MPLS label stack that may lack a bottom-of-stack marker. With enough labels, the count wraps, creating a non-terminating loop and eventually a soft-lockup or CPU-stuck condition. The trace also records an array index of -1 in net/openvswitch/flow.c. Referenced Linux stable commits resolve the issue across branches.
Likely exposure
Likely exposure is limited to Linux systems using the kernel Open vSwitch datapath where MPLS packets can reach affected ports. Internet exposure depends on network architecture, not merely whether the host is internet-connected. Systems not using this datapath or not processing MPLS are less likely to be affected. Confirm exact kernel and vendor backport status because the supplied version data is ambiguous.
Exploitation context
The supplied CVSS vector describes network-reachable, low-complexity, unauthenticated exploitation without user interaction. However, the bundle marks this CVE as absent from KEV and provides no evidence of active exploitation or a public exploit. The demonstrated outcome is CPU lockup and availability loss from unexpected MPLS input; confidentiality and integrity effects are not established by the description.
Researcher notes
The affected-version data is internally ambiguous: it mixes releases, “0,” duplicate commit identifiers, and an “unaffected” default. Validate branch-specific status through vendor backports. The description demonstrates a parser loop, soft lockup, and UBSAN out-of-bounds report. Although the supplied CVSS vector claims confidentiality and integrity impact, the narrative does not establish disclosure or modification. No CWE is supplied.
Mitigation direction
Update to a distribution kernel incorporating the applicable referenced Linux stable fix.
Verify the exact fixed package or backport through Linux distribution or vendor guidance.
Until patched, restrict untrusted MPLS traffic from affected Open vSwitch paths where operationally feasible.
Treat filtering as temporary; the source bundle identifies no vendor-endorsed workaround.
Validation and detection
Inventory kernel versions and distribution package revisions on systems using Open vSwitch.
Confirm whether the Open vSwitch kernel datapath is active and receives MPLS traffic.
Match installed packages to vendor backport status or the applicable referenced stable commit.
After remediation, verify updated kernels are running and review logs for soft-lockup or UBSAN events.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-38146 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
10Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.