VDB

CVE-2026-68301

CVE-2026-68301 PUBLISHED

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

Reported by linux · Published August 10, 2026

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.

Affected products

VendorProductVersions
LinuxLinux1100242709d5644856131a9dd25d32672ebe7357, a2accc07bdcfb0c7ab2cacdca6a1fe8267816efa, 72dbae1f2f2159395089405c6c54632f2613f1be
LinuxLinux6.13, 0, 5.15.216
linuxlinux_kernel5.15.194, 6.1.153, 6.6.107
LinuxLinux1100242709d5644856131a9dd25d32672ebe7357, *, 72dbae1f2f2159395089405c6c54632f2613f1be

Timeline

  • Aug 10, 2026 CVE Published
  • Aug 11, 2026 Coalition ESS Score
  • Aug 16, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score (15 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-68301
vulnetix vdb fixes CVE-2026-68301

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-68301/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›