{"id":"CVE-2024-47660","state":"PUBLISHED","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.","publishedAt":"2024-10-09T14:02:54.884Z","updatedAt":"2026-10-15T00:51:06.008Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"3f3ef1d9f66b93913ce2171120d9226b55acd41d","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"f9a48bc3dd9099935751458a5bbbea4b7c28abc8","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"d8c42405fc3507cc43ba7e4986a773c3fc633f6e","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"fc1b1e135c3f72382f792e6c319fc088d5523ad5","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"7ef1d2e240c32b1f337a37232d037b07e3919e1a","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"172e422ffea20a89bfdc672741c1aad6fbb5044e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/fsnotify.c","fs/notify/fsnotify.h","fs/notify/mark.c","include/linux/fsnotify_backend.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.38","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.38","versionType":"semver"},{"version":"5.10.226","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.167","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.109","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.50","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.9","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/fsnotify.c","fs/notify/fsnotify.h","fs/notify/mark.c","include/linux/fsnotify_backend.h"]}],"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","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","https://cert-portal.siemens.com/productcert/html/ssa-265688.html","https://cert-portal.siemens.com/productcert/html/ssa-355557.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/47xxx/CVE-2024-47660.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-47660","state":"PUBLISHED","datePublished":"2024-10-09T14:02:54.884Z","dateUpdated":"2026-10-15T00:51:06.008Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-09-30T16:00:12.935Z"},"containers":{"cna":{"title":"fsnotify: clear PARENT_WATCHED flags lazily","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"3f3ef1d9f66b93913ce2171120d9226b55acd41d","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"f9a48bc3dd9099935751458a5bbbea4b7c28abc8","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"d8c42405fc3507cc43ba7e4986a773c3fc633f6e","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"fc1b1e135c3f72382f792e6c319fc088d5523ad5","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"7ef1d2e240c32b1f337a37232d037b07e3919e1a","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","status":"affected","lessThan":"172e422ffea20a89bfdc672741c1aad6fbb5044e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/fsnotify.c","fs/notify/fsnotify.h","fs/notify/mark.c","include/linux/fsnotify_backend.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.38","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.38","versionType":"semver"},{"version":"5.10.226","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.167","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.109","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.50","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.9","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/notify/fsnotify.c","fs/notify/fsnotify.h","fs/notify/mark.c","include/linux/fsnotify_backend.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/3f3ef1d9f66b93913ce2171120d9226b55acd41d"},{"url":"https://git.kernel.org/stable/c/f9a48bc3dd9099935751458a5bbbea4b7c28abc8"},{"url":"https://git.kernel.org/stable/c/d8c42405fc3507cc43ba7e4986a773c3fc633f6e"},{"url":"https://git.kernel.org/stable/c/fc1b1e135c3f72382f792e6c319fc088d5523ad5"},{"url":"https://git.kernel.org/stable/c/7ef1d2e240c32b1f337a37232d037b07e3919e1a"},{"url":"https://git.kernel.org/stable/c/172e422ffea20a89bfdc672741c1aad6fbb5044e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:38:18.664Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"5.10.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"5.15.167"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.1.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.6.50"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.10.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.38","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-10T13:23:14.677657Z","id":"CVE-2024-47660","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-10T13:23:29.701Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:20:24.577Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V1.1.1","versionType":"custom"}]},{"vendor":"Siemens","product":"RUGGEDCOM RST2428P","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.2","versionType":"custom"}]},{"vendor":"Siemens","product":"SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.2","versionType":"custom"}]},{"vendor":"Siemens","product":"SCALANCE XCM-/XRM-/XCH-/XRH-300 family","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V3.2","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T00:51:06.008Z"},"x_adpType":"supplier"}]}}}