CVE-2024-47660 (GCVE-0-2024-47660)

Vulnerability from cvelistv5 – Published: 2024-10-09 14:02 – Updated: 2026-01-05 10:53
VLAI?
Title
fsnotify: clear PARENT_WATCHED flags lazily
Summary
In the Linux kernel, the following vulnerability has been resolved: fsnotify: clear PARENT_WATCHED flags lazily In some setups directories can have many (usually negative) dentries. Hence __fsnotify_update_child_dentry_flags() function can take a significant amount of time. Since the bulk of this function happens under inode->i_lock this causes a significant contention on the lock when we remove the watch from the directory as the __fsnotify_update_child_dentry_flags() call from fsnotify_recalc_mask() races with __fsnotify_update_child_dentry_flags() calls from __fsnotify_parent() happening on children. This can lead upto softlockup reports reported by users. Fix the problem by calling fsnotify_update_children_dentry_flags() to set PARENT_WATCHED flags only when parent starts watching children. When parent stops watching children, clear false positive PARENT_WATCHED flags lazily in __fsnotify_parent() for each accessed child.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 873feea09ebc980cbd3631b767356ce1eee65ec1 , < 3f3ef1d9f66b93913ce2171120d9226b55acd41d (git)
Affected: 873feea09ebc980cbd3631b767356ce1eee65ec1 , < f9a48bc3dd9099935751458a5bbbea4b7c28abc8 (git)
Affected: 873feea09ebc980cbd3631b767356ce1eee65ec1 , < d8c42405fc3507cc43ba7e4986a773c3fc633f6e (git)
Affected: 873feea09ebc980cbd3631b767356ce1eee65ec1 , < fc1b1e135c3f72382f792e6c319fc088d5523ad5 (git)
Affected: 873feea09ebc980cbd3631b767356ce1eee65ec1 , < 7ef1d2e240c32b1f337a37232d037b07e3919e1a (git)
Affected: 873feea09ebc980cbd3631b767356ce1eee65ec1 , < 172e422ffea20a89bfdc672741c1aad6fbb5044e (git)
Create a notification for this product.
    Linux Linux Affected: 2.6.38
Unaffected: 0 , < 2.6.38 (semver)
Unaffected: 5.10.226 , ≤ 5.10.* (semver)
Unaffected: 5.15.167 , ≤ 5.15.* (semver)
Unaffected: 6.1.109 , ≤ 6.1.* (semver)
Unaffected: 6.6.50 , ≤ 6.6.* (semver)
Unaffected: 6.10.9 , ≤ 6.10.* (semver)
Unaffected: 6.11 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-47660",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-10T13:23:14.677657Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-10T13:23:29.701Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T22:20:24.577Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/notify/fsnotify.c",
            "fs/notify/fsnotify.h",
            "fs/notify/mark.c",
            "include/linux/fsnotify_backend.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3f3ef1d9f66b93913ce2171120d9226b55acd41d",
              "status": "affected",
              "version": "873feea09ebc980cbd3631b767356ce1eee65ec1",
              "versionType": "git"
            },
            {
              "lessThan": "f9a48bc3dd9099935751458a5bbbea4b7c28abc8",
              "status": "affected",
              "version": "873feea09ebc980cbd3631b767356ce1eee65ec1",
              "versionType": "git"
            },
            {
              "lessThan": "d8c42405fc3507cc43ba7e4986a773c3fc633f6e",
              "status": "affected",
              "version": "873feea09ebc980cbd3631b767356ce1eee65ec1",
              "versionType": "git"
            },
            {
              "lessThan": "fc1b1e135c3f72382f792e6c319fc088d5523ad5",
              "status": "affected",
              "version": "873feea09ebc980cbd3631b767356ce1eee65ec1",
              "versionType": "git"
            },
            {
              "lessThan": "7ef1d2e240c32b1f337a37232d037b07e3919e1a",
              "status": "affected",
              "version": "873feea09ebc980cbd3631b767356ce1eee65ec1",
              "versionType": "git"
            },
            {
              "lessThan": "172e422ffea20a89bfdc672741c1aad6fbb5044e",
              "status": "affected",
              "version": "873feea09ebc980cbd3631b767356ce1eee65ec1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/notify/fsnotify.c",
            "fs/notify/fsnotify.h",
            "fs/notify/mark.c",
            "include/linux/fsnotify_backend.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.38"
            },
            {
              "lessThan": "2.6.38",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.167",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.109",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.50",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.10.*",
              "status": "unaffected",
              "version": "6.10.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.11",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.226",
                  "versionStartIncluding": "2.6.38",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.167",
                  "versionStartIncluding": "2.6.38",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.109",
                  "versionStartIncluding": "2.6.38",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.50",
                  "versionStartIncluding": "2.6.38",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10.9",
                  "versionStartIncluding": "2.6.38",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.11",
                  "versionStartIncluding": "2.6.38",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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-\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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-01-05T10:53:47.652Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
        }
      ],
      "title": "fsnotify: clear PARENT_WATCHED flags lazily",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-47660",
    "datePublished": "2024-10-09T14:02:54.884Z",
    "dateReserved": "2024-09-30T16:00:12.935Z",
    "dateUpdated": "2026-01-05T10:53:47.652Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T22:20:24.577Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-47660\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-10T13:23:14.677657Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-10T13:23:18.493Z\"}}], \"cna\": {\"title\": \"fsnotify: clear PARENT_WATCHED flags lazily\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\", \"lessThan\": \"3f3ef1d9f66b93913ce2171120d9226b55acd41d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\", \"lessThan\": \"f9a48bc3dd9099935751458a5bbbea4b7c28abc8\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\", \"lessThan\": \"d8c42405fc3507cc43ba7e4986a773c3fc633f6e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\", \"lessThan\": \"fc1b1e135c3f72382f792e6c319fc088d5523ad5\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\", \"lessThan\": \"7ef1d2e240c32b1f337a37232d037b07e3919e1a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"873feea09ebc980cbd3631b767356ce1eee65ec1\", \"lessThan\": \"172e422ffea20a89bfdc672741c1aad6fbb5044e\", \"versionType\": \"git\"}], \"programFiles\": [\"fs/notify/fsnotify.c\", \"fs/notify/fsnotify.h\", \"fs/notify/mark.c\", \"include/linux/fsnotify_backend.h\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2.6.38\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"2.6.38\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.10.226\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.167\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.109\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.50\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.10.9\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.10.*\"}, {\"status\": \"unaffected\", \"version\": \"6.11\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"fs/notify/fsnotify.c\", \"fs/notify/fsnotify.h\", \"fs/notify/mark.c\", \"include/linux/fsnotify_backend.h\"], \"defaultStatus\": \"affected\"}], \"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\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"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-\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.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.226\", \"versionStartIncluding\": \"2.6.38\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.167\", \"versionStartIncluding\": \"2.6.38\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.109\", \"versionStartIncluding\": \"2.6.38\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.50\", \"versionStartIncluding\": \"2.6.38\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.10.9\", \"versionStartIncluding\": \"2.6.38\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.11\", \"versionStartIncluding\": \"2.6.38\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-01-05T10:53:47.652Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-47660\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-01-05T10:53:47.652Z\", \"dateReserved\": \"2024-09-30T16:00:12.935Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-09T14:02:54.884Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…