🇰🇷 한글 설명
Linux 커널의 ovpn 모듈에서 키 슬롯의 AEAD 변환 해제 과정이 RCU 콜백에서 수행되어 발생한 취약점입니다. 일부 암호화 구현체는 해제 시 수면(sleep)이 필요할 수 있는데, RCU 콜백 컨텍스트에서는 수면이 불가능하여 시스템 불안정이나 충돌을 유발할 수 있습니다. 이를 해결하기 위해 키 슬롯 해제 작업을 수면이 가능한 워크큐(workqueue) 컨텍스트로 이전하였습니다.
💡 쉬운 설명
암호화 키를 삭제하는 과정에서 컴퓨터가 잠시 쉬어야 하는 상황이 발생했는데, 시스템이 이를 허용하지 않는 방식으로 설계되어 오류가 발생할 수 있는 문제입니다. 이로 인해 시스템이 멈추거나 예기치 않게 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ovpn: defer key slot crypto freeing to workqueue
Key slots are released through a kref and the existing release path
frees the AEAD transforms from an RCU callback. That is not safe for all
crypto implementations: crypto_free_aead can sleep, for example when an
async or hardware implementation has teardown work to complete.
Use queue_rcu_work for key-slot release. This keeps the RCU grace period
needed by lockless key-slot readers, but runs the actual crypto teardown
from workqueue context where sleeping is allowed. Once the rcu_work
callback runs, pre-existing RCU readers are gone, and the final kref put
already proves that no transform user remains, so the worker can release
the AEAD transforms and free the slot directly.
The previous patch drains ovpn_wq during module exit, so queued key-slot
teardown work cannot outlive module text.
📍 영향받는 시스템
ovpn 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
직접적인 공격보다는 특정 암호화 작업 후 키가 해제되는 과정에서 시스템 충돌을 유발하는 방식
🛡️ 대응 방법
ovpn 키 슬롯 해제 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 보안 패치가 적용된 최신 버전인지 확인합니다.