🇰🇷 한글 설명
Linux 커널의 fwnode_init() 함수에서 fwnode_handle 구조체의 잔여 필드를 초기화하지 않아 발생하는 취약점입니다. 스택이나 힙에 할당된 노드가 초기화될 때 secondary 포인터가 초기화되지 않은 메모리 값을 가질 수 있으며, 이로 인해 잘못된 메모리 참조가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 정보를 저장하는 공간을 깨끗이 비우지 않고 재사용할 때, 예전에 남아있던 엉뚱한 데이터가 새로운 정보인 것처럼 사용되어 시스템 오류를 일으킬 수 있는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
device property: initialize the remaining fields of fwnode_handle in fwnode_init()
If a firmware node is allocated on the stack (for instance: temporary
software node whose life-time we control) or on the heap - but using a
non-zeroing allocation function - and initialized using fwnode_init(),
its secondary pointer will contain uninitialized memory which likely
will be neither NULL nor IS_ERR() and so may end up being dereferenced
(for example: in dev_to_swnode()). Set fwnode->secondary to NULL on
initialization. While at it: initialize the remaining fields of struct
fwnode_handle too just to be sure.
[ Fix typo in commit message. - Danilo ]
📍 영향받는 시스템
fwnode_init() 함수를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
초기화되지 않은 메모리 영역을 조작하여 잘못된 포인터를 참조하게 만드는 방식
🛡️ 대응 방법
fwnode_init() 함수가 fwnode_handle의 모든 필드를 NULL로 초기화하도록 업데이트된 최신 Linux 커널로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인하십시오.