🇰🇷 한글 설명
Linux 커널의 i40e 드라이버에서 발생하는 레이스 컨디션 취약점으로, 다중 스레드가 MAC/VLAN 필터를 동시에 수정할 때 필터 정보가 손상되거나 누수될 수 있습니다. 이로 인해 필터 메모리 참조 오류가 발생하여 시스템 안정성에 영향을 줄 수 있습니다.
💡 쉬운 설명
여러 작업이 동시에 네트워크 설정을 바꾸려고 할 때, 이미 삭제된 정보를 다시 사용하려다 발생하는 오류입니다. 이로 인해 네트워크 설정이 꼬이거나 시스템에 오류 메시지가 나타날 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
i40e: fix race condition by adding filter's intermediate sync state
Fix a race condition in the i40e driver that leads to MAC/VLAN filters
becoming corrupted and leaking. Address the issue that occurs under
heavy load when multiple threads are concurrently modifying MAC/VLAN
filters by setting mac and port VLAN.
1. Thread T0 allocates a filter in i40e_add_filter() within
i40e_ndo_set_vf_port_vlan().
2. Thread T1 concurrently frees the filter in __i40e_del_filter() within
i40e_ndo_set_vf_mac().
3. Subsequently, i40e_service_task() calls i40e_sync_vsi_filters(), which
refers to the already freed filter memory, causing corruption.
Reproduction steps:
1. Spawn multiple VFs.
2. Apply a concurrent heavy load by running parallel operations to change
MAC addresses on the VFs and change port VLANs on the host.
3. Observe errors in dmesg:
"Error I40E_AQ_RC_ENOSPC adding RX filters on VF XX,
please set promiscuous on manually for VF XX".
Exact code for stable reproduction Intel can't open-source now.
The fix involves implementing a new intermediate filter state,
I40E_FILTER_NEW_SYNC, for the time when a filter is on a tmp_add_list.
These filters cannot be deleted from the hash list directly but
must be removed using the full process.
📍 영향받는 시스템
i40e 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
다중 스레드를 이용한 동시 MAC/VLAN 필터 수정 작업 (로컬/관리자 권한 필요 가능성 높음)
🛡️ 대응 방법
i40e 드라이버의 레이스 컨디션 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인