net: shaper: reject duplicate leaves in GROUP request
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.347.0.117.1In the Linux kernel, the following vulnerability has been resolved:
net: shaper: reject duplicate leaves in GROUP request
net_shaper_nl_group_doit() does not deduplicate NET_SHAPER_A_LEAVES entries. When userspace supplies the same leaf handle twice, the same old-parent pointer lands twice in old_nodes[]. The cleanup loop double frees the parent. Of course the same parent may still be in old_nodes[] twice if we are moving multiple of its leaves.
Note that this patch also implicitly fixes the fact that the i >= leaves_count path forgets to set ret.
From the CVE record · Linux
The Linux kernel network shaper does not deduplicate leaf handles in a GROUP request. If userspace supplies the same leaf handle twice, cleanup can double-free a parent pointer; the input does not specify whether privileges are required.
Anyone running the Linux kernel should check whether their version includes the fix for CVE-2026-64054; affected versions are not specified.