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

net: hsr: fix memory leak on slave unregistration by removing synced VLANs

When an HSR master device is brought UP, it auto-adds VLAN 0 via
vlan_vid0_add(), which propagates VID 0 to its slave devices (slave A and B).

If a slave device is later unregistered while HSR is active (e.g., during
netns cleanup or interface destruction), hsr_del_port() is called to
detach the slave port from the HSR master. However, hsr_del_port() currently
does not delete the VLAN IDs that were synced to the slave device by HSR.

As a result, the slave device retains a refcount on VID 0 (and any other
synced VLANs). When the slave device is destroyed, its vlan_info /
vlan_vid_info structure remains allocated, leading to a memory leak.

Fix this by calling vlan_vids_del_by_dev(port->dev, master->dev) in
hsr_del_port() before unlinking slave A or slave B ports, matching the
propagation logic in hsr_ndo_vlan_rx_add_vid() / hsr_ndo_vlan_rx_kill_vid()
and the cleanup behavior in bonding and team drivers.
Published: 2026-08-10
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A memory leak occurs when an HSR master device propagates VLAN 0 to its slave ports and later a slave device is unregistered while the HSR link remains active. The hsr_del_port routine fails to delete the VLAN identifiers that were synced to the slave, leaving a lingering reference count on VID 0. When the slave device is destroyed, its vlan_info structure remains allocated, causing unbounded kernel memory consumption over time.

Affected Systems

Linux kernel implementations that include the HSR (High‑speed replication) feature, regardless of distribution, are susceptible. The issue exists in kernel versions prior to the commit that introduced vlan_vids_del_by_dev in hsr_del_port. Users with HSR configured on any kernel version before the patch are affected.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, with an EPSS of less than 1% suggesting a low likelihood of exploitation. However, the flaw can be triggered locally by repeatedly registering and unregistering HSR slave interfaces, such as during network namespace cleanup or interface destruction. Over time this can exhaust VM or host memory, leading to kernel instability or a denial‑of‑service condition. The attack vector is entirely local; an attacker would need access to configure or manage network interfaces on the target system.

Generated by OpenCVE AI on August 12, 2026 at 17:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the hsr_del_port fix (referencing the kernel commit history for the patch).
  • If a distribution update is unavailable, apply the upstream patch to the local kernel source tree and rebuild the kernel modules.
  • Reboot the system into the updated kernel and verify that HSR slave unregistration no longer retains VLAN references.

Generated by OpenCVE AI on August 12, 2026 at 17:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
History

Wed, 19 Aug 2026 16:45:00 +0000


Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Mon, 10 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: hsr: fix memory leak on slave unregistration by removing synced VLANs When an HSR master device is brought UP, it auto-adds VLAN 0 via vlan_vid0_add(), which propagates VID 0 to its slave devices (slave A and B). If a slave device is later unregistered while HSR is active (e.g., during netns cleanup or interface destruction), hsr_del_port() is called to detach the slave port from the HSR master. However, hsr_del_port() currently does not delete the VLAN IDs that were synced to the slave device by HSR. As a result, the slave device retains a refcount on VID 0 (and any other synced VLANs). When the slave device is destroyed, its vlan_info / vlan_vid_info structure remains allocated, leading to a memory leak. Fix this by calling vlan_vids_del_by_dev(port->dev, master->dev) in hsr_del_port() before unlinking slave A or slave B ports, matching the propagation logic in hsr_ndo_vlan_rx_add_vid() / hsr_ndo_vlan_rx_kill_vid() and the cleanup behavior in bonding and team drivers.
Title net: hsr: fix memory leak on slave unregistration by removing synced VLANs
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-08-19T16:32:53.463Z

Reserved: 2026-07-30T09:28:09.380Z

Link: CVE-2026-68301

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:19.680

Modified: 2026-08-19T17:20:41.343

Link: CVE-2026-68301

cve-icon Redhat

Severity : Low

Publid Date: 2026-08-10T00:00:00Z

Links: CVE-2026-68301 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T18:00:04Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime