🇰🇷 한글 설명
Linux 커널의 cpsw_new 드라이버에서, cpsw_probe() 중 포트 등록이 실패할 경우 이미 등록된 devlink 인스턴스와 파라미터가 정리되지 않고 남는 문제가 수정되었습니다. 오류 경로에 devlink 정리 레이블을 추가하여 해결했습니다.
💡 쉬운 설명
네트워크 장치 드라이버를 불러오는 과정이 중간에 실패했을 때, 이미 만들어 둔 관리용 항목이 제대로 지워지지 않는 결함입니다. 이번 수정으로 실패 시 해당 항목도 함께 정리되도록 바뀌었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: cpsw_new: unregister devlink on port registration failure
cpsw_probe() registers devlink before registering the CPSW ports.
If cpsw_register_ports() fails, the error path only unregisters the
notifiers and then releases the lower level resources. It does not undo
the successful cpsw_register_devlink() call, leaving the devlink instance
and its parameters registered after probe has failed.
Add a devlink cleanup label for the path where devlink registration has
already succeeded, and use it when port registration fails.
📍 영향받는 시스템
CPSW(TI Common Platform Ethernet Switch) 드라이버를 사용하는 수정 전 Linux 커널 (CVSS 미정, 영향 범위 불명확)
⚔️ 공격 벡터
공개된 정보상 원격 공격 경로는 확인되지 않으며, 드라이버 초기화 실패 시 리소스가 남는 신뢰성 결함에 해당합니다.
🛡️ 대응 방법
해당 커널 수정 패치가 포함된 최신 Linux 커널 버전 또는 배포판 보안 업데이트로 업그레이드하십시오.
🔧 검증 코드
출력된 커널 버전을 배포판 공지 또는 upstream 커밋과 대조하여, 해당 수정이 포함된 버전인지 확인합니다. 수정 커밋이 포함되어 있지 않다면 업데이트가 필요합니다.