🇰🇷 한글 설명
Linux 커널의 IMA(Integrity Measurement Architecture)에서, 부팅 초기 파일시스템이 읽기 전용인 상태에서 파일 xattr 변경을 시도하면 ext4 저널 트랜잭션 실패 경고가 발생하는 문제가 수정되었습니다. 해당 상태를 조기에 감지하여 오류를 즉시 반환하도록 변경되었습니다.
💡 쉬운 설명
컴퓨터가 시작되는 초기 단계에서 파일 정보를 바꾸려다 시스템 경고가 발생하는 결함입니다. 이번 수정으로 변경이 불가능한 상황을 미리 알아채고 깔끔하게 오류를 반환합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ima: return error early if file xattr cannot be changed
During early boot, the filesystem is read-only and any changes
to xattrs are not allowed. This fails in case of ext4 because
changing xattr starts an ext4 transaction which fails with the
following warning.
WARNING: fs/ext4/ext4_jbd2.c:75 at ext4_journal_check_start+0x63/0xa0 [ext4], CPU#1: systemd-sysroot/561
CPU: 1 UID: 0 PID: 561 Comm: systemd-sysroot Not tainted 6.19.12-1-default #1 PREEMPT(voluntary) openSUSE Tumbleweed c2dfc3c9d9f6f1233251c5d4410574fe82a348ee
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/2022
RIP: 0010:ext4_journal_check_start+0x63/0xa0 [ext4]
Call Trace:
__ext4_journal_start_sb+0x3e/0x180 [ext4 6d025f3bc52c89a957b89a89d211fadf5e9434e1]
ext4_xattr_set+0x104/0x150 [ext4 6d025f3bc52c89a957b89a89d211fadf5e9434e1]
__vfs_setxattr+0x9a/0xd0
__vfs_setxattr_noperm+0x76/0x1f0
ima_appraise_measurement+0x23e/0xe40
ima_d_path+0x5a/0xd0
process_measurement+0xb29/0xc40
? copy_from_kernel_nofault+0x21/0xe0
? fscrypt_file_open+0xc0/0xe0
? ext4_file_open+0x60/0x490 [ext4 6d025f3bc52c89a957b89a89d211fadf5e9434e1]
? bpf_prog_31efb7c56239148b_restrict_filesystems+0xab/0x126
? __bpf_prog_exit+0x23/0xd0
? __bpf_tramp_exit+0xd/0x50
? bpf_trampoline_6442530367+0x9f/0xea
ima_file_check+0x57/0x80
security_file_post_open+0x50/0xf0
path_openat+0x493/0x1650
do_filp_open+0xc7/0x170
Detect the state of the file early and return the error.
📍 영향받는 시스템
Linux 커널 (IMA 기능 및 ext4 파일시스템을 사용하는 시스템, 수정 커널 이전 버전)
⚔️ 공격 벡터
명확한 공격 벡터는 보고되지 않았으며, 주로 부팅 시 발생하는 커널 경고/안정성 문제입니다.
🛡️ 대응 방법
배포판에서 제공하는 최신 Linux 커널 패키지로 업데이트하고 재부팅합니다.
🔧 검증 코드
출력된 커널 버전을 배포판 보안 공지에서 패치된 커널 버전과 비교하여 최신 수정이 포함되었는지 확인합니다.