🇰🇷 한글 설명
Linux 커널의 brcmfmac Wi-Fi 드라이버에서 DMA 버퍼를 해제할 때 포인터를 초기화하지 않아 발생하는 취약점입니다. 이로 인해 버퍼가 이미 해제된 상태에서 다시 해제되는 Double Free 문제가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 이미 사용을 마친 메모리 공간을 실수로 두 번 지우려고 시도할 때 발생하는 오류입니다. 이 과정에서 시스템이 충돌하거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
wifi: brcmfmac: make release_scratchbuffers idempotent
brcmf_pcie_release_scratchbuffers() frees the shared.scratch and
shared.ringupd DMA buffers with dma_free_coherent() but does not clear
the pointers afterwards, unlike the sibling release_ringbuffers() which
NULLs commonrings/flowrings/idxbuf on release.
Both the bus_reset .reset callback (brcmf_pcie_reset) and
brcmf_pcie_remove() call release_scratchbuffers. When reset teardown
has run before removal, remove's own teardown would call
dma_free_coherent() a second time on the already-freed DMA allocation.
NULL the pointers after free, matching release_ringbuffers(), so a later
release observes that the allocation has already been released. This
patch makes repeated sequential release safe; the reset-work lifetime is
handled separately by the following patch.
This issue was found by an in-house static analysis tool.
📍 영향받는 시스템
Linux kernel (brcmfmac Wi-Fi driver module)
⚔️ 공격 벡터
로컬 공격자가 특정 하드웨어 리셋 또는 드라이버 제거 시퀀스를 유도하여 메모리 오류 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
현재 커널 버전과 brcmfmac 모듈의 버전을 확인하여 패치 적용 여부를 검토하십시오.
uname -r && modinfo brcmfmac | grep version