Kernel Kit / Infix / v26.10.0latest
CVE-2026-46153
5.5mediumlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
8021q: delete cleared egress QoS mappings
vlan_dev_set_egress_priority() currently keeps cleared egress priority mappings in the hash as tombstones. Repeated set/clear cycles with distinct skb priorities therefore accumulate mapping nodes until device teardown and leak memory.
Delete mappings when vlan_prio is cleared instead of keeping tombstones. Now that the egress mapping lists are RCU protected, the node can be unlinked safely and freed after a grace period.
Published 2026-05-28NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Fable 5.1 · high confidence · 2026-11-05
The unfixed vlan_dev_set_egress_priority() is in this tree (output/build/linux-6.18.60/net/8021q/vlan_dev.c:176-216 keeps cleared mappings as tombstones with vlan_qos=0 instead of unlinking/kfree_rcu; no 8021q patch is applied) and CONFIG_VLAN_8021Q=y.
No VLAN interface exists in the factory default config, but an operator creates one via the YANG node ietf-interfaces /interfaces/interface[type=vlan]/vlan, and confd always emits ip link add ... type vlan ... egress-qos-map from /vlan/egress-qos/pcp (default 0), which calls the vulnerable function via IFLA_VLAN_EGRESS_QOS.
Through the management plane the leak is bounded (confd only uses skb priorities 0-7, max 8 nodes per VLAN device, freed on teardown); an unbounded leak needs arbitrary distinct 32-bit skb priorities, i.e. CAP_NET_ADMIN via rtnetlink/ioctl (root shell, or an unprivileged local user with CONFIG_USER_NS=y and a user+net namespace). Not reachable from the network.
Evidence 9
Vulnerable code: when vlan_qos becomes 0 the node is kept (nr_egress_mappings-- only), no unlink/kfree_rcu; egress_priority_map not RCU protected (smp_wmb at :211). Fix not backported.
output/build/linux-6.18.60/net/8021q/vlan_dev.c:186-196
139 Infix patches applied; none touch net/8021q (only mv88e6xxx/mt7530/sparx5 VLAN driver patches).
output/build/linux-6.18.60/.applied_patches_list
CONFIG_VLAN_8021Q=y - 8021q built in; net/8021q/vlan_dev.o and vlan_netlink.o produced.
output/build/linux-6.18.60/.config:1432
IFLA_VLAN_EGRESS_QOS nested attribute (rtnetlink newlink/changelink, CAP_NET_ADMIN) calls vlan_dev_set_egress_priority for each from:to pair.
output/build/linux-6.18.60/net/8021q/vlan_netlink.c:126-130
Legacy SIOCSIFVLAN SET_VLAN_EGRESS_PRIORITY_CMD ioctl also reaches the function.
output/build/linux-6.18.60/net/8021q/vlan.c:609-613
confd netdag_gen_vlan_egress_qos() appends ' egress-qos-map 0:x 1:x ... 7:x' to every `ip link add ... type vlan` it generates.
src/confd/src/if-vlan.c:119-134, 181
YANG node /interfaces/interface/vlan/egress-qos/pcp (uint8 0..7 or from-priority, default 0) - operator-settable via NETCONF/RESTCONF/CLI.
src/confd/yang/confd/infix-if-vlan.yang:78-96
No VLAN interfaces in the factory default configuration (no 'vlan' references).
src/confd/share/factory.d/ and src/confd/src/factory-default.c
CONFIG_USER_NS=y, CONFIG_NET_NS=y - an unprivileged local shell user could obtain CAP_NET_ADMIN in a child netns for unbounded distinct skb priorities (matches CVSS PR:L).
output/build/linux-6.18.60/.config:226,228
Version and patches
CVE fixed upstream by 7dddc74af369 (mainline) / a52e122c9e4d (stable); kernel 6.18.60 in this tree still has the pre-fix code in net/8021q/vlan_dev.c:176-216. CPE match linux_kernel 6.18.60 is correct. None of the 139 Buildroot/Infix patches address net/8021q.
Recommendation
Low priority backport of 7dddc74af369 / a52e122c9e4d (or pick up the next 6.18.y stable release containing it) in the normal kernel update cycle. Impact via the product's own management interface is a bounded (max 8 nodes per VLAN interface) leak freed on interface deletion, not a DoS; an unbounded leak requires local CAP_NET_ADMIN (root shell or user-namespace) rather than the YANG/CLI path. Not network-reachable.
Open questions
Whether Infix ships with unprivileged user namespaces usable by non-root shell accounts (kernel.unprivileged_userns_clone / sysctl defaults) was not verified; it only affects whether PR:L (unprivileged local) or root is needed for the unbounded variant.
Members of Kernel Kit decide. Sign in if you are one.