GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-89677 (GCVE-0-2026-89677)

Vulnerability from cvelistv5 – Published: 2026-09-11 19:46 – Updated: 2026-09-13 06:32
VLAI
Title
nfsd: fix possible fh_compose of wrong dentry in nfsd4_create_file()
Summary
In the Linux kernel, the following vulnerability has been resolved: nfsd: fix possible fh_compose of wrong dentry in nfsd4_create_file() dentry_create() can hypothetically provide a different dentry than the one passed in. This could happen, for example, if the exported filesystem is NFS, and the server returned to OPEN a filehandle which matched a directory that was already in the dcache. Clearly this would not be expected! If this were to happen the dentry (child) that was already stored in resfhp could be freed and later dereferenced. We shouldn't call fh_compose() until we are certain that we have the final dentry, so this patch moved the fh_compose() call to two places: one for the case where the target already exists, and one after dentry_create() where it was created.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 64a989dbd144e0622371396461b11335459692d2 , < 033e783709ce99662cf81f6abcad746a8da9d35f (git)
Affected: 64a989dbd144e0622371396461b11335459692d2 , < 3e2c79360c6a89975ec5b5a7d4ef937e4db91a27 (git)
guessed Create a notification for this product.
Linux Linux Affected: 7.0
Unaffected: 0 , < 7.0 (semver)
Unaffected: 7.2.4 , ≤ 7.2.* (semver)
Unaffected: 7.3-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfs4proc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "033e783709ce99662cf81f6abcad746a8da9d35f",
              "status": "affected",
              "version": "64a989dbd144e0622371396461b11335459692d2",
              "versionType": "git"
            },
            {
              "lessThan": "3e2c79360c6a89975ec5b5a7d4ef937e4db91a27",
              "status": "affected",
              "version": "64a989dbd144e0622371396461b11335459692d2",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/nfsd/nfs4proc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.0"
            },
            {
              "lessThan": "7.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.4",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3-rc1",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: fix possible fh_compose of wrong dentry in nfsd4_create_file()\n\ndentry_create() can hypothetically provide a different dentry than the\none passed in.  This could happen, for example, if the exported\nfilesystem is NFS, and the server returned to OPEN a filehandle which\nmatched a directory that was already in the dcache.  Clearly this would\nnot be expected!\n\nIf this were to happen the dentry (child) that was already stored in\nresfhp could be freed and later dereferenced.\n\nWe shouldn\u0027t call fh_compose() until we are certain that we have the\nfinal dentry, so this patch moved the fh_compose() call to two places:\none for the case where the target already exists, and one after\ndentry_create() where it was created."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The flaw is in nfsd4_create_file(), reached from a remote NFSv4 COMPOUND OPEN(CREATE) on in-kernel nfsd (TCP/2049) via nfsd4_proc_compound(), nfsd4_open(), and do_open_lookup(), so a network NFS client can hit it with no local access on the server.\nAC:L - On nfsd re-exports of filesystems with -\u003eatomic_open (NFS, CIFS, FUSE, Ceph, GFS2), a client can populate the dcache with directory lookups and then issue OPEN(CREATE) so dentry_create()/atomic_open()/d_splice_alias() returns a different dentry than fh_compose() stored; no race or layout beyond the attacker\u0027s requests is required.\nPR:N - In the highest reasonable deployment a writable NFS export uses AUTH_SYS, AUTH_NULL, or host-based access, so a remote client can spoof a create-capable identity and reach nfsd4_create_file() without a real server account, Kerberos, or init-namespace privilege.\nUI:N - Exploitation is solely the attacker\u0027s own NFSv4 OPEN(CREATE) compound after nfsd and the export are already running; no victim user must mount, open a file, or otherwise interact.\nS:U - The use-after-free corrupts dentry state in the NFS server kernel under the same host security authority and does not cross a VM, IOMMU, or guest-to-host boundary.\nC:H - fh_compose() stores the lookup dentry in resfhp, then atomic_open()/d_splice_alias() can drop that object so later nfsd_create_setattr(), nfsd_check_obj_isreg(), and nfsd4_process_open2() dereference a freed dentry, which is a use-after-free read primitive over kernel heap.\nI:H - A freed struct dentry can be reallocated and sprayed, corrupting d_inode, d_op, and related VFS objects used on the OPEN path, which is a write/control-flow hijack primitive equivalent to other kernel dentry use-after-frees.\nA:H - The stale resfhp-\u003efh_dentry is used in the same request (including d_inode() in nfsd_check_obj_isreg() and fh_getattr()), so the use-after-free oopses or panics nfsd and can take down the host kernel."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-13T06:32:59.920Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/033e783709ce99662cf81f6abcad746a8da9d35f"
        },
        {
          "url": "https://git.kernel.org/stable/c/3e2c79360c6a89975ec5b5a7d4ef937e4db91a27"
        }
      ],
      "title": "nfsd: fix possible fh_compose of wrong dentry in nfsd4_create_file()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-89677",
    "datePublished": "2026-09-11T19:46:01.185Z",
    "dateReserved": "2026-09-11T19:38:34.747Z",
    "dateUpdated": "2026-09-13T06:32:59.920Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-89677",
      "date": "2026-09-15",
      "epss": "0.00407",
      "percentile": "0.34318"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-89677\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-09-11T20:19:54.393\",\"lastModified\":\"2026-09-13T07:17:33.423\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnfsd: fix possible fh_compose of wrong dentry in nfsd4_create_file()\\n\\ndentry_create() can hypothetically provide a different dentry than the\\none passed in.  This could happen, for example, if the exported\\nfilesystem is NFS, and the server returned to OPEN a filehandle which\\nmatched a directory that was already in the dcache.  Clearly this would\\nnot be expected!\\n\\nIf this were to happen the dentry (child) that was already stored in\\nresfhp could be freed and later dereferenced.\\n\\nWe shouldn\u0027t call fh_compose() until we are certain that we have the\\nfinal dentry, so this patch moved the fh_compose() call to two places:\\none for the case where the target already exists, and one after\\ndentry_create() where it was created.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/nfsd/nfs4proc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"64a989dbd144e0622371396461b11335459692d2\",\"lessThan\":\"033e783709ce99662cf81f6abcad746a8da9d35f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"64a989dbd144e0622371396461b11335459692d2\",\"lessThan\":\"3e2c79360c6a89975ec5b5a7d4ef937e4db91a27\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/nfsd/nfs4proc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7.0\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"7.0\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2.4\",\"lessThanOrEqual\":\"7.2.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.3-rc1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/033e783709ce99662cf81f6abcad746a8da9d35f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3e2c79360c6a89975ec5b5a7d4ef937e4db91a27\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-09-15T10:22:15+00:00",
      "cve": "CVE-2026-89677",
      "id": "CVE-2026-89677",
      "initial_release_date": "2026-09-11T00:00:00+00:00",
      "product_status:known_affected": "14",
      "product_status:known_not_affected": "262",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: nfsd: fix possible fh_compose of wrong dentry in nfsd4_create_file()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89677.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-16T00:00:27Z",
      "cve": "CVE-2026-89677",
      "id": "CVE-2026-89677",
      "initial_release_date": "2026-09-12T16:23:51Z",
      "product_status:known_not_affected": "353",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-89677",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-89677.json",
      "version": "5"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Loading…