Wróć do katalogu CVE
CVE-2022-50009

f2fs: naprawa błędu null-ptr-deref w f2fs_get_dnode_of_data

Linux Linux

W skrócie

W jądrze systemu Linux rozwiązano następującą podatność: f2fs: napraw błąd null-ptr-deref w f2fs_get_dnode_of_data Występuje problem podczas testowania zapisu atomowego f2fs: F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop0): invalid crc_offset: 0 F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=1, run fsck to fix. F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=2, run fsck to fix. ================================================================== BUG: KASAN: null-ptr-deref in f2fs_get_dnode_of_data+0xac/0x16d0 Read of size 8 at addr 0000000000000028 by task rep/1990 CPU: 4 PID: 1990 Comm: rep Not tainted 5.19.0-rc6-next-20220715 #266 Call Trace: <TASK> dump_stack_lvl+0x6e/0x91 print_report.cold+0x49a/0x6bb kasan_report+0xa8/0x130 f2fs_get_dnode_of_data+0xac/0x16d0 f2fs_do_write_data_page+0x2a5/0x1030 move_data_page+0x3c5/0xdf0 do_garbage_collect+0x2015/0x36c0 f2fs_gc+0x554/0x1d30 f2fs_balance_fs+0x7f5/0xda0 f2fs_write_single_data_page+0xb66/0xdc0 f2fs_write_cache_pages+0x716/0x1420 f2fs_write_data_pages+0x84f/0x9a0 do_writepages+0x130/0x3a0 filemap_fdatawrite_wbc+0x87/0xa0 file_write_and_wait_range+0x157/0x1c0 f2fs_do_sync_file+0x206/0x12d0 f2fs_sync_file+0x99/0xc0 vfs_fsync_range+0x75/0x140 f2fs_file_write_iter+0xd7b/0x1850 vfs_write+0x645/0x780 ksys_write+0xf1/0x1e0 do_syscall_64+0x3b/0x90…

Pełny opis źródłowy

W jądrze systemu Linux rozwiązano następującą podatność: f2fs: napraw błąd null-ptr-deref w f2fs_get_dnode_of_data Występuje problem podczas testowania zapisu atomowego f2fs: F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock F2FS-fs (loop0): invalid crc_offset: 0 F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=1, run fsck to fix. F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=2, run fsck to fix. ================================================================== BUG: KASAN: null-ptr-deref in f2fs_get_dnode_of_data+0xac/0x16d0 Read of size 8 at addr 0000000000000028 by task rep/1990 CPU: 4 PID: 1990 Comm: rep Not tainted 5.19.0-rc6-next-20220715 #266 Call Trace: <TASK> dump_stack_lvl+0x6e/0x91 print_report.cold+0x49a/0x6bb kasan_report+0xa8/0x130 f2fs_get_dnode_of_data+0xac/0x16d0 f2fs_do_write_data_page+0x2a5/0x1030 move_data_page+0x3c5/0xdf0 do_garbage_collect+0x2015/0x36c0 f2fs_gc+0x554/0x1d30 f2fs_balance_fs+0x7f5/0xda0 f2fs_write_single_data_page+0xb66/0xdc0 f2fs_write_cache_pages+0x716/0x1420 f2fs_write_data_pages+0x84f/0x9a0 do_writepages+0x130/0x3a0 filemap_fdatawrite_wbc+0x87/0xa0 file_write_and_wait_range+0x157/0x1c0 f2fs_do_sync_file+0x206/0x12d0 f2fs_sync_file+0x99/0xc0 vfs_fsync_range+0x75/0x140 f2fs_file_write_iter+0xd7b/0x1850 vfs_write+0x645/0x780 ksys_write+0xf1/0x1e0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd Ponieważ commit 3db1de0e582c zmienił sposób zapisu atomowego, który tworzy nowy cow_inode dla pliku zapisu atomowego, a także oznacza cow_inode jako FI_ATOMIC_FILE. Gdy f2fs_do_write_data_page zapisuje cow_inode, użyje cow_inode's cow_inode, który jest NULL. Wtedy zostanie wyzwolony błąd null-ptr-deref. Aby rozwiązać powyższy problem, wprowadź flagę FI_COW_FILE dla inode COW. Fiexes: 3db1de0e582c("f2fs: change the current atomic write way")

Opis źródłowy · CVE List / CNA

Wpływ na system

Złożoność atakuNiska
PoufnośćBrak
IntegralnośćBrak
DostępnośćWysoki

Podsumowanie CVSS v3.1

5.5Średnia
Opublikowano:
Zaktualizowano:
EPSS:
0,275%
Wykorzystanie w atakach:
Niepotwierdzone
Kampanie ransomware:
Niepotwierdzone
Wektor ataku:
Lokalny

Podatne produkty

Producent, produkt i zakres podatnych wersji.

Producent, produkt i podatne wersje
Producent:LinuxLinuxPodatne wersje:
5.19Pokaż pełny zakres wersji produktu Linux
  • Other versions are affected by default; consult the source for exceptions.
  • Other source statuses: unaffected: < 5.19; unaffected: ≥ 5.19.4, ≤ 5.19.*; unaffected: ≥ 6.0

Zakresy commitów Git (kod źródłowy)

  • From commit 6db52f1944417c2601182a591a704e2f119c5215; before commit 0f63e33eca6fa29a11c76fa31db5fe1cada5ad6e
  • From commit 3db1de0e582c358dd013f3703cd55b5fe4076436; before commit 7000ad53ec1b17bd2fac76984b7b0c663755cbb7
  • From commit 3db1de0e582c358dd013f3703cd55b5fe4076436; before commit 4a2c5b7994960fac29cf8a3f4e62855bae1b27d4
Producent:linuxlinux kernelPodatne wersje:
≥ 3.8, < 5.18.18Pokaż pełny zakres wersji produktu linux kernel
≥ 5.19, < 5.19.4
  • CPE applicability can depend on other products or environments. Consult the full source configuration.
Producent:Not specifiedKernel
Środowiska (1)
  • Linux
Podatne wersje:
≥ 5.19.0, < 5.19.4

1–3 z 3 · Strona 1 z 1

Oceny i parametry CVSS1
[email protected] · NVD (Primary)Główna5.5 / 10ŚredniaCVSS 3.1Szczegóły
Złożoność ataku
Niska
Poufność
Brak
Integralność
Brak
Dostępność
Wysoki
Wektor ataku
Lokalny
Uprawnienia
Niskie
Udział użytkownika
Niewymagany
Zakres wpływu
Bez zmian

Wektor źródłowy

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CVSS opisuje dotkliwość, EPSS — prawdopodobieństwo wykorzystania. Brak potwierdzenia ataków nie oznacza braku zagrożenia.

Źródła i komunikaty10

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Źródła danych i licencje