kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-68301 net: hsr: fix memory leak on slave unregistration by removing synced VLANs

설명

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.

영향 받는 제품 제품 1개

  • Linux

    Linux

    해결 버전 있음

    영향 받는 버전

    • 5.15.194 이상 5.15.216 미만
    • 6.1.153 이상 6.1.183 미만
    • 6.6.107 이상 6.6.148 미만
    • 6.12.48 이상 6.12.101 미만
    • 6.13

    해결 버전

    • 5.15.216 이상
    • 6.1.183 이상
    • 6.6.148 이상
    • 6.12.101 이상
    • 6.13 미만
    • 6.18.42 이상
    • 7.1.6 이상

참고 자료 7건

‹ 목록

점검 지원 범위 문의

도입 문의