{"id":"CVE-2024-56549","published":"2024-12-27T14:11:30Z","modified":"2026-10-15T21:41:47Z","title":"cachefiles: Fix NULL pointer dereference in object->file","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: Fix NULL pointer dereference in object->file\n\nAt present, the object->file has the NULL pointer dereference problem in\nondemand-mode. The root cause is that the allocated fd and object->file\nlifetime are inconsistent, and the user-space invocation to anon_fd uses\nobject->file. Following is the process that triggers the issue:\n\n\t  [write fd]\t\t\t\t[umount]\ncachefiles_ondemand_fd_write_iter\n\t\t\t\t       fscache_cookie_state_machine\n\t\t\t\t\t cachefiles_withdraw_cookie\n  if (!file) return -ENOBUFS\n\t\t\t\t\t   cachefiles_clean_up_object\n\t\t\t\t\t     cachefiles_unmark_inode_in_use\n\t\t\t\t\t     fput(object->file)\n\t\t\t\t\t     object->file = NULL\n  // file NULL pointer dereference!\n  __cachefiles_write(..., file, ...)\n\nFix this issue by add an additional reference count to the object->file\nbefore write/llseek, and decrement after it finished.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00231,"percentile":0.14241,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d6bba3ece960129a553d4b16f1b00c884dc0993a","tags":[]},{"url":"https://git.kernel.org/stable/c/785408bbafcfa24c9fc5b251f03fd0780ce182bd","tags":[]},{"url":"https://git.kernel.org/stable/c/f98770440c9bc468e2fd878212ec9526dbe08293","tags":[]},{"url":"https://git.kernel.org/stable/c/9582c7664103c9043e80a78f5c382aa6bdd67418","tags":[]},{"url":"https://git.kernel.org/stable/c/31ad74b20227ce6b40910ff78b1c604e42975cf1","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html","tags":[]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":2.85},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c8383054506c77b814489c09877b5db83fd4abf2, < d6bba3ece960129a553d4b16f1b00c884dc0993a",">= c8383054506c77b814489c09877b5db83fd4abf2, < 785408bbafcfa24c9fc5b251f03fd0780ce182bd",">= c8383054506c77b814489c09877b5db83fd4abf2, < f98770440c9bc468e2fd878212ec9526dbe08293",">= c8383054506c77b814489c09877b5db83fd4abf2, < 9582c7664103c9043e80a78f5c382aa6bdd67418",">= c8383054506c77b814489c09877b5db83fd4abf2, < 31ad74b20227ce6b40910ff78b1c604e42975cf1"]},{"vendor":"Linux","product":"Linux","versions":["5.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:41:03.958345Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-53197","exploited":false,"provenance":"source"}}