In the Linux kernel, the following vulnerability has been resolved: ext4: publish jinode after initialization ext4_inode_attach_jinode() p
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
30일 내 악용 확률 예측
실측 악용 기록 없음
2주 이내 패치 — 우선 조치 대상
CVSS 벡터 · 메트릭
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H약점 (CWE)
- CWE-476
NULL 포인터 역참조 — NULL 참조로 서비스 충돌(DoS) 유발.
상세 설명
In the Linux kernel, the following vulnerability has been resolved:
ext4: publish jinode after initialization
ext4_inode_attach_jinode() publishes ei->jinode to concurrent users.
It used to set ei->jinode before jbd2_journal_init_jbd_inode(),
allowing a reader to observe a non-NULL jinode with i_vfs_inode
still unset.
The fast commit flush path can then pass this jinode to
jbd2_wait_inode_data(), which dereferences i_vfs_inode->i_mapping and
may crash.
Below is the crash I observe:
1BUG: unable to handle page fault for address: 000000010beb47f4 2PGD 110e51067 P4D 110e51067 PUD 0 3Oops: Oops: 0000 [#1] SMP NOPTI 4CPU: 1 UID: 0 PID: 4850 Comm: fc_fsync_bench_ Not tainted 6.18.0-00764-g795a690c06a5 #1 PREEMPT(voluntary) 5Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 04/01/2014 6RIP: 0010:xas_find_marked+0x3d/0x2e0 7Code: e0 03 48 83 f8 02 0f 84 f0 01 00 00 48 8b 47 08 48 89 c3 48 39 c6 0f 82 fd 01 00 00 48 85 c9 74 3d 48 83 f9 03 77 63 4c 8b 0f <49> 8b 71 08 48 c7 47 18 00 00 00 00 48 89 f1 83 e1 03 48 83 f9 02 8RSP: 0018:ffffbbee806e7bf0 EFLAGS: 00010246 9RAX: 000000000010beb4 RBX: 000000000010beb4 RCX: 000000000000000310RDX: 0000000000000001 RSI: 0000002000300000 RDI: ffffbbee806e7c1011RBP: 0000000000000001 R08: 0000002000300000 R09: 000000010beb47ec12R10: ffff9ea494590090 R11: 0000000000000000 R12: 000000200030000013R13: ffffbbee806e7c90 R14: ffff9ea494513788 R15: ffffbbee806e7c8814FS: 00007fc2f9e3e6c0(0000) GS:ffff9ea6b1444000(0000) knlGS:000000000000000015CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003316CR2: 000000010beb47f4 CR3: 0000000119ac5000 CR4: 0000000000750ef017PKRU: 5555555418Call Trace:19<TASK>20filemap_get_folios_tag+0x87/0x2a021__filemap_fdatawait_range+0x5f/0xd022? srso_alias_return_thunk+0x5/0xfbef523? __schedule+0x3e7/0x10c024? srso_alias_return_thunk+0x5/0xfbef525? srso_alias_return_thunk+0x5/0xfbef526? srso_alias_return_thunk+0x5/0xfbef527? preempt_count_sub+0x5f/0x8028? srso_alias_return_thunk+0x5/0xfbef529? cap_safe_nice+0x37/0x7030? srso_alias_return_thunk+0x5/0xfbef531? preempt_count_sub+0x5f/0x8032? srso_alias_return_thunk+0x5/0xfbef533filemap_fdatawait_range_keep_errors+0x12/0x4034ext4_fc_commit+0x697/0x8b035? ext4_file_write_iter+0x64b/0x95036? srso_alias_return_thunk+0x5/0xfbef537? preempt_count_sub+0x5f/0x8038? srso_alias_return_thunk+0x5/0xfbef539? vfs_write+0x356/0x48040? srso_alias_return_thunk+0x5/0xfbef541? preempt_count_sub+0x5f/0x8042ext4_sync_file+0xf7/0x37043do_fsync+0x3b/0x8044? syscall_trace_enter+0x108/0x1d045__x64_sys_fdatasync+0x16/0x2046do_syscall_64+0x62/0x2c047entry_SYSCALL_64_after_hwframe+0x76/0x7e48...Fix this by initializing the jbd2_inode first.
Use smp_wmb() and WRITE_ONCE() to publish ei->jinode after
initialization. Readers use READ_ONCE() to fetch the pointer.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
영향받는 제품·버전
- linux linux_kernel3.11.1 - 5.10.253linux
- linux linux_kernel5.11 - 5.15.203linux
- linux linux_kernel5.16 - 6.1.168linux
- linux linux_kernel6.2 - 6.6.134linux
- linux linux_kernel6.7 - 6.12.81linux
- linux linux_kernel6.13 - 6.18.21linux
- linux linux_kernel6.19 - 6.19.11linux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
영향받는 구성 (CPE) 9
- linux linux_kernel≥ 3.11.1 < 5.10.253cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- linux linux_kernel 3.11cpe:2.3:o:linux:linux_kernel:3.11:-:*:*:*:*:*:*
- linux linux_kernel 3.11cpe:2.3:o:linux:linux_kernel:3.11:rc6:*:*:*:*:*:*
- linux linux_kernel 3.11cpe:2.3:o:linux:linux_kernel:3.11:rc7:*:*:*:*:*:*
- linux linux_kernel 7.0cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
- linux linux_kernel 7.0cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
- linux linux_kernel 7.0cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
- linux linux_kernel 7.0cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
- linux linux_kernel 7.0cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
참고 자료 10
링크 내용 불러오는 중…