CVE-2022-49708
- 공개
- 2025년 2월 26일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Analyzed
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix bug_on ext4_mb_use_inode_pa
Hulk Robot reported a BUG_ON: ================================================================== kernel BUG at fs/ext4/mballoc.c:3211! [...] RIP: 0010:ext4_mb_mark_diskspace_used.cold+0x85/0x136f [...] Call Trace: ext4_mb_new_blocks+0x9df/0x5d30 ext4_ext_map_blocks+0x1803/0x4d80 ext4_map_blocks+0x3a4/0x1a10 ext4_writepages+0x126d/0x2c30 do_writepages+0x7f/0x1b0 __filemap_fdatawrite_range+0x285/0x3b0 file_write_and_wait_range+0xb1/0x140 ext4_sync_file+0x1aa/0xca0 vfs_fsync_range+0xfb/0x260 do_fsync+0x48/0xa0 [...] ==================================================================
Above issue may happen as follows: ------------------------------------- do_fsync vfs_fsync_range ext4_sync_file file_write_and_wait_range __filemap_fdatawrite_range do_writepages ext4_writepages mpage_map_and_submit_extent mpage_map_one_extent ext4_map_blocks ext4_mb_new_blocks ext4_mb_normalize_request >>> start + size <= ac->ac_o_ex.fe_logical ext4_mb_regular_allocator ext4_mb_simple_scan_group ext4_mb_use_best_found ext4_mb_new_preallocation ext4_mb_new_inode_pa ext4_mb_use_inode_pa >>> set ac->ac_b_ex.fe_len <= 0 ext4_mb_mark_diskspace_used >>> BUG_ON(ac->ac_b_ex.fe_len <= 0);
we can easily reproduce this problem with the following commands: `fallocate -l100M disk` `mkfs.ext4 -b 1024 -g 256 disk` `mount disk /mnt` `fsstress -d /mnt -l 0 -n 1000 -p 1`
The size must be smaller than or equal to EXT4_BLOCKS_PER_GROUP. Therefore, "start + size <= ac->ac_o_ex.fe_logical" may occur when the size is truncated. So start should be the start position of the group where ac_o_ex.fe_logical is located after alignment. In addition, when the value of fe_logical or EXT4_BLOCKS_PER_GROUP is very large, the value calculated by start_off is more accurate.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 3.2.89 | ≤ | 취약 | < | 3.3 | 3.3이상 |
| 3.10.107 | ≤ | 취약 | < | 3.11 | 3.11이상 | |
| 3.12.72 | ≤ | 취약 | < | 3.13 | 3.13이상 | |
| 3.16.44 | ≤ | 취약 | < | 3.17 | 3.17이상 | |
| 4.1.40 | ≤ | 취약 | < | 4.2 | 4.2이상 | |
| 4.4.53 | ≤ | 취약 | < | 4.5 | 4.5이상 | |
| 4.9.14 | ≤ | 취약 | < | 4.9.320 | 4.9.320이상 | |
| 4.10.2 | ≤ | 취약 | < | 4.14.285 | 4.14.285이상 | |
| 4.15 | ≤ | 취약 | < | 4.19.249 | 4.19.249이상 | |
| 4.20 | ≤ | 취약 | < | 5.4.200 | 5.4.200이상 | |
| 5.5 | ≤ | 취약 | < | 5.10.124 | 5.10.124이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.49 | 5.15.49이상 | |
| 5.16 | ≤ | 취약 | < | 5.18.6 | 5.18.6이상 | |
| 이 버전만 | 취약 | = | 5.19 rc1 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 5.19 rc2 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 18줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 4.9.14 | ≤ | 취약 | < | 4.9.320 | 4.9.320이상 |
| 3.2.89 | ≤ | 취약 | < | 3.3 | 3.3이상 | |
| 3.10.107 | ≤ | 취약 | < | 3.11 | 3.11이상 | |
| 3.12.72 | ≤ | 취약 | < | 3.13 | 3.13이상 | |
| 3.16.44 | ≤ | 취약 | < | 3.17 | 3.17이상 | |
| 4.1.40 | ≤ | 취약 | < | 4.2 | 4.2이상 | |
| 4.4.53 | ≤ | 취약 | < | 4.5 | 4.5이상 | |
| 4.10.2 | ≤ | 취약 | < | 4.11 | 4.11이상 | |
| 이 버전만 | 취약 | = | 4.11 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 4.11 | — | |
| 4.9.320 | ≤ | 영향 없음 | ≤ | 4.9.* | — | |
| 4.14.285 | ≤ | 영향 없음 | ≤ | 4.14.* | — | |
| 4.19.249 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.200 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.124 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.49 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 5.18.6 | ≤ | 영향 없음 | ≤ | 5.18.* | — | |
| 5.19 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/5707d721d1819db57dba57b1d4623034fcb32047
- git.kernel.org/stable/c/6880fb2e64331b9fdc85d3f32b1d7e81ad8703f1
- git.kernel.org/stable/c/6fdaf31ad5f3d3afab744dfd9a8b0d9142aa881f
- git.kernel.org/stable/c/887a3e9ad4b8309a2266bce7ae749b2bf1f7a687
- git.kernel.org/stable/c/90f0f9d45dff0128c0fca0d2358c4153b024afa6