{"id":"CVE-2024-47660","summary":"fsnotify: clear PARENT_WATCHED flags lazily","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfsnotify: clear PARENT_WATCHED flags lazily\n\nIn some setups directories can have many (usually negative) dentries.\nHence __fsnotify_update_child_dentry_flags() function can take a\nsignificant amount of time. Since the bulk of this function happens\nunder inode-\u003ei_lock this causes a significant contention on the lock\nwhen we remove the watch from the directory as the\n__fsnotify_update_child_dentry_flags() call from fsnotify_recalc_mask()\nraces with __fsnotify_update_child_dentry_flags() calls from\n__fsnotify_parent() happening on children. This can lead upto softlockup\nreports reported by users.\n\nFix the problem by calling fsnotify_update_children_dentry_flags() to\nset PARENT_WATCHED flags only when parent starts watching children.\n\nWhen parent stops watching children, clear false positive PARENT_WATCHED\nflags lazily in __fsnotify_parent() for each accessed child.","modified":"2026-04-02T12:20:09.994618Z","published":"2024-10-09T14:02:54.884Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3984-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4364-1","SUSE-SU-2024:4367-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:0035-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47660.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/172e422ffea20a89bfdc672741c1aad6fbb5044e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3f3ef1d9f66b93913ce2171120d9226b55acd41d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7ef1d2e240c32b1f337a37232d037b07e3919e1a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8c42405fc3507cc43ba7e4986a773c3fc633f6e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9a48bc3dd9099935751458a5bbbea4b7c28abc8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fc1b1e135c3f72382f792e6c319fc088d5523ad5"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47660.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47660"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"873feea09ebc980cbd3631b767356ce1eee65ec1"},{"fixed":"3f3ef1d9f66b93913ce2171120d9226b55acd41d"},{"fixed":"f9a48bc3dd9099935751458a5bbbea4b7c28abc8"},{"fixed":"d8c42405fc3507cc43ba7e4986a773c3fc633f6e"},{"fixed":"fc1b1e135c3f72382f792e6c319fc088d5523ad5"},{"fixed":"7ef1d2e240c32b1f337a37232d037b07e3919e1a"},{"fixed":"172e422ffea20a89bfdc672741c1aad6fbb5044e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47660.json"}}],"schema_version":"1.7.5"}