CVE-2025-38146

Description

A flaw was found in the Linux kernel's Open vSwitch (OVS) component. A remote attacker could send a specially crafted Multiprotocol Label Switching (MPLS) packet that does not properly terminate its label stack. This can cause an array-index-out-of-bounds error and an infinite loop during packet parsing, leading to a system soft lockup or CPU stuck, resulting in a Denial of Service (DoS).

Statement

A flaw was found in the Linux kernel's Open vSwitch (OVS) module, affecting the kernel and kernel-rt packages in Red Hat Enterprise Linux 8, 9, and 10, and Red Hat rates it as having Moderate security impact. The flaw is triggered when OVS parses a specially crafted Multiprotocol Label Switching (MPLS) packet whose label stack does not end with a bottom-of-stack label; with a sufficiently deep label stack the label count value wraps around, causing an array-index-out-of-bounds access and an infinite loop during flow key extraction in net/openvswitch/flow.c. The parsing loop never terminates, producing a CPU soft lockup on the affected host and a resulting denial of service. An attacker who can deliver such crafted MPLS packets to a system that performs OVS packet processing can stall that system's CPU. Red Hat Enterprise Linux 6 and 7 and Red Hat In-Vehicle OS are not affected because the vulnerable code is not present in those products. For the affected RHEL 8, 9, and 10 kernel and kernel-rt streams, Red Hat has deferred the fix: the flaw is rated Moderate with availability-only impact (no confidentiality or integrity impact), so it will be addressed in a future update rather than an immediate erratum, and the residual risk until then is that a crafted MPLS packet can soft-lock a CPU on OVS-enabled hosts. Red Hat's CVSS score of 6.1 (AV:L/AC:L/PR:L) is lower than the NIST score of 7.8 and the CVE.org score of 9.4 (AV:N/AC:L/PR:N); the difference reflects divergent assessments of the attack vector and the privileges required to send crafted MPLS packets to an OVS instance.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.17.89.4
Attack VectorLocalLocalNetwork
Attack ComplexityLowLowLow
Privileges RequiredLowLowNone
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityLowHighHigh
Integrity ImpactNoneHighLow
Availability ImpactHighHighHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H

NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H

Understanding the Weakness (CWE)

Availability

Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (Memory); DoS: Instability

This weakness can generally lead to undefined behavior and therefore crashes. When the calculated result is used for resource allocation, this weakness can cause too many (or too few) resources to be allocated, possibly enabling crashes if the product requests more resources than can be provided. If the calculated result involves time values, then the product might crash when it encounters a time that is less than the previously-calculated time.

Integrity

Technical Impact: Modify Memory

If the value in question is important to data (as opposed to flow), simple data corruption has occurred. Also, if the overflow/wraparound results in other conditions such as buffer overflows, further memory corruption may occur.

Confidentiality,Availability,Access Control

Technical Impact: Execute Unauthorized Code or Commands; Bypass Protection Mechanism

This weakness can sometimes trigger buffer overflows, which can be used to execute arbitrary code. This is usually outside the scope of the product's implicit security policy.

Availability,Other

Technical Impact: Alter Execution Logic; DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU)

If the overflow/wraparound occurs in a loop index variable, this could cause the loop to terminate at the wrong time - too early, too late, or not at all (i.e., infinite loops). With too many iterations, some loops could consume too many resources such as memory, file handles, etc., possibly leading to a crash or other DoS.

Access Control

Technical Impact: Bypass Protection Mechanism

If integer values are used in security-critical decisions, such as calculating quotas or allocation limits, integer overflows can be used to cause an incorrect security decision.

Access Control

Technical Impact: Bypass Protection Mechanism; DoS: Crash, Exit, or Restart

If integer values are used in time-based, security-critical decisions, such as calculating expiration times or determining whether an event occurs within a specific time or date range, to cause an incorrect security decision. The consequences could even include "self-DoS" if the overflow produces a time value that is not accounted for in protection mechanism logic [REF-1570].

Frequently Asked Questions

Want to get errata notifications? Sign up here.