{"id":"CVE-2024-53143","published":"2024-12-07T06:40:43Z","modified":"2026-08-05T11:44:05Z","title":"fsnotify: Fix ordering of iput() and watched_objects decrement","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsnotify: Fix ordering of iput() and watched_objects decrement\n\nEnsure the superblock is kept alive until we're done with iput().\nHolding a reference to an inode is not allowed unless we ensure the\nsuperblock stays alive, which fsnotify does by keeping the\nwatched_objects count elevated, so iput() must happen before the\nwatched_objects decrement.\nThis can lead to a UAF of something like sb->s_fs_info in tmpfs, but the\nUAF is hard to hit because race orderings that oops are more likely, thanks\nto the CHECK_DATA_CORRUPTION() block in generic_shutdown_super().\n\nAlso, ensure that fsnotify_put_sb_watched_objects() doesn't call\nfsnotify_sb_watched_objects() on a superblock that may have already been\nfreed, which would cause a UAF read of sb->s_fsnotify_info.","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.0032,"percentile":0.17475,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/45a8f8232a495221ed058191629f5c628f21601a","tags":[]},{"url":"https://git.kernel.org/stable/c/83af1cfa10d9aafdabd06b3655e07727f373b434","tags":[]},{"url":"https://git.kernel.org/stable/c/21d1b618b6b9da46c5116c640ac4b1cc8d40d63a","tags":[]},{"url":"https://project-zero.issues.chromium.org/issues/379667898","tags":[]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":3.49},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d2f277e26f521ccf6fb438463b41dba6123caabe, < 45a8f8232a495221ed058191629f5c628f21601a",">= d2f277e26f521ccf6fb438463b41dba6123caabe, < 83af1cfa10d9aafdabd06b3655e07727f373b434",">= d2f277e26f521ccf6fb438463b41dba6123caabe, < 21d1b618b6b9da46c5116c640ac4b1cc8d40d63a"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-12-11T14:22:39.197739Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-51815","exploited":false,"provenance":"source"}}