CVE-2022-48869

Orta

Təsvir

Linux kernel-də aşağıdakı zəiflik aradan qaldırılmışdır: USB: gadgetfs: mount və unmount prosesləri arasındakı yarış şərtinin (race condition) düzəldilməsi syzbot fuzzer və Gerald Lee, gadgetfs drayverində, proseslərin eyni vaxtda gadgetfs fayl sistemini mount və unmount etməsi ilə bağlı olan bir use-after-free xətasını aşkar etmişdir. Xüsusilə, gadgetfs_fill_super() funksiyası gadgetfs_kill_sb() ilə yarışa girə bilər ki, bu da sonuncunun the_device obyektindən birinci funksiya hələ istifadə edərkən onu yaddaşdan silməsinə səbəb olur. KASAN çıxışı qismən belədir: BUG: KASAN: use-after-free in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: use-after-free in atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:176 [inline] BUG: KASAN: use-after-free in __refcount_sub_and_test include/linux/refcount.h:272 [inline] BUG: KASAN: use-after-free in __refcount_dec_and_test include/linux/refcount.h:315 [inline] BUG: KASAN: use-after-free in refcount_dec_and_test include/linux/refcount.h:333 [inline] BUG: KASAN: use-after-free in put_dev drivers/usb/gadget/legacy/inode.c:159 [inline] BUG: KASAN: use-after-free in gadgetfs_kill_sb+0x33/0x100 drivers/usb/gadget/legacy/inode.c:2086 Write of size 4 at addr ffff8880276d7840 by task syz-executor126/18689 CPU: 0 PID: 18689 Comm: syz-executor126 Not tainted 6.1.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: <TASK> ... atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:176 [inline] __refcount_sub_and_test include/linux/refcount.h:272 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] put_dev drivers/usb/gadget/legacy/inode.c:159 [inline] gadgetfs_kill_sb+0x33/0x100 drivers/usb/gadget/legacy/inode.c:2086 deactivate_locked_super+0xa7/0xf0 fs/super.c:332 vfs_get_super fs/super.c:1190 [inline] get_tree_single+0xd0/0x160 fs/super.c:1207 vfs_get_tree+0x88/0x270 fs/super.c:1531 vfs_fsconfig_locked fs/fsopen.c:232 [inline] Ən sadə həll yolu, hər iki funksiyanın yeni bir mutex əldə etməsini təmin etməklə gadgetfs_fill_super() və gadgetfs_kill_sb() funksiyalarının ardıcıl işləməsini təmin etməkdir.

CiddilikOrta
CVSS4.7
İstismar ehtimalı—
MəhsulLinux Kernel
Dərc21 avq 2024
İlk görülmə21 avq 2024

Necə düzəltmək olar

Yeniləyin
  • linux linux_kernel5.4.230, 5.10.165, 5.15.90, 6.1.8 və ya daha yeni versiya

Təsirlənən məhsullar

MəhsulTəsirlənən versiyalarDüzəldildiyi versiya
linux linux_kernel5.3 ≤ v < 5.4.230, 5.5 ≤ v < 5.10.165, 5.11 ≤ v < 5.15.90, 5.16 ≤ v < 6.1.85.4.230, 5.10.165, 5.15.90, 6.1.8

Versiyanızı yoxlayın

Məhsulu seçin və istifadə etdiyiniz versiyanı yazın; versiyanın təsirlənən aralıqda olub-olmadığını görün.

Intelligence 360 paketində

Attack Surface Management

Domenlərinizə bağlı aktivləri, onlarda işləyən texnologiyaları və məlum zəiflikləri bir siyahıda görün.