{"id":"CVE-2024-47660","revision":"8785b6b5a48b4e3f88e682356f8bf77d","records":[{"revision":"8785b6b5a48b4e3f88e682356f8bf77d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-47660","aliases":[],"title":"fsnotify: clear PARENT_WATCHED flags lazily","description":"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->i_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.","state":0,"publishedAt":"2024-10-09T14:02:54.884+00:00","modifiedAt":"2026-10-15T00:51:06.008+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/notify/fsnotify.c\",\n                        \"fs/notify/fsnotify.h\",\n                        \"fs/notify/mark.c\",\n                        \"include/linux/fsnotify_backend.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\",\n                            \"lessThan\": \"3f3ef1d9f66b93913ce2171120d9226b55acd41d\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\",\n                            \"lessThan\": \"f9a48bc3dd9099935751458a5bbbea4b7c28abc8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\",\n                            \"lessThan\": \"d8c42405fc3507cc43ba7e4986a773c3fc633f6e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\",\n                            \"lessThan\": \"fc1b1e135c3f72382f792e6c319fc088d5523ad5\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\",\n                            \"lessThan\": \"7ef1d2e240c32b1f337a37232d037b07e3919e1a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\",\n                            \"lessThan\": \"172e422ffea20a89bfdc672741c1aad6fbb5044e\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/notify/fsnotify.c\",\n                        \"fs/notify/fsnotify.h\",\n                        \"fs/notify/mark.c\",\n                        \"include/linux/fsnotify_backend.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"2.6.38\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"2.6.38\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.226\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.167\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.109\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.50\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.10.9\",\n                            \"lessThanOrEqual\": \"6.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.11\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/3f3ef1d9f66b93913ce2171120d9226b55acd41d","https://git.kernel.org/stable/c/f9a48bc3dd9099935751458a5bbbea4b7c28abc8","https://git.kernel.org/stable/c/d8c42405fc3507cc43ba7e4986a773c3fc633f6e","https://git.kernel.org/stable/c/fc1b1e135c3f72382f792e6c319fc088d5523ad5","https://git.kernel.org/stable/c/7ef1d2e240c32b1f337a37232d037b07e3919e1a","https://git.kernel.org/stable/c/172e422ffea20a89bfdc672741c1aad6fbb5044e"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-47660","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-47660","identifiers":["CVE-2024-47660"]},"retained":false,"historicalAffected":[]}],"coverage":[]}