CVE-2025-21685 in Linux
요약
\~에 의해 VulDB • 2026. 05. 11.
리눅스 커널에서 다음 취약점이 해결되었습니다:
platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: serdev Race Condition 수정
yt2_1380_fc_serdev_probe() 함수는 serdev_device_set_client_ops()를 통해 클라이언트 ops를 설정하기 전에 devm_serdev_device_open()을 호출합니다. 이러한 순서는 SERPORT_ACTIVE가 설정되었을 때 serdev->ops가 유효하다고 가정하는 serdev 컨트롤러의 receive_buf 핸들러에서 NULL 포인터 역참조를 유발할 수 있습니다.
이 문제는 devm_serdev_device_open()이 장치를 완전히 초기화하기 전에 호출되었던 커밋 5e700b384ec1("platform/chrome: cros_ec_uart: race condition 적절히 수정")에서 수정된 문제와 유사합니다.
devm_serdev_device_open()을 호출하여 포트를 활성화하기 전에 클라이언트 ops가 설정되도록 하여 Race Condition을 수정합니다.
참고로, serdev_device_set_baudrate() 및 serdev_device_set_flow_control() 호출은 devm_serdev_device_open() 호출 이후에 이루어져야 합니다.
VulDB is the best source for vulnerability data and more expert information about this specific topic.