🇰🇷 한글 설명
Linux 커널의 mlxsw 스펙트럼 플로우 템플릿 생성 함수(mlxsw_sp_flower_tmplt_create)에서 포트 범위 레지스터가 해제되지 않아 리소스가 누수되는 문제입니다. 파싱 중 획득한 포트 범위 레지스터가 임시 규칙 구조체에 대해 정리되지 않아 템플릿 삭제 시에도 회수되지 않습니다.
💡 쉬운 설명
네트워크 장비 드라이버가 사용한 내부 자원을 반환하지 않고 놓쳐서, 시간이 지나면 자원이 고갈될 수 있는 결함입니다. 해당 커널 패치를 적용하면 자원이 올바르게 해제되도록 수정됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mlxsw: spectrum_flower: Fix port range register leak in tmplt_create()
mlxsw_sp_flower_tmplt_create() parses a flow_cls_offload template
into a stack-local struct mlxsw_sp_acl_rule_info purely to compute
rulei.values.elusage. Parsing can acquire port range registers via
mlxsw_sp_flower_parse_ports_range(), but since this rulei never goes
through mlxsw_sp_acl_rulei_destroy(), those registers were never
released, including through chain template deletion.
Factor out of mlxsw_sp_acl_rulei_destroy() the code to actually
release the necessary resources and call from
mlxsw_sp_flower_tmplt_create() to plug the leak.
The issue was found during a review of Wentao Liang's patch referenced
below.
📍 영향받는 시스템
Mellanox/NVIDIA Spectrum 스위치 ASIC을 사용하는 mlxsw 드라이버가 포함된 Linux 커널 (패치 적용 전 버전)
⚔️ 공격 벡터
CVSS 점수가 0.0으로 공식 공격 벡터 정보는 없으며, 주로 리소스 누수로 인한 서비스 안정성 저하 가능성이 있습니다.
🛡️ 대응 방법
배포판 제공 최신 커널로 업데이트하여 mlxsw_sp_flower_tmplt_create의 포트 범위 레지스터 해제 수정 패치를 적용하십시오.
🔧 검증 코드
커널 버전을 확인하고 mlxsw 모듈이 로드되어 있는지 확인합니다; mlxsw 모듈이 없으면 이 취약점의 영향을 받지 않으며, 있다면 커널 버전이 패치된 최신 릴리스인지 배포판 보안 공지와 대조하십시오.
uname -r && lsmod 2>/dev/null | grep -E 'mlxsw'