CVE-2024-57874
- 공개
- 2025년 1월 12일
- 수정
- 2026년 6월 17일
- 조회
- 0
- 상태
- Modified
개요
이 취약점이 무엇인지
In the Linux kernel, the following vulnerability has been resolved:
arm64: ptrace: fix partial SETREGSET for NT_ARM_TAGGED_ADDR_CTRL
Currently tagged_addr_ctrl_set() doesn't initialize the temporary 'ctrl' variable, and a SETREGSET call with a length of zero will leave this uninitialized. Consequently tagged_addr_ctrl_set() will consume an arbitrary value, potentially leaking up to 64 bits of memory from the kernel stack. The read is limited to a specific slot on the stack, and the issue does not provide a write mechanism.
As set_tagged_addr_ctrl() only accepts values where bits [63:4] zero and rejects other values, a partial SETREGSET attempt will randomly succeed or fail depending on the value of the uninitialized value, and the exposure is significantly limited.
Fix this by initializing the temporary value before copying the regset from userspace, as for other regsets (e.g. NT_PRSTATUS, NT_PRFPREG, NT_ARM_SYSTEM_CALL). In the case of a zero-length write, the existing value of the tagged address ctrl will be retained.
The NT_ARM_TAGGED_ADDR_CTRL regset is only visible in the user_aarch64_view used by a native AArch64 task to manipulate another native AArch64 task. As get_tagged_addr_ctrl() only returns an error value when called for a compat task, tagged_addr_ctrl_get() and tagged_addr_ctrl_set() should never observe an error value from get_tagged_addr_ctrl(). Add a WARN_ON_ONCE() to both to indicate that such an error would be unexpected, and error handlnig is not missing in either case.
실제 악용 사례 · 아직 확인된 사례가 없어요
CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.
패치 현황
어떤 버전이 위험하고, 몇 버전으로 올리면 되는지
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| linux_kernellinux | 5.10 | ≤ | 취약 | < | 5.10.231 | 5.10.231이상 |
| 5.11 | ≤ | 취약 | < | 5.15.174 | 5.15.174이상 | |
| 5.16 | ≤ | 취약 | < | 6.1.120 | 6.1.120이상 | |
| 6.2 | ≤ | 취약 | < | 6.6.66 | 6.6.66이상 | |
| 6.7 | ≤ | 취약 | < | 6.12.5 | 6.12.5이상 | |
| 이 버전만 | 취약 | = | 6.13 rc1 | 벤더 공지 확인 | ||
NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.
할당 기관(CNA)이 적은 버전 8줄도 보기
| 제품 | 시작 | 끝 | 이 버전 이상으로 | |||
|---|---|---|---|---|---|---|
| LinuxLinux | 이 버전만 | 취약 | = | 5.10 | 벤더 공지 확인 | |
| 최초 버전 | ≤ | 영향 없음 | < | 5.10 | — | |
| 5.10.231 | ≤ | 영향 없음 | ≤ | 5.10.* | — | |
| 5.15.174 | ≤ | 영향 없음 | ≤ | 5.15.* | — | |
| 6.1.120 | ≤ | 영향 없음 | ≤ | 6.1.* | — | |
| 6.6.66 | ≤ | 영향 없음 | ≤ | 6.6.* | — | |
| 6.12.5 | ≤ | 영향 없음 | ≤ | 6.12.* | — | |
| 6.13 | ≤ | 영향 없음 | ≤ | 최신 버전 | — | |
참고 링크
NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.
패치6
- git.kernel.org/stable/c/1152dd13845efde5554f80c7e1233bae1d26bd3e
- git.kernel.org/stable/c/1370cf3eb5495d70e00547598583a4cd45b40b99
- git.kernel.org/stable/c/1c176f5155ee6161fee6f416b64aa50394d3f220
- git.kernel.org/stable/c/96035c0093db258975b8887676afe59a64c34a72
- git.kernel.org/stable/c/abd614bbfcee73247495bd9472da8f85ac83546e