All vulnerabilities

Servers and applications

CVE-2026-68301

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

Severity
Unrated
Published
10 Aug 2026
Last changed
6 Nov 2026
Added to UpHeron
6 Nov 2026
Fixed in
5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6
Exploit chance
0.2% in the next 30 daysHigher than 6% of CVEs. EPSS by FIRST, 19 Nov 2026
Sources
CVE Program

Description

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

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.

From the CVE Program.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.1.6
  • From 6.13 before 5.15.216
  • From 6.12.48 before 6.12.101
  • From 6.7 before 6.12.101
All 10 release lines
  • From 5.15.194 before 5.15.216
  • From 5.16 before 6.1.183
  • From 6 before 6.18.42
  • From 6.1.153 before 6.1.183
  • From 6.2 before 6.6.148
  • From 6.6.107 before 6.6.148
  • From 6.7 before 6.12.101
  • From 6.12.48 before 6.12.101
  • From 6.13 before 5.15.216
  • From 6.19 before 7.1.6

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-68301