CVE-2026-89677 (GCVE-0-2026-89677)
Vulnerability from cvelistv5
Published
2026-09-11 19:46
Modified
2026-10-19 08:50
Severity ?
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
Linux Linux Version: 64a989dbd144e0622371396461b11335459692d2
Version: 64a989dbd144e0622371396461b11335459692d2
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",
              "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",
                  "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-10-19T08:50:50.591Z",
        "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-10-19T08:50:50.591Z",
    "state": "PUBLISHED"
  },
  "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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…