{
  "threat_severity" : "Moderate",
  "public_date" : "2024-10-21T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: ext4: fix slab-use-after-free in ext4_split_extent_at()",
    "id" : "2320573",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2320573"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.7",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-416",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\next4: fix slab-use-after-free in ext4_split_extent_at()\nWe hit the following use-after-free:\n==================================================================\nBUG: KASAN: slab-use-after-free in ext4_split_extent_at+0xba8/0xcc0\nRead of size 2 at addr ffff88810548ed08 by task kworker/u20:0/40\nCPU: 0 PID: 40 Comm: kworker/u20:0 Not tainted 6.9.0-dirty #724\nCall Trace:\n<TASK>\nkasan_report+0x93/0xc0\next4_split_extent_at+0xba8/0xcc0\next4_split_extent.isra.0+0x18f/0x500\next4_split_convert_extents+0x275/0x750\next4_ext_handle_unwritten_extents+0x73e/0x1580\next4_ext_map_blocks+0xe20/0x2dc0\next4_map_blocks+0x724/0x1700\next4_do_writepages+0x12d6/0x2a70\n[...]\nAllocated by task 40:\n__kmalloc_noprof+0x1ac/0x480\next4_find_extent+0xf3b/0x1e70\next4_ext_map_blocks+0x188/0x2dc0\next4_map_blocks+0x724/0x1700\next4_do_writepages+0x12d6/0x2a70\n[...]\nFreed by task 40:\nkfree+0xf1/0x2b0\next4_find_extent+0xa71/0x1e70\next4_ext_insert_extent+0xa22/0x3260\next4_split_extent_at+0x3ef/0xcc0\next4_split_extent.isra.0+0x18f/0x500\next4_split_convert_extents+0x275/0x750\next4_ext_handle_unwritten_extents+0x73e/0x1580\next4_ext_map_blocks+0xe20/0x2dc0\next4_map_blocks+0x724/0x1700\next4_do_writepages+0x12d6/0x2a70\n[...]\n==================================================================\nThe flow of issue triggering is as follows:\next4_split_extent_at\npath = *ppath\next4_ext_insert_extent(ppath)\next4_ext_create_new_leaf(ppath)\next4_find_extent(orig_path)\npath = *orig_path\nread_extent_tree_block\n// return -ENOMEM or -EIO\next4_free_ext_path(path)\nkfree(path)\n*orig_path = NULL\na. If err is -ENOMEM:\next4_ext_dirty(path + path->p_depth)\n// path use-after-free !!!\nb. If err is -EIO and we have EXT_DEBUG defined:\next4_ext_show_leaf(path)\neh = path[depth].p_hdr\n// path also use-after-free !!!\nSo when trying to zeroout or fix the extent length, call ext4_find_extent()\nto update the path.\nIn addition we use *ppath directly as an ext4_ext_show_leaf() input to\navoid possible use-after-free when EXT_DEBUG is defined, and to avoid\nunnecessary path updates." ],
  "statement" : "This issue is considered to be a moderate impact flaw, as the exploitation for this will need an ADMIN (or ROOT) privilege (PR:H).",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2025-05-13T00:00:00Z",
    "advisory" : "RHSA-2025:6966",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-570.12.1.el9_6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2025-05-13T00:00:00Z",
    "advisory" : "RHSA-2025:6966",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-570.12.1.el9_6"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Will not fix",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Will not fix",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Will not fix",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-49884\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-49884\nhttps://lore.kernel.org/linux-cve-announce/2024102116-CVE-2024-49884-fa56@gregkh/T" ],
  "name" : "CVE-2024-49884",
  "csaw" : false
}