CVE-2022-49290
- 공개
- 2025년 2월 26일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
mac80211: fix potential double free on mesh join
While commit 6a01afcf8468 ("mac80211: mesh: Free ie data when leaving mesh") fixed a memory leak on mesh leave / teardown it introduced a potential memory corruption caused by a double free when rejoining the mesh:
ieee80211_leave_mesh() -> kfree(sdata->u.mesh.ie); ... ieee80211_join_mesh() -> copy_mesh_setup() -> old_ie = ifmsh->ie; -> kfree(old_ie);
This double free / kernel panics can be reproduced by using wpa_supplicant with an encrypted mesh (if set up without encryption via "iw" then ifmsh->ie is always NULL, which avoids this issue). And then calling:
$ iw dev mesh0 mesh leave $ iw dev mesh0 mesh join my-mesh
Note that typically these commands are not used / working when using wpa_supplicant. And it seems that wpa_supplicant or wpa_cli are going through a NETDEV_DOWN/NETDEV_UP cycle between a mesh leave and mesh join where the NETDEV_UP resets the mesh.ie to NULL via a memcpy of default_mesh_setup in cfg80211_netdev_notifier_call, which then avoids the memory corruption, too.
The issue was first observed in an application which was not using wpa_supplicant but "Senf" instead, which implements its own calls to nl80211.
Fixing the issue by removing the kfree()'ing of the mesh IE in the mesh join function and leaving it solely up to the mesh leave to free the mesh IE.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.4.233 | ≤ | 취약 | < | 4.5 | 4.5이상 |
| 4.9.233 | ≤ | 취약 | < | 4.9.309 | 4.9.309이상 | |
| 4.14.192 | ≤ | 취약 | < | 4.14.274 | 4.14.274이상 | |
| 4.19.137 | ≤ | 취약 | < | 4.19.237 | 4.19.237이상 | |
| 5.4.56 | ≤ | 취약 | < | 5.4.188 | 5.4.188이상 | |
| 5.7.13 | ≤ | 취약 | < | 5.10.109 | 5.10.109이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.32 | 5.15.32이상 | |
| 5.16 | ≤ | 취약 | < | 5.16.18 | 5.16.18이상 | |
| 5.17 | ≤ | 취약 | < | 5.17.1 | 5.17.1이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 17줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 4.9.233 | ≤ | 취약 | < | 4.9.309 | 4.9.309이상 |
| 4.14.192 | ≤ | 취약 | < | 4.14.274 | 4.14.274이상 | |
| 4.19.137 | ≤ | 취약 | < | 4.19.237 | 4.19.237이상 | |
| 5.4.56 | ≤ | 취약 | < | 5.4.188 | 5.4.188이상 | |
| 4.4.233 | ≤ | 취약 | < | 4.5 | 4.5이상 | |
| 5.7.13 | ≤ | 취약 | < | 5.8 | 5.8이상 | |
| 이 버전만 | 취약 | = | 5.8 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 5.8 | — | |
| 4.9.309 | ≤ | 영향 없음 | ≤ | 4.9.* | — | |
| 4.14.274 | ≤ | 영향 없음 | ≤ | 4.14.* | — | |
| 4.19.237 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.188 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.109 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.32 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 5.16.18 | ≤ | 영향 없음 | ≤ | 5.16.* | — | |
| 5.17.1 | ≤ | 영향 없음 | ≤ | 5.17.* | — | |
| 5.18 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치9
- git.kernel.org/stable/c/12e407a8ef17623823fd0c066fbd7f103953d28d
- git.kernel.org/stable/c/273ebddc5fda2967492cb0b6cdd7d81cfb821b76
- git.kernel.org/stable/c/3bbd0000d012f92aec423b224784fbf0f7bf40f8
- git.kernel.org/stable/c/46bb87d40683337757a2f902fcd4244b32bb4e86
- git.kernel.org/stable/c/4a2d4496e15ea5bb5c8e83b94ca8ca7fb045e7d3