CVE 목록
High7.8유형: 운영체제

CVE-2026-63827

공개
2026년 7월 19일
수정
2026년 11월 13일
조회
0
상태
Analyzed
관련 내용 구글 검색하기한국어English
번역 대상이 아니에요. 원문(영어)만 제공돼요.
7.8High

개요

이 취약점이 무엇인지

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_kernellinux5.10.253≤취약<5.10.2615.10.261이상
5.15.203≤취약<5.15.2125.15.212이상
6.1.169≤취약<6.1.1776.1.177이상
6.6.130≤취약<6.6.1446.6.144이상
6.12.77≤취약<6.12.956.12.95이상
6.18.18≤취약<6.18.386.18.38이상
6.19.8≤취약<7.07.0이상
7.0.1≤취약<7.1.37.1.3이상
이 버전만취약=7.0벤더 공지 확인
이 버전만취약=7.0 rc4벤더 공지 확인
이 버전만취약=7.0 rc5벤더 공지 확인
이 버전만취약=7.0 rc6벤더 공지 확인
이 버전만취약=7.0 rc7벤더 공지 확인

NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.

할당 기관(CNA)이 적은 버전 17줄도 보기
제품시작끝이 버전 이상으로
LinuxLinux5.10.253≤취약<5.10.2615.10.261이상
5.15.203≤취약<5.15.2125.15.212이상
6.1.169≤취약<6.1.1776.1.177이상
6.6.130≤취약<6.6.1446.6.144이상
6.12.77≤취약<6.12.956.12.95이상
6.18.18≤취약<6.18.386.18.38이상
6.19.8≤취약<6.206.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에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.