🇰🇷 한글 설명
Linux 커널의 net/mlx5:lag 구성 요소에서 LAG 장치 생성 실패 시에도 debugfs를 생성하는 취약점이 발견되었습니다. 이로 인해 유효하지 않은 LAG 컨텍스트 상태에서 debugfs 인터페이스에 접근할 경우 NULL 포인터 역참조가 발생할 수 있습니다.
💡 쉬운 설명
장치가 제대로 만들어지지 않았는데도 관리용 폴더가 미리 생성되는 문제입니다. 이 폴더에 잘못된 접근을 하면 시스템이 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: lag: Check for LAG device before creating debugfs
__mlx5_lag_dev_add_mdev() may return 0 (success) even when an error
occurs that is handled gracefully. Consequently, the initialization
flow proceeds to call mlx5_ldev_add_debugfs() even when there is no
valid LAG context.
mlx5_ldev_add_debugfs() blindly created the debugfs directory and
attributes. This exposed interfaces (like the members file) that rely on
a valid ldev pointer, leading to potential NULL pointer dereferences if
accessed when ldev is NULL.
Add a check to verify that mlx5_lag_dev(dev) returns a valid pointer
before attempting to create the debugfs entries.
📍 영향받는 시스템
Linux kernel (mlx5 driver module)
⚔️ 공격 벡터
로컬 사용자가 유효하지 않은 LAG 장치 상태에서 debugfs의 특정 인터페이스(members 파일 등)에 접근
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인