{"id":"CVE-2025-38580","published":"2025-08-19T17:03:03Z","modified":"2026-08-05T12:03:07Z","title":"ext4: fix inode use after free in ext4_end_io_rsv_work()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix inode use after free in ext4_end_io_rsv_work()\n\nIn ext4_io_end_defer_completion(), check if io_end->list_vec is empty to\navoid adding an io_end that requires no conversion to the\ni_rsv_conversion_list, which in turn prevents starting an unnecessary\nworker. An ext4_emergency_state() check is also added to avoid attempting\nto abort the journal in an emergency state.\n\nAdditionally, ext4_put_io_end_defer() is refactored to call\next4_io_end_defer_completion() directly instead of being open-coded.\nThis also prevents starting an unnecessary worker when EXT4_IO_END_FAILED\nis set but data_err=abort is not enabled.\n\nThis ensures that the check in ext4_put_io_end_defer() is consistent with\nthe check in ext4_end_bio(). Otherwise, we might add an io_end to the\ni_rsv_conversion_list and then call ext4_finish_bio(), after which the\ninode could be freed before ext4_end_io_rsv_work() is called, triggering\na use-after-free issue.","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.00193,"percentile":0.09109,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ac999862b98a0f49e858e509f776be51406f1e77","tags":[]},{"url":"https://git.kernel.org/stable/c/469c44e66e2110054949609dde095788320139d0","tags":[]},{"url":"https://git.kernel.org/stable/c/c678bdc998754589cea2e6afab9401d7d8312ac4","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":1.82},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ce51afb8cc5e1867ea0dfdf5e92ddbe31a1fad5d, < ac999862b98a0f49e858e509f776be51406f1e77",">= ce51afb8cc5e1867ea0dfdf5e92ddbe31a1fad5d, < 469c44e66e2110054949609dde095788320139d0",">= ce51afb8cc5e1867ea0dfdf5e92ddbe31a1fad5d, < c678bdc998754589cea2e6afab9401d7d8312ac4"]},{"vendor":"Linux","product":"Linux","versions":["6.15"]}],"euvd":{"id":"EUVD-2025-27911","exploited":false,"provenance":"source"}}