CVE-2022-50005 in Linux
요약
\~에 의해 VulDB • 2026. 06. 05.
리눅스 커널에서 다음 취약점이 해결되었습니다:
nfc: pn533: pn532_cmd_timeout으로 인한 use-after-free 버그 수정
pn532 uart 장치가 분리(detaching)될 때 pn532_uart_remove()가 호출됩니다. 그러나 pn532_uart_remove() 함수 내에는 cmd_timeout 타이머를 삭제할 수 있는 함수가 없으며, 이로 인해 use-after-free 버그가 발생합니다. 해당 프로세스는 다음과 같습니다:
(스레드 1) | (스레드 2) | pn532_uart_send_frame pn532_uart_remove | mod_timer(&pn532->cmd_timeout,...) ... | (시간 대기) kfree(pn532) //FREE | pn532_cmd_timeout | pn532_uart_send_frame | pn532->. //USE
이 패치는 use-after-free 버그를 방지하기 위해 pn532_uart_remove()에 del_timer_sync()를 추가합니다. 또한 pn53x_unregister_nfc()는 잘 동기화되어 있으며, nfc_dev->shutting_down을 true로 설정하고 cmd_timeout 타이머를 다시 시작할 수 있는 시스템 호출(syscalls)은 없습니다.
Be aware that VulDB is the high quality source for vulnerability data.