CVE-2026-98031
Description
A flaw was found in the Linux kernel. When removing a nexthop routing group entry, an error path fails to properly initialize an error-reporting pointer, causing the kernel to dereference uninitialized stack memory. A local user with network administration privileges could exploit this flaw during memory allocation failures to cause a kernel crash, resulting in a Denial of Service (DoS).
Statement
A MODERATE severity flaw was found in the Linux kernel nexthop routing subsystem. When a nexthop group entry is removed, the error path in remove_nh_grp_entry() prints an extended acknowledgment (extack) message, but the extack structure is not initialized there, and nexthop listeners are not required to set an error message when they fail to replace a reduced nexthop group. Listeners such as netdevsim and mlxsw do not set a message when an allocation fails, so the kernel can dereference an uninitialized stack pointer and crash, resulting in a local denial of service. Exploitation requires local access with network administration privileges (CAP_NET_ADMIN) to manipulate nexthop objects, and triggering also depends on a listener failing an allocation or replacement, which limits practical exploitability. Red Hat Enterprise Linux 9 and 10, the Real Time kernel on affected Red Hat Enterprise Linux 9 streams, Red Hat In-Vehicle OS 2, and OpenShift Container Platform releases shipping RHEL CoreOS 9 kernels are affected. Red Hat Enterprise Linux 6, 7, and 8 (including kernel-rt), and OpenShift Container Platform releases shipping RHEL CoreOS 8 are not affected because the vulnerable code is not present in those kernels. Because this issue can only be triggered locally by a privileged user under unlikely error-path conditions and its impact is limited to denial of service, the fix is currently deferred for the affected releases; the residual risk is that a local attacker with network administration privileges could crash an affected system.
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 Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.5 | N/A | N/A |
| Attack Vector | Local | N/A | N/A |
| Attack Complexity | Low | N/A | N/A |
| Privileges Required | Low | N/A | N/A |
| User Interaction | None | N/A | N/A |
| Scope | Unchanged | N/A | N/A |
| Confidentiality | None | N/A | N/A |
| Integrity Impact | None | N/A | N/A |
| Availability Impact | High | N/A | N/A |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
If the uninitialized pointer is used in a read operation, it might not point to a valid memory location. An attacker might be able to read sensitive portions of memory.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
If the uninitialized pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.
Integrity,Confidentiality,Availability
Technical Impact: Execute Unauthorized Code or Commands
If the uninitialized pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible. If the uninitialized pointer is used as a function call, then arbitrary functions could be invoked.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.