🇰🇷 한글 설명
Linux 커널의 HSR(High-availability Seamless Redundancy) 모듈에서 네트워크 네임스페이스 간 알림 전송 오류가 발견되었습니다. HSR 장치가 특정 네임스페이스에 있더라도 이벤트가 기본 init_net 네임스페이스로만 전송되어, 해당 네임스페이스의 리스너는 이벤트를 받지 못하고 권한이 있는 init_net 리스너는 다른 네임스페이스의 정보를 수신하게 됩니다.
💡 쉬운 설명
네트워크 장치의 상태 변화 알림이 엉뚱한 곳으로 전달되는 문제입니다. 이로 인해 장치를 관리하는 프로그램이 상태 변화를 감지하지 못하거나, 보안상 격리되어야 할 정보가 다른 곳으로 노출될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
hsr: broadcast netlink notifications in the device's net namespace
The HSR generic netlink family sets .netnsok = true. HSR devices can
live in network namespaces other than init_net.
Two async notifiers broadcast events with genlmsg_multicast(). They
are hsr_nl_ringerror() and hsr_nl_nodedown(). That helper delivers
only on the default genl socket in init_net. So the events always land
in init_net. The network namespace of the device does not matter.
This has two effects. A listener in the device's own namespace never
sees its own ring error and node down events. A privileged listener in
init_net receives events from HSR devices in other namespaces. The
payload carries the peer node MAC (HSR_A_NODE_ADDR) and the slave port
ifindex (HSR_A_IFINDEX).
Switch both callers to genlmsg_multicast_netns(). Other families with
.netnsok = true already do this. Examples are gtp, ovpn, team,
batman-adv, netdev-genl, ethtool and handshake.
hsr_nl_ringerror() already has the slave port. It uses
dev_net(port->dev). hsr_nl_nodedown() takes the namespace from the
master port via hsr_port_get_hsr().
📍 영향받는 시스템
Linux kernel (HSR module enabled)
⚔️ 공격 벡터
네트워크 네임스페이스 격리를 우회하여 다른 네임스페이스의 HSR 장치 상태 정보(MAC 주소, 인터페이스 인덱스 등)를 획득
🛡️ 대응 방법
HSR 관련 알림 함수를 genlmsg_multicast_netns()를 사용하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 배포판 보안 공지를 통해 확인하십시오.