CVE-2026-63827
- 공개
- 2026년 7월 19일
- 수정
- 2026년 11월 13일
- 조회
- 0
- 상태
- Analyzed
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix use-after-free in rawdata dedup loop
aa_replace_profiles() walks ns->rawdata_list to dedup the incoming policy blob against entries already attached to existing profiles. Per the kernel-doc on struct aa_loaddata, list membership does not hold a reference: profiles hold pcount, and when the last pcount drops, do_ploaddata_rmfs() is queued on a workqueue that takes ns->lock and removes the entry. Between dropping the last pcount and the workqueue running, an entry remains on the list with pcount == 0.
aa_get_profile_loaddata() is an unconditional kref_get() on pcount, so when the dedup loop hits such an entry, refcount hardening reports
refcount_t: addition on 0; use-after-free.
inside aa_replace_profiles(), and the poisoned counter then trips "saturated" and "underflow" warnings on the subsequent uses of the same loaddata.
Before commit a0b7091c4de4 ("apparmor: fix race on rawdata dereference") the dedup path used a get_unless_zero-style helper on a single counter, so the existing "if (tmp)" guard was meaningful. The split-refcount refactor introduced aa_get_profile_loaddata(), which has plain kref_get() semantics, and the guard quietly became a no-op.
Introduce aa_get_profile_loaddata_not0(), matching the existing _not0 convention used by aa_get_profile_not0(), and use it for the rawdata_list dedup lookup so dying entries are skipped.
Reproduced on x86_64 with v7.1-rc5 in QEMU+KVM running Ubuntu 24.04 + stress-ng 0.17.06:
stress-ng --apparmor 1 --klog-check --timeout 60s
Without this patch the three refcount_t warnings fire within a few seconds. With it the same 60 s run is clean. Coverage is a smoke-test only; a longer soak with CONFIG_KASAN, CONFIG_KCSAN and CONFIG_PROVE_LOCKING would be welcome from anyone with the cycles.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 5.10.253 | ≤ | 취약 | < | 5.10.261 | 5.10.261이상 |
| 5.15.203 | ≤ | 취약 | < | 5.15.212 | 5.15.212이상 | |
| 6.1.169 | ≤ | 취약 | < | 6.1.177 | 6.1.177이상 | |
| 6.6.130 | ≤ | 취약 | < | 6.6.144 | 6.6.144이상 | |
| 6.12.77 | ≤ | 취약 | < | 6.12.95 | 6.12.95이상 | |
| 6.18.18 | ≤ | 취약 | < | 6.18.38 | 6.18.38이상 | |
| 6.19.8 | ≤ | 취약 | < | 7.0 | 7.0이상 | |
| 7.0.1 | ≤ | 취약 | < | 7.1.3 | 7.1.3이상 | |
| 이 버전만 | 취약 | = | 7.0 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc4 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc5 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc6 | 벤더 공지 확인 | ||
| 이 버전만 | 취약 | = | 7.0 rc7 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 17줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 5.10.253 | ≤ | 취약 | < | 5.10.261 | 5.10.261이상 |
| 5.15.203 | ≤ | 취약 | < | 5.15.212 | 5.15.212이상 | |
| 6.1.169 | ≤ | 취약 | < | 6.1.177 | 6.1.177이상 | |
| 6.6.130 | ≤ | 취약 | < | 6.6.144 | 6.6.144이상 | |
| 6.12.77 | ≤ | 취약 | < | 6.12.95 | 6.12.95이상 | |
| 6.18.18 | ≤ | 취약 | < | 6.18.38 | 6.18.38이상 | |
| 6.19.8 | ≤ | 취약 | < | 6.20 | 6.20이상 | |
| 이 버전만 | 취약 | = | 7.0 | 벤더 공지 확인 | ||
| 최초 버전 | ≤ | 영향 없음 | < | 7.0 | — | |
| 5.10.261 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.212 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.177 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.144 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.95 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.18.38 | ≤ | 영향 없음 | ≤ | 6.18.* | — | |
| 7.1.3 | ≤ | 영향 없음 | ≤ | 7.1.* | — | |
| 7.2 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치8
- git.kernel.org/stable/c/15fd83a1e42ede15070968806bb6c8b1a5170688
- git.kernel.org/stable/c/5e34fa9f6f7cd688ae153fff13139a5cf2d42339
- git.kernel.org/stable/c/643221da57dbb1a8fd800610331cf1ec27969f71
- git.kernel.org/stable/c/6f060496d03e4dc560a40f73770bd08335cb7a27
- git.kernel.org/stable/c/a7a2890028f16e5b0af0bb005d80fcb32559cca3