{
  "threat_severity" : "Moderate",
  "public_date" : "2024-10-21T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: cachefiles: fix dentry leak in cachefiles_open_file()",
    "id" : "2320468",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2320468"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.1",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L",
    "status" : "verified"
  },
  "cwe" : "CWE-401",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\ncachefiles: fix dentry leak in cachefiles_open_file()\nA dentry leak may be caused when a lookup cookie and a cull are concurrent:\nP1             |             P2\n-----------------------------------------------------------\ncachefiles_lookup_cookie\ncachefiles_look_up_object\nlookup_one_positive_unlocked\n// get dentry\ncachefiles_cull\ninode->i_flags |= S_KERNEL_FILE;\ncachefiles_open_file\ncachefiles_mark_inode_in_use\n__cachefiles_mark_inode_in_use\ncan_use = false\nif (!(inode->i_flags & S_KERNEL_FILE))\ncan_use = true\nreturn false\nreturn false\n// Returns an error but doesn't put dentry\nAfter that the following WARNING will be triggered when the backend folder\nis umounted:\n==================================================================\nBUG: Dentry 000000008ad87947{i=7a,n=Dx_1_1.img}  still in use (1) [unmount of ext4 sda]\nWARNING: CPU: 4 PID: 359261 at fs/dcache.c:1767 umount_check+0x5d/0x70\nCPU: 4 PID: 359261 Comm: umount Not tainted 6.6.0-dirty #25\nRIP: 0010:umount_check+0x5d/0x70\nCall Trace:\n<TASK>\nd_walk+0xda/0x2b0\ndo_one_tree+0x20/0x40\nshrink_dcache_for_umount+0x2c/0x90\ngeneric_shutdown_super+0x20/0x160\nkill_block_super+0x1a/0x40\next4_kill_sb+0x22/0x40\ndeactivate_locked_super+0x35/0x80\ncleanup_mnt+0x104/0x160\n==================================================================\nWhether cachefiles_open_file() returns true or false, the reference count\nobtained by lookup_positive_unlocked() in cachefiles_look_up_object()\nshould be released.\nTherefore release that reference count in cachefiles_look_up_object() to\nfix the above issue and simplify the code." ],
  "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" : "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" : "Will not fix",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-49870\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-49870\nhttps://lore.kernel.org/linux-cve-announce/2024102114-CVE-2024-49870-44f0@gregkh/T" ],
  "name" : "CVE-2024-49870",
  "csaw" : false
}