CVE-2026-68301
net: hsr: fix memory leak on slave unregistration by removing synced VLANs
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.
INFO
Published Date :
Aug. 10, 2026, 1:20 p.m.
Last Modified :
Aug. 17, 2026, 5:18 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Apply the patch to the Linux kernel.
- Ensure slave ports are properly detached from HSR master.
- Verify VLAN IDs are removed during unregistration.
- Test for memory leaks after the fix.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-68301.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-68301 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-68301
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-68301 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-68301 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 17, 2026
Action Type Old Value New Value Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '72dbae1f2f2159395089405c6c54632f2613f1be', 'lessThan': 'f72c312af6c7897ab0f8a2b5a63f917a207a4143', 'versionType': 'git'}, {'status': 'affected', 'version': 'c707d2c5541d2bb94131968ad5dfeb06427a1dba', 'lessThan': '21d48408479a17eb65568a765930adea37e4d804', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'b5ded444621b6180df9f3d4e07045fc1fc1e8cd9', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'ae995b8002d3af134560a706c0e111a89e26317c', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'dcf15eaf5641812f1cfc5e96537380132a7da89d', 'versionType': 'git'}, {'status': 'affected', 'version': '1100242709d5644856131a9dd25d32672ebe7357', 'versionType': 'git'}, {'status': 'affected', 'version': 'a2accc07bdcfb0c7ab2cacdca6a1fe8267816efa', 'versionType': 'git'}, {'status': 'affected', 'version': '6.6.107', 'lessThan': '6.6.148', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.12.48', 'lessThan': '6.12.101', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.15.194', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.1.153', 'lessThan': '6.2', 'versionType': 'semver'}], 'programFiles': ['net/hsr/hsr_slave.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.13'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.13', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.148', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.101', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc5', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/hsr/hsr_slave.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '72dbae1f2f2159395089405c6c54632f2613f1be', 'lessThan': 'f72c312af6c7897ab0f8a2b5a63f917a207a4143', 'versionType': 'git'}, {'status': 'affected', 'version': 'c707d2c5541d2bb94131968ad5dfeb06427a1dba', 'lessThan': '21d48408479a17eb65568a765930adea37e4d804', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'b5ded444621b6180df9f3d4e07045fc1fc1e8cd9', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'ae995b8002d3af134560a706c0e111a89e26317c', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'dcf15eaf5641812f1cfc5e96537380132a7da89d', 'versionType': 'git'}, {'status': 'affected', 'version': '1100242709d5644856131a9dd25d32672ebe7357', 'versionType': 'git'}, {'status': 'affected', 'version': 'a2accc07bdcfb0c7ab2cacdca6a1fe8267816efa', 'versionType': 'git'}, {'status': 'affected', 'version': '6.6.107', 'lessThan': '6.6.148', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.12.48', 'lessThan': '6.12.101', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.15.194', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.1.153', 'lessThan': '6.2', 'versionType': 'semver'}], 'programFiles': ['net/hsr/hsr_slave.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.13'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.13', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.148', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.101', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/hsr/hsr_slave.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 10, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '72dbae1f2f2159395089405c6c54632f2613f1be', 'lessThan': 'f72c312af6c7897ab0f8a2b5a63f917a207a4143', 'versionType': 'git'}, {'status': 'affected', 'version': 'c707d2c5541d2bb94131968ad5dfeb06427a1dba', 'lessThan': '21d48408479a17eb65568a765930adea37e4d804', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'b5ded444621b6180df9f3d4e07045fc1fc1e8cd9', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'ae995b8002d3af134560a706c0e111a89e26317c', 'versionType': 'git'}, {'status': 'affected', 'version': '1a8a63a5305e95519de6f941922dfcd8179f82e5', 'lessThan': 'dcf15eaf5641812f1cfc5e96537380132a7da89d', 'versionType': 'git'}, {'status': 'affected', 'version': '1100242709d5644856131a9dd25d32672ebe7357', 'versionType': 'git'}, {'status': 'affected', 'version': 'a2accc07bdcfb0c7ab2cacdca6a1fe8267816efa', 'versionType': 'git'}, {'status': 'affected', 'version': '6.6.107', 'lessThan': '6.6.148', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.12.48', 'lessThan': '6.12.101', 'versionType': 'semver'}, {'status': 'affected', 'version': '5.15.194', 'lessThan': '5.16', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.1.153', 'lessThan': '6.2', 'versionType': 'semver'}], 'programFiles': ['net/hsr/hsr_slave.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.13'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.13', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.148', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.101', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.42', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.6', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc5', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/hsr/hsr_slave.c'], 'defaultStatus': 'affected'}] 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. Added Reference https://git.kernel.org/stable/c/21d48408479a17eb65568a765930adea37e4d804 Added Reference https://git.kernel.org/stable/c/ae995b8002d3af134560a706c0e111a89e26317c Added Reference https://git.kernel.org/stable/c/b5ded444621b6180df9f3d4e07045fc1fc1e8cd9 Added Reference https://git.kernel.org/stable/c/dcf15eaf5641812f1cfc5e96537380132a7da89d Added Reference https://git.kernel.org/stable/c/f72c312af6c7897ab0f8a2b5a63f917a207a4143