🔍 CVE-2025-21846

5.5
CVSS Score
MEDIUM
2025-03-12
2026-10-15 02:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 acct(2) 시스템 콜이 특정 파일 쓰기 시 NULL 참조 오류를 유발할 수 있습니다. 호출 프로세스가 이미 exit_fs()를 호출한 후 파일 lookup이 발생하면 current->fs 접근 시 NULL deref가 발생하며, 최종 쓰기를 workqueue에서 호출자 자격증명으로 실행하도록 변경되었습니다.

💡 쉬운 설명

Linux에서 시스템 accounting을 특수 파일(/sys/power/resume 등)로 설정할 때 프로세스 종료 후 파일 접근 시도로 인해 시스템 충돌이 발생할 수 있습니다. 이는 로컬 사용자가 트리거할 수 있는 서비스 거부 취약점입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: acct: perform last write from workqueue In [1] it was reported that the acct(2) system call can be used to trigger NULL deref in cases where it is set to write to a file that triggers an internal lookup. This can e.g., happen when pointing acc(2) to /sys/power/resume. At the point the where the write to this file happens the calling task has already exited and called exit_fs(). A lookup will thus trigger a NULL-deref when accessing current->fs. Reorganize the code so that the the final write happens from the workqueue but with the caller's credentials. This preserves the (strange) permission model and has almost no regression risk. This api should stop to exist though.

📍 영향받는 시스템

Linux 커널 (모든 버전, acct(2) 기능 지원)

⚔️ 공격 벡터

로컬 공격자가 acct(2)를 /sys/power/resume 등의 특수 경로로 설정하여 NULL deref 트리거

🛡️ 대응 방법

Linux 커널을 패치된 버전으로 업그레이드 (workqueue 기반 최종 쓰기 구현)

🔧 검증 코드

현재 커널 버전과 acct 관련 정보를 확인하여 패치 적용 여부 확인

Shell / Script
uname -r && grep -i 'acct' /proc/version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel