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

devlink: Release nested relation on devlink free

devlink relation state is normally released from devl_unregister(), which
calls devlink_rel_put(). This misses devlink instances that get a nested
relation before registration and then fail probe before devl_register() is
reached.

That flow can happen for SFs. The child devlink gets linked to its
parent before registration, then a later probe error calls devlink_free()
directly. Since the instance was never registered, devl_unregister() is not
called and devlink->rel is leaked.

Release any pending relation from devlink_free() as well. The registered
path is unchanged because devl_unregister() already clears devlink->rel
before devlink_free() runs.
Published: 2026-06-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel devlink subsystem a memory leak occurs when a child devlink is linked to its parent before registration and the probe subsequently fails. Because the parent devlink is never registered, the nested relation is never released during devl_unregister(), and devlink->rel remains allocated until the kernel deallocates the child. The leaked resource is not released by devlink_free() unless the instance was registered, so the leak persists. This flaw does not permit direct code execution but can exhaust kernel heap space if abused repeatedly, leading to degraded performance or denial of service.

Affected Systems

The flaw resides in the generic Linux kernel, affecting any distribution that incorporates the unpatched kernel code. The issue was identified in the devlink module, and no specific kernel version range is listed, meaning all kernels prior to the fix are potentially vulnerable. The affected entities are Linux kernel builds for all supported architectures.

Risk and Exploitability

No CVSS score is published and EPSS is unavailable, but the vulnerability is not flagged in the CISA KEV catalog. Attacks would require local access or an ability to influence device probe events, so it is a local, low‑to‑medium risk. The risk level is primarily determined by the potential for gradual memory exhaustion. No public exploits are reported, and the fix is available in the kernel code repository.

Generated by OpenCVE AI on June 25, 2026 at 11:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the latest Linux kernel version that contains the devlink release update.
  • Verify that the devlink subsystem now releases nested relations upon probe failures.
  • If a kernel upgrade is not immediately possible, disable or remove drivers that create nested devlink relations or prevent probe failures, and monitor kernel memory usage for abnormal increases.

Generated by OpenCVE AI on June 25, 2026 at 11:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 25 Jun 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Thu, 25 Jun 2026 09:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: devlink: Release nested relation on devlink free devlink relation state is normally released from devl_unregister(), which calls devlink_rel_put(). This misses devlink instances that get a nested relation before registration and then fail probe before devl_register() is reached. That flow can happen for SFs. The child devlink gets linked to its parent before registration, then a later probe error calls devlink_free() directly. Since the instance was never registered, devl_unregister() is not called and devlink->rel is leaked. Release any pending relation from devlink_free() as well. The registered path is unchanged because devl_unregister() already clears devlink->rel before devlink_free() runs.
Title devlink: Release nested relation on devlink free
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-25T08:39:49.891Z

Reserved: 2026-06-09T07:44:35.394Z

Link: CVE-2026-53261

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T12:00:13Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime