CVE-2022-50379
- 공개
- 2025년 9월 18일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix race between quota enable and quota rescan ioctl
When enabling quotas, at btrfs_quota_enable(), after committing the transaction, we change fs_info->quota_root to point to the quota root we created and set BTRFS_FS_QUOTA_ENABLED at fs_info->flags. Then we try to start the qgroup rescan worker, first by initializing it with a call to qgroup_rescan_init() - however if that fails we end up freeing the quota root but we leave fs_info->quota_root still pointing to it, this can later result in a use-after-free somewhere else.
We have previously set the flags BTRFS_FS_QUOTA_ENABLED and BTRFS_QGROUP_STATUS_FLAG_ON, so we can only fail with -EINPROGRESS at btrfs_quota_enable(), which is possible if someone already called the quota rescan ioctl, and therefore started the rescan worker.
So fix this by ignoring an -EINPROGRESS and asserting we can't get any other error.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 최초 버전 | ≤ | 취약 | < | 4.19.262 | 4.19.262이상 |
| 4.20 | ≤ | 취약 | < | 5.4.220 | 5.4.220이상 | |
| 5.5 | ≤ | 취약 | < | 5.10.150 | 5.10.150이상 | |
| 5.11 | ≤ | 취약 | < | 5.15.75 | 5.15.75이상 | |
| 5.16 | ≤ | 취약 | < | 5.19.17 | 5.19.17이상 | |
| 6.0 | ≤ | 취약 | < | 6.0.3 | 6.0.3이상 | |
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 9줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 4.17 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 4.17 | — | |
| 4.19.262 | ≤ | 영향 없음 | ≤ | 4.19.* | — | |
| 5.4.220 | ≤ | 영향 없음 | ≤ | 5.4.* | — | |
| 5.10.150 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.75 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 5.19.17 | ≤ | 영향 없음 | ≤ | 5.19.* | — | |
| 6.0.3 | ≤ | 영향 없음 | ≤ | 6.0.* | — | |
| 6.1 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치7
- git.kernel.org/stable/c/0efd9dfc00d677a1d0929319a6103cb2dfc41c22
- git.kernel.org/stable/c/26b7c0ac49a3eea15559c9d84863736a6d1164b4
- git.kernel.org/stable/c/331cd9461412e103d07595a10289de90004ac890
- git.kernel.org/stable/c/47b5ffe86332af95f0f52be0a63d4da7c2b37b55
- git.kernel.org/stable/c/4b996a3014ef014af8f97b60c35f5289210a4720