{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-47660","id":"CVE-2024-47660","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","descriptionLong":"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.","published":"2024-10-09T14:02:54.884Z","updated":"2026-10-28T02:30:23.179269097Z","reserved":"2024-09-30T16:00:12.935Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","lessThan":"3f3ef1d9f66b93913ce2171120d9226b55acd41d","status":"affected","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","lessThan":"f9a48bc3dd9099935751458a5bbbea4b7c28abc8","status":"affected","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","lessThan":"d8c42405fc3507cc43ba7e4986a773c3fc633f6e","status":"affected","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","lessThan":"fc1b1e135c3f72382f792e6c319fc088d5523ad5","status":"affected","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","lessThan":"7ef1d2e240c32b1f337a37232d037b07e3919e1a","status":"affected","versionType":"git"},{"version":"873feea09ebc980cbd3631b767356ce1eee65ec1","lessThan":"172e422ffea20a89bfdc672741c1aad6fbb5044e","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.38","status":"affected"},{"version":"0","lessThan":"2.6.38","status":"unaffected","versionType":"semver"},{"version":"5.10.226","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.167","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.109","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.50","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.10.9","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-362"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3f3ef1d9f66b93913ce2171120d9226b55acd41d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f9a48bc3dd9099935751458a5bbbea4b7c28abc8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d8c42405fc3507cc43ba7e4986a773c3fc633f6e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fc1b1e135c3f72382f792e6c319fc088d5523ad5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7ef1d2e240c32b1f337a37232d037b07e3919e1a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/172e422ffea20a89bfdc672741c1aad6fbb5044e","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47660.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47660","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00161,"epssPercentile":0.05329,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-47660","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47660","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-47660","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-47660","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}