🇰🇷 한글 설명
Linux 커널의 mlx5 드라이버에서 리사이즈 대상 설정 실패 시 매처(matcher) 메모리가 해제되지 않고 누수되는 취약점이 발견되었습니다. hws_bwc_matcher_move 함수가 새로운 매처를 할당한 후 설정에 실패하면 해당 메모리가 연결되지 않은 채 남게 됩니다. 이를 해결하기 위해 실패 경로에서 할당된 매처를 명시적으로 파괴하도록 수정되었습니다.
💡 쉬운 설명
네트워크 장치를 조절하는 과정에서 오류가 발생하면 사용했던 메모리를 돌려주지 않고 계속 붙잡고 있는 버그입니다. 이 문제가 반복되면 시스템의 메모리가 조금씩 줄어들어 결국 성능 저하나 시스템 불안정을 초래할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: HWS, fix matcher leak on resize target setup failure
hws_bwc_matcher_move() allocates a replacement matcher before setting it
as the resize target. If mlx5hws_matcher_resize_set_target() fails, the
replacement matcher is not attached anywhere and is leaked.
Fix the leak by destroying the replacement matcher before returning from
the resize-target failure path.
The bug was first flagged by an experimental analysis tool we are
developing for kernel memory-management bugs while analyzing
v6.13-rc1. The tool is still under development and is not yet publicly
available. Manual inspection confirms that the bug is still
present in v7.1.1.
An x86_64 allyesconfig build showed no new warnings. As we do not have a
mlx5 HWS-capable device to test with, no runtime testing was able to be
performed.
📍 영향받는 시스템
Linux kernel v6.13-rc1 및 v7.1.1 포함 mlx5 HWS 지원 커널
⚔️ 공격 벡터
로컬 공격자가 특정 네트워크 설정 변경을 유도하여 메모리 누수를 발생시킬 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 취약점이 수정된 패치 버전 이후인지 확인하십시오.