Junglewise Threat Intelligence

CVE-2025-40251: Linux kernel dangling pointer in devlink devl_rate_nodes_destroy

CVE-2025-40251 · Severity: medium · CVSS 5.5 · Published 2025-12-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's networking subsystem (devlink) that could lead to system instability or crashes. The issue occurs when the system fails to properly clear internal references during the removal of network device rate objects, potentially leading to memory errors. This could be exploited by a local user to cause a denial-of-service (system crash).

Technical details

A NULL pointer dereference vulnerability exists in the Linux kernel's devlink subsystem within the devl_rate_nodes_destroy function. The root cause is that the function decrements a parent object's reference count but fails to set the devlink_rate->parent pointer to NULL, leaving a dangling pointer. This inconsistency leads to refcount errors and potential memory corruption or system crashes when drivers like netdevsim or mlx5 attempt to destroy rate objects. An attacker with local access could trigger this condition by manipulating devlink port function rates. The issue has been resolved by explicitly unsetting the parent pointer after notifying the driver.

Affected products

  • Linux Linux kernel 5.14 to 6.1.164, 6.2 to 6.6.118, 6.7 to 6.12.60, 6.13 to 6.17.10, 6.18-rc1 to 6.18-rc6

Timeline

  • 2025-11-17: other: Patch authored
  • 2025-12-04: advisory: CVE published

References

Related threats