CVE-2022-49890
- 공개
- 2025년 5월 2일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
capabilities: fix potential memleak on error path from vfs_getxattr_alloc()
In cap_inode_getsecurity(), we will use vfs_getxattr_alloc() to complete the memory allocation of tmpbuf, if we have completed the memory allocation of tmpbuf, but failed to call handler->get(...), there will be a memleak in below logic:
|-- ret = (int)vfs_getxattr_alloc(mnt_userns, ...) | /* ^^^ alloc for tmpbuf */ |-- value = krealloc(*xattr_value, error + 1, flags) | /* ^^^ alloc memory */ |-- error = handler->get(handler, ...) | /* error! */ |-- *xattr_value = value | /* xattr_value is &tmpbuf (memory leak!) */
So we will try to free(tmpbuf) after vfs_getxattr_alloc() fails to fix it.
[PM: subject line and backtrace tweaks]
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 4.14 | ≤ | 취약 | < | 4.14.299 | 4.14.299이상 |
| 4.15 | ≤ | 취약 | < | 4.19.265 | 4.19.265이상 | |
| 4.20 | ≤ | 취약 | < | 5.4.224 | 5.4.224이상 | |
| 5.5 | ≤ | 취약 | < | 5.10.154 | 5.10.154이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.78 | 5.15.78이상 | |
| 5.16 | ≤ | 취약 | < | 6.0.8 | 6.0.8이상 | |
| 이 버전만 | 취약 | = | 6.1 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.1 rc2 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 6.1 rc3 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.14 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.14 | — | |
| 4.14.299 | ≤ | 영향 없음 | ≤ | 4.14.* | — | |
| 4.19.265 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.224 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.154 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.78 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.0.8 | ≤ | 영향 없음 | ≤ | 6.0.* | — | |
| 6.1 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치7
- git.kernel.org/stable/c/0c3e6288da650d1ec911a259c77bc2d88e498603
- git.kernel.org/stable/c/2de8eec8afb75792440b8900a01d52b8f6742fd1
- git.kernel.org/stable/c/6bb00eb21c0fbf18e5d3538c9ff0cf63fd0ace85
- git.kernel.org/stable/c/7480aeff0093d8c54377553ec6b31110bea37b4d
- git.kernel.org/stable/c/8cf0a1bc12870d148ae830a4ba88cfdf0e879cee