🇰🇷 한글 설명
Linux 커널의 binfmt_misc 구성 요소에서 인터프리터 복제본에 대한 쓰기 권한 제어 방식의 오류가 발견되었습니다. 특정 조건에서 파일 감시 기능(pre-content watch)이 활성화될 경우, 인터프리터 파일의 쓰기 카운트가 불일치하여 파일이 영구적으로 쓰기 불가능한 상태가 될 수 있습니다.
💡 쉬운 설명
특정 프로그램 실행 방식에서 시스템 오류로 인해 실행 파일이 갑자기 수정 불가능한 상태로 잠겨버리는 문제입니다. 이로 인해 시스템의 특정 기능이 정상적으로 작동하지 않을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
binfmt_misc: use exe_file_deny_write_access() for the interpreter clone
For MISC_FMT_OPEN_FILE entries load_misc_binary() clones the
registered interpreter file and denies write access to the clone via
plain deny_write_access(). The clone is installed as
bprm->interpreter and later released by the exec machinery through
exe_file_allow_write_access() which skips the i_writecount increment
for files with FMODE_FSNOTIFY_HSM set.
The deny and allow side can therefore come to different conclusions
when pre-content watches are in play: if a pre-content watch is added
to the interpreter after registration every subsequent exec through
that entry takes a write denial on the clone that is never paired
with a write allowance, driving the interpreter inode's i_writecount
further down with each exec and leaving the interpreter unwritable
even after the entry and all its users are gone.
Take the write denial via exe_file_deny_write_access() so both sides
of the pairing base their decision on the same file mode, and
propagate failure instead of silently ignoring it: an interpreter
that is concurrently open for writing now fails the exec with
ETXTBSY, exactly like an interpreter freshly opened via open_exec()
would.
📍 영향받는 시스템
Linux Kernel (binfmt_misc 모듈 사용 시스템)
⚔️ 공격 벡터
로컬 사용자가 특정 파일 감시 기능을 사용하여 인터프리터 파일의 상태를 조작함으로써 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux