In the Linux kernel, the following vulnerability has been resolved: ext4: fix use-after-free in update_super_work when racing with umount
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
30일 내 악용 확률 예측
실측 악용 기록 없음
별도 긴급 패치 불필요 — 정기 시스템 업그레이드 주기에 맞춰 조치
CVSS 벡터 · 메트릭
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H약점 (CWE)
- CWE-416
Use-After-Free — 해제된 메모리를 다시 사용해 충돌·코드 실행 유발.
상세 설명
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix use-after-free in update_super_work when racing with umount
Commit b98535d09179 ("ext4: fix bug_on in start_this_handle during umount
filesystem") moved ext4_unregister_sysfs() before flushing s_sb_upd_work
to prevent new error work from being queued via /proc/fs/ext4/xx/mb_groups
reads during unmount. However, this introduced a use-after-free because
update_super_work calls ext4_notify_error_sysfs() -> sysfs_notify() which
accesses the kobject's kernfs_node after it has been freed by kobject_del()
in ext4_unregister_sysfs():
update_super_work ext4_put_super
1 ext4_unregister_sysfs(sb) 2 kobject_del(&sbi->s_kobj) 3 __kobject_del() 4 sysfs_remove_dir() 5 kobj->sd = NULL 6 sysfs_put(sd) 7 kernfs_put() // RCU freeext4_notify_error_sysfs(sbi)
sysfs_notify(&sbi->s_kobj)
kn = kobj->sd // stale pointer
kernfs_get(kn) // UAF on freed kernfs_node
ext4_journal_destroy()
flush_work(&sbi->s_sb_upd_work)
Instead of reordering the teardown sequence, fix this by making
ext4_notify_error_sysfs() detect that sysfs has already been torn down
by checking s_kobj.state_in_sysfs, and skipping the sysfs_notify() call
in that case. A dedicated mutex (s_error_notify_mutex) serializes
ext4_notify_error_sysfs() against kobject_del() in ext4_unregister_sysfs()
to prevent TOCTOU races where the kobject could be deleted between the
state_in_sysfs check and the sysfs_notify() call.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
영향받는 제품·버전
- linux linux_kernel5.10.114 - 5.11linux
- linux linux_kernel5.15.38 - 5.15.203linux
- linux linux_kernel5.17.6 - 5.18linux
- linux linux_kernel5.18.1 - 6.1.168linux
- linux linux_kernel6.2 - 6.6.131linux
- linux linux_kernel6.7 - 6.12.80linux
- 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
- linux linux_kernellinux
- linux linux_kernellinux
- linux linux_kernellinux
영향받는 구성 (CPE) 12
- linux linux_kernel≥ 5.10.114 < 5.11cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
- linux linux_kernel 5.18cpe:2.3:o:linux:linux_kernel:5.18:-:*:*:*:*:*:*
- linux linux_kernel 5.18cpe:2.3:o:linux:linux_kernel:5.18:rc4:*:*:*:*:*:*
- linux linux_kernel 5.18cpe:2.3:o:linux:linux_kernel:5.18:rc5:*:*:*:*:*:*
- linux linux_kernel 5.18cpe:2.3:o:linux:linux_kernel:5.18:rc6:*:*:*:*:*:*
- linux linux_kernel 5.18cpe:2.3:o:linux:linux_kernel:5.18:rc7:*:*:*:*:*:*
- linux linux_kernel 5.18cpe:2.3:o:linux:linux_kernel:5.18:rc9:*:*:*:*:*:*
- 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:*:*:*:*:*:*
참고 자료 9
링크 내용 불러오는 중…