{
  "threat_severity" : "Important",
  "public_date" : "2024-08-26T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: f2fs: fix to cover read extent cache access with lock",
    "id" : "2307900",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2307900"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.8",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
    "status" : "draft"
  },
  "cwe" : "CWE-416",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nf2fs: fix to cover read extent cache access with lock\nsyzbot reports a f2fs bug as below:\nBUG: KASAN: slab-use-after-free in sanity_check_extent_cache+0x370/0x410 fs/f2fs/extent_cache.c:46\nRead of size 4 at addr ffff8880739ab220 by task syz-executor200/5097\nCPU: 0 PID: 5097 Comm: syz-executor200 Not tainted 6.9.0-rc6-syzkaller #0\nHardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024\nCall Trace:\n<TASK>\n__dump_stack lib/dump_stack.c:88 [inline]\ndump_stack_lvl+0x241/0x360 lib/dump_stack.c:114\nprint_address_description mm/kasan/report.c:377 [inline]\nprint_report+0x169/0x550 mm/kasan/report.c:488\nkasan_report+0x143/0x180 mm/kasan/report.c:601\nsanity_check_extent_cache+0x370/0x410 fs/f2fs/extent_cache.c:46\ndo_read_inode fs/f2fs/inode.c:509 [inline]\nf2fs_iget+0x33e1/0x46e0 fs/f2fs/inode.c:560\nf2fs_nfs_get_inode+0x74/0x100 fs/f2fs/super.c:3237\ngeneric_fh_to_dentry+0x9f/0xf0 fs/libfs.c:1413\nexportfs_decode_fh_raw+0x152/0x5f0 fs/exportfs/expfs.c:444\nexportfs_decode_fh+0x3c/0x80 fs/exportfs/expfs.c:584\ndo_handle_to_path fs/fhandle.c:155 [inline]\nhandle_to_path fs/fhandle.c:210 [inline]\ndo_handle_open+0x495/0x650 fs/fhandle.c:226\ndo_syscall_x64 arch/x86/entry/common.c:52 [inline]\ndo_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83\nentry_SYSCALL_64_after_hwframe+0x77/0x7f\nWe missed to cover sanity_check_extent_cache() w/ extent cache lock,\nso, below race case may happen, result in use after free issue.\n- f2fs_iget\n- do_read_inode\n- f2fs_init_read_extent_tree\n: add largest extent entry in to cache\n- shrink\n- f2fs_shrink_read_extent_tree\n- __shrink_extent_tree\n- __detach_extent_node\n: drop largest extent entry\n- sanity_check_extent_cache\n: access et->largest w/o lock\nlet's refactor sanity_check_extent_cache() to avoid extent cache access\nand call it before f2fs_init_read_extent_tree() to fix this issue." ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-44941\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-44941\nhttps://lore.kernel.org/linux-cve-announce/2024082620-CVE-2024-44941-143e@gregkh/T" ],
  "name" : "CVE-2024-44941",
  "csaw" : false
}