🇰🇷 한글 설명
Linux 커널의 JFS 파일 시스템에서 jfs_truncate_nolock() 함수가 읽기 전용 모드 여부를 확인하지 않아 발생하는 취약점입니다. 읽기 전용 상태임에도 불구하고 파일 크기 조정(truncation)을 시도하여 오류가 발생할 수 있는 문제를 해결했습니다.
💡 쉬운 설명
읽기 전용으로 설정된 저장 공간에 데이터를 수정하거나 삭제하려는 시도가 발생할 때, 이를 제대로 막지 못해 시스템 오류가 생길 수 있는 문제입니다. 이번 패치를 통해 읽기 전용 모드에서는 수정 작업이 안전하게 차단됩니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
jfs: add check read-only before truncation in jfs_truncate_nolock()
Added a check for "read-only" mode in the `jfs_truncate_nolock`
function to avoid errors related to writing to a read-only
filesystem.
Call stack:
block_write_begin() {
jfs_write_failed() {
jfs_truncate() {
jfs_truncate_nolock() {
txEnd() {
...
log = JFS_SBI(tblk->sb)->log;
// (log == NULL)
If the `isReadOnly(ip)` condition is triggered in
`jfs_truncate_nolock`, the function execution will stop, and no
further data modification will occur. Instead, the `xtTruncate`
function will be called with the "COMMIT_WMAP" flag, preventing
modifications in "read-only" mode.
📍 영향받는 시스템
JFS(Journaled File System)를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
읽기 전용 파일 시스템에 대해 파일 크기 조정(truncate) 작업을 유도하여 시스템 오류를 유발
🛡️ 대응 방법
JFS 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 최신 보안 패치 버전인지 확인