🇰🇷 한글 설명
Linux 커널의 mailbox: imx 드라이버에서 probe가 완료되기 전에 장치를 조기에 사용하는 문제가 확인되었습니다. pm_runtime_enable() 호출을 제거 경로로 옮기고 devm_pm_runtime_enable()을 사용하도록 수정되었으며, devm_mbox_controller_register()도 pm_runtime 처리 이후로 이동되었습니다. 이는 오류 발생 시 리소스 해제 순서를 올바르게 보장하기 위한 수정입니다.
💡 쉬운 설명
장치 초기화가 끝나기 전에 장치가 사용될 수 있는 순서 문제를 고친 패치입니다. 오류가 나도 장치가 올바른 순서로 정리되도록 바꾼 것입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mailbox: imx: Use devm_pm_runtime_enable()
sashiko complained about early usage of the device while probe isn't
completed. This can be mitigated by delaying the pm_runtime_enable()
into the removal path instead doing it early. This ensures that in an
error case the device is removed (and imx_mu_shutdown()) before
pm_runtime_disable() so we don't have to do this manually.
For the order to work, lets move devm_mbox_controller_register() until
after the pm-runtime part. So the reverse order will be mbox-controller
removal followed by disabling pm runtime.
Use devm_pm_runtime_enable(), remove manual pm_runtime_disable()
invocations and move the pm_runtime handling in probe before
devm_mbox_controller_register().
📍 영향받는 시스템
CVSS 점수 미정; i.MX 기반 Linux 커널 mailbox 드라이버를 사용하는 시스템 (수정 전 커널 버전)
⚔️ 공격 벡터
명시되지 않음 (주로 드라이버 초기화/해제 순서 결함으로, 직접적인 원격 공격 경로는 확인되지 않음)
🛡️ 대응 방법
패치가 포함된 최신 Linux 커널 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전을 배포판 보안 공지 및 해당 커널 패치 포함 여부와 비교하여 수정 버전인지 확인합니다.