Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-40251

7.8 · HIGH
Published Dec 4, 2025 linux CWE-476 EPSS 0.15% (5th pctl)

Overview

CVE-2025-40251 is a high-severity vulnerability affecting linux linux_kernel. It was published on December 4, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

In the Linux kernel, the following vulnerability has been resolved:

devlink: rate: Unset parent pointer in devl_rate_nodes_destroy

The function devl_rate_nodes_destroy is documented to "Unset parent for

all rate objects". However, it was only calling the driver-specific

`rate_leaf_parent_set` or `rate_node_parent_set` ops and decrementing

the parent's refcount, without actually setting the

`devlink_rate->parent` pointer to NULL.

This leaves a dangling pointer in the `devlink_rate` struct, which cause

refcount error in netdevsim[1] and mlx5[2]. In addition, this is

inconsistent with the behavior of `devlink_nl_rate_parent_node_set`,

where the parent pointer is correctly cleared.

This patch fixes the issue by explicitly setting `devlink_rate->parent`

to NULL after notifying the driver, thus fulfilling the function's

documented behavior for all rate objects.

[1]

repro steps:

echo 1 > /sys/bus/netdevsim/new_device

devlink dev eswitch set netdevsim/netdevsim1 mode switchdev

echo 1 > /s

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.14, < 6.1.164 Affected

Frequently Asked Questions

What is CVE-2025-40251?

CVE-2025-40251 is a high-severity vulnerability affecting linux linux_kernel. It was published on December 4, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-40251?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-40251?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-40251?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-40251 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.