{"id":"CVE-2024-38580","published":"2024-06-19T13:37:37Z","modified":"2026-08-05T11:32:56Z","title":"epoll: be better about file lifetimes","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nepoll: be better about file lifetimes\n\nepoll can call out to vfs_poll() with a file pointer that may race with\nthe last 'fput()'. That would make f_count go down to zero, and while\nthe ep->mtx locking means that the resulting file pointer tear-down will\nbe blocked until the poll returns, it means that f_count is already\ndead, and any use of it won't actually get a reference to the file any\nmore: it's dead regardless.\n\nMake sure we have a valid ref on the file pointer before we call down to\nvfs_poll() from the epoll routines.","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.00237,"percentile":0.15008,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/cbfd1088e24ec4c1199756a37cb8e4cd0a4b016e","tags":[]},{"url":"https://git.kernel.org/stable/c/559214eb4e5c3d05e69428af2fae2691ba1eb784","tags":[]},{"url":"https://git.kernel.org/stable/c/4f65f4defe4e23659275ce5153541cd4f76ce2d2","tags":[]},{"url":"https://git.kernel.org/stable/c/16e3182f6322575eb7c12e728ad3c7986a189d5d","tags":[]},{"url":"https://git.kernel.org/stable/c/4efaa5acf0a1d2b5947f98abb3acf8bfd966422b","tags":[]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.0},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cbfd1088e24ec4c1199756a37cb8e4cd0a4b016e",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 559214eb4e5c3d05e69428af2fae2691ba1eb784",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4f65f4defe4e23659275ce5153541cd4f76ce2d2",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 16e3182f6322575eb7c12e728ad3c7986a189d5d",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4efaa5acf0a1d2b5947f98abb3acf8bfd966422b"]},{"vendor":"Linux","product":"Linux","versions":["2.6.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:13:59.808885Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-37443","exploited":false,"provenance":"source"}}