{
  "threat_severity" : "Moderate",
  "public_date" : "2024-10-21T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: ext4: aovid use-after-free in ext4_ext_insert_extent()",
    "id" : "2320501",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2320501"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\next4: aovid use-after-free in ext4_ext_insert_extent()\nAs Ojaswin mentioned in Link, in ext4_ext_insert_extent(), if the path is\nreallocated in ext4_ext_create_new_leaf(), we'll use the stale path and\ncause UAF. Below is a sample trace with dummy values:\next4_ext_insert_extent\npath = *ppath = 2000\next4_ext_create_new_leaf(ppath)\next4_find_extent(ppath)\npath = *ppath = 2000\nif (depth > path[0].p_maxdepth)\nkfree(path = 2000);\n*ppath = path = NULL;\npath = kcalloc() = 3000\n*ppath = 3000;\nreturn path;\n/* here path is still 2000, UAF! */\neh = path[depth].p_hdr\n==================================================================\nBUG: KASAN: slab-use-after-free in ext4_ext_insert_extent+0x26d4/0x3330\nRead of size 8 at addr ffff8881027bf7d0 by task kworker/u36:1/179\nCPU: 3 UID: 0 PID: 179 Comm: kworker/u6:1 Not tainted 6.11.0-rc2-dirty #866\nCall Trace:\n<TASK>\next4_ext_insert_extent+0x26d4/0x3330\next4_ext_map_blocks+0xe22/0x2d40\next4_map_blocks+0x71e/0x1700\next4_do_writepages+0x1290/0x2800\n[...]\nAllocated by task 179:\next4_find_extent+0x81c/0x1f70\next4_ext_map_blocks+0x146/0x2d40\next4_map_blocks+0x71e/0x1700\next4_do_writepages+0x1290/0x2800\next4_writepages+0x26d/0x4e0\ndo_writepages+0x175/0x700\n[...]\nFreed by task 179:\nkfree+0xcb/0x240\next4_find_extent+0x7c0/0x1f70\next4_ext_insert_extent+0xa26/0x3330\next4_ext_map_blocks+0xe22/0x2d40\next4_map_blocks+0x71e/0x1700\next4_do_writepages+0x1290/0x2800\next4_writepages+0x26d/0x4e0\ndo_writepages+0x175/0x700\n[...]\n==================================================================\nSo use *ppath to update the path to avoid the above problem." ],
  "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-49883\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-49883\nhttps://lore.kernel.org/linux-cve-announce/2024102116-CVE-2024-49883-ca93@gregkh/T" ],
  "name" : "CVE-2024-49883",
  "csaw" : false
}