CVE-2023-54119 (GCVE-0-2023-54119)

Vulnerability from cvelistv5 – Published: 2025-12-24 13:06 – Updated: 2025-12-24 13:06
VLAI?
Title
inotify: Avoid reporting event with invalid wd
Summary
In the Linux kernel, the following vulnerability has been resolved: inotify: Avoid reporting event with invalid wd When inotify_freeing_mark() races with inotify_handle_inode_event() it can happen that inotify_handle_inode_event() sees that i_mark->wd got already reset to -1 and reports this value to userspace which can confuse the inotify listener. Avoid the problem by validating that wd is sensible (and pretend the mark got removed before the event got generated otherwise).
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 , < 8fb33166aed888769ea63d6af49515893f8a1f14 (git)
Affected: 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 , < 2d65c97777e5b4a845637800d5d7b648f5772106 (git)
Affected: 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 , < 17ad86d8c12220de97e80d88b5b4c934a40e1812 (git)
Affected: 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 , < 145f54ea336b06cf4f92eeee996f2ffca939ea43 (git)
Affected: 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 , < fb3294998489d39835006240e9c6e6b2ac62022e (git)
Affected: 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 , < a48bacee05860c6089c3482bcdc80720b0ee5732 (git)
Affected: 7e790dd5fc937bc8d2400c30a05e32a9e9eef276 , < c915d8f5918bea7c3962b09b8884ca128bfd9b0c (git)
Create a notification for this product.
    Linux Linux Affected: 2.6.31
Unaffected: 0 , < 2.6.31 (semver)
Unaffected: 5.4.243 , ≤ 5.4.* (semver)
Unaffected: 5.10.180 , ≤ 5.10.* (semver)
Unaffected: 5.15.112 , ≤ 5.15.* (semver)
Unaffected: 6.1.29 , ≤ 6.1.* (semver)
Unaffected: 6.2.16 , ≤ 6.2.* (semver)
Unaffected: 6.3.3 , ≤ 6.3.* (semver)
Unaffected: 6.4 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/notify/inotify/inotify_fsnotify.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8fb33166aed888769ea63d6af49515893f8a1f14",
              "status": "affected",
              "version": "7e790dd5fc937bc8d2400c30a05e32a9e9eef276",
              "versionType": "git"
            },
            {
              "lessThan": "2d65c97777e5b4a845637800d5d7b648f5772106",
              "status": "affected",
              "version": "7e790dd5fc937bc8d2400c30a05e32a9e9eef276",
              "versionType": "git"
            },
            {
              "lessThan": "17ad86d8c12220de97e80d88b5b4c934a40e1812",
              "status": "affected",
              "version": "7e790dd5fc937bc8d2400c30a05e32a9e9eef276",
              "versionType": "git"
            },
            {
              "lessThan": "145f54ea336b06cf4f92eeee996f2ffca939ea43",
              "status": "affected",
              "version": "7e790dd5fc937bc8d2400c30a05e32a9e9eef276",
              "versionType": "git"
            },
            {
              "lessThan": "fb3294998489d39835006240e9c6e6b2ac62022e",
              "status": "affected",
              "version": "7e790dd5fc937bc8d2400c30a05e32a9e9eef276",
              "versionType": "git"
            },
            {
              "lessThan": "a48bacee05860c6089c3482bcdc80720b0ee5732",
              "status": "affected",
              "version": "7e790dd5fc937bc8d2400c30a05e32a9e9eef276",
              "versionType": "git"
            },
            {
              "lessThan": "c915d8f5918bea7c3962b09b8884ca128bfd9b0c",
              "status": "affected",
              "version": "7e790dd5fc937bc8d2400c30a05e32a9e9eef276",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/notify/inotify/inotify_fsnotify.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.31"
            },
            {
              "lessThan": "2.6.31",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.243",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.180",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.112",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.29",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.3.*",
              "status": "unaffected",
              "version": "6.3.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.4",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.243",
                  "versionStartIncluding": "2.6.31",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.180",
                  "versionStartIncluding": "2.6.31",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.112",
                  "versionStartIncluding": "2.6.31",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.29",
                  "versionStartIncluding": "2.6.31",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.16",
                  "versionStartIncluding": "2.6.31",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3.3",
                  "versionStartIncluding": "2.6.31",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4",
                  "versionStartIncluding": "2.6.31",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ninotify: Avoid reporting event with invalid wd\n\nWhen inotify_freeing_mark() races with inotify_handle_inode_event() it\ncan happen that inotify_handle_inode_event() sees that i_mark-\u003ewd got\nalready reset to -1 and reports this value to userspace which can\nconfuse the inotify listener. Avoid the problem by validating that wd is\nsensible (and pretend the mark got removed before the event got\ngenerated otherwise)."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-12-24T13:06:39.692Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8fb33166aed888769ea63d6af49515893f8a1f14"
        },
        {
          "url": "https://git.kernel.org/stable/c/2d65c97777e5b4a845637800d5d7b648f5772106"
        },
        {
          "url": "https://git.kernel.org/stable/c/17ad86d8c12220de97e80d88b5b4c934a40e1812"
        },
        {
          "url": "https://git.kernel.org/stable/c/145f54ea336b06cf4f92eeee996f2ffca939ea43"
        },
        {
          "url": "https://git.kernel.org/stable/c/fb3294998489d39835006240e9c6e6b2ac62022e"
        },
        {
          "url": "https://git.kernel.org/stable/c/a48bacee05860c6089c3482bcdc80720b0ee5732"
        },
        {
          "url": "https://git.kernel.org/stable/c/c915d8f5918bea7c3962b09b8884ca128bfd9b0c"
        }
      ],
      "title": "inotify: Avoid reporting event with invalid wd",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54119",
    "datePublished": "2025-12-24T13:06:39.692Z",
    "dateReserved": "2025-12-24T13:02:52.520Z",
    "dateUpdated": "2025-12-24T13:06:39.692Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-54119\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-24T13:16:13.837\",\"lastModified\":\"2025-12-24T13:16:13.837\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ninotify: Avoid reporting event with invalid wd\\n\\nWhen inotify_freeing_mark() races with inotify_handle_inode_event() it\\ncan happen that inotify_handle_inode_event() sees that i_mark-\u003ewd got\\nalready reset to -1 and reports this value to userspace which can\\nconfuse the inotify listener. Avoid the problem by validating that wd is\\nsensible (and pretend the mark got removed before the event got\\ngenerated otherwise).\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/145f54ea336b06cf4f92eeee996f2ffca939ea43\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/17ad86d8c12220de97e80d88b5b4c934a40e1812\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2d65c97777e5b4a845637800d5d7b648f5772106\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8fb33166aed888769ea63d6af49515893f8a1f14\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a48bacee05860c6089c3482bcdc80720b0ee5732\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c915d8f5918bea7c3962b09b8884ca128bfd9b0c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fb3294998489d39835006240e9c6e6b2ac62022e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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…