CVE-2026-99478 (GCVE-0-2026-99478)

Vulnerability from cvelistv5 – Published: 2026-11-19 14:43 – Updated: 2026-11-22 11:08
VLAI
Title
filelock: keep superblock active through delegation wait
Summary
In the Linux kernel, the following vulnerability has been resolved: filelock: keep superblock active through delegation wait A caller may drop its path after try_break_deleg() returns a delegated inode but before break_deleg_wait() finishes. The extra inode reference held in struct delegated_inode does not keep the superblock active. After a lazy unmount, closing the delegation holder can release the last mount reference and shut down the superblock while another task waits for the delegation break. The waiter's final iput() can then enter the filesystem's eviction code after its superblock-private state was freed. This has been observed as a KASAN use-after-free in shmem_evict_inode(). When try_break_deleg() saves a delegated inode, take an active reference to its superblock while the caller still pins the mount. Keep that reference through break_deleg_wait() and the final iput(), then release it with deactivate_super(). This protects every caller of the helpers, including the mknod, mkdir, symlink and rmdir paths that drop their path before waiting.
Impacted products
Vendor Product Version
Linux Linux Affected: e12d203b8c880061c0bf0339cad51e5851a33442 , < a6e222f1d75bce8de430ba4d0f8c6a1e923f9acd (git)
Affected: e12d203b8c880061c0bf0339cad51e5851a33442 , < c206cdfee6c037b829178bb7e17e6e37ddc9aa35 (git)
Create a notification for this product.
Linux Linux Affected: 6.19
Unaffected: 0 , < 6.19 (semver)
Unaffected: 7.3.2 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/filelock.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a6e222f1d75bce8de430ba4d0f8c6a1e923f9acd",
              "status": "affected",
              "version": "e12d203b8c880061c0bf0339cad51e5851a33442",
              "versionType": "git"
            },
            {
              "lessThan": "c206cdfee6c037b829178bb7e17e6e37ddc9aa35",
              "status": "affected",
              "version": "e12d203b8c880061c0bf0339cad51e5851a33442",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/filelock.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.19"
            },
            {
              "lessThan": "6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfilelock: keep superblock active through delegation wait\n\nA caller may drop its path after try_break_deleg() returns a delegated\ninode but before break_deleg_wait() finishes. The extra inode reference\nheld in struct delegated_inode does not keep the superblock active.\n\nAfter a lazy unmount, closing the delegation holder can release the last\nmount reference and shut down the superblock while another task waits for\nthe delegation break. The waiter\u0027s final iput() can then enter the\nfilesystem\u0027s eviction code after its superblock-private state was freed.\nThis has been observed as a KASAN use-after-free in shmem_evict_inode().\n\nWhen try_break_deleg() saves a delegated inode, take an active reference\nto its superblock while the caller still pins the mount. Keep that\nreference through break_deleg_wait() and the final iput(), then release\nit with deactivate_super(). This protects every caller of the helpers,\nincluding the mknod, mkdir, symlink and rmdir paths that drop their path\nbefore waiting."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - filename_mkdirat, filename_mknodat, filename_symlinkat and filename_rmdir call try_break_deleg on the parent directory, then end_creating_path or path_put, then break_deleg_wait. That is a local syscall path; nfsd and ksmbd pass a NULL delegated_inode and never reach break_deleg_wait, and no wire message carries the triggering state.\nAC:L - The attacker mounts their own tmpfs, takes a directory delegation with fcntl F_SETDELEG, blocks in break_deleg_wait via mkdirat, then umount2(MNT_DETACH) and close() of the lease fd from another thread they control. The iput in break_deleg_wait races shmem_put_super only against that close, so the interleaving is attacker-controlled.\nPR:L - vfs_setlease allows F_SETDELEG for the directory owner without CAP_LEASE, and mkdirat only needs write and execute on that directory. Mounting tmpfs and umount2(MNT_DETACH) need CAP_SYS_ADMIN in the mount namespace user_ns (may_mount); tmpfs sets FS_USERNS_MOUNT, so an unprivileged user gets that by unsharing a user and mount namespace.\nUI:N - The same attacker opens the directory, sets the delegation, issues mkdirat, mknodat, symlinkat or rmdir, lazy-unmounts the tmpfs, and closes the lease fd. No other user has to mount an image or perform a filesystem operation.\nS:U - break_deleg_wait\u0027s final iput corrupts the calling kernel in shmem_evict_inode. The bug does not cross a KVM/Xen guest-host boundary or an IOMMU/DMA boundary.\nC:H - After shmem_put_super frees the shmem_sb_info, shmem_evict_inode still loads it through SHMEM_SB. simple_xattrs_free then dereferences the freed xa_cache.ht via rhashtable_remove_fast when the directory has xattrs, and shmem_free_inode reads max_inodes from that slab object. Reclaiming it yields an arbitrary read.\nI:H - shmem_free_inode raw_spin_locks the freed sbinfo-\u003estat_lock and adds into free_ispace, and simple_xattrs_free unlinks xattrs through the freed xa_cache. Both write attacker-reclaimable heap, which is enough to build a kernel write primitive from this use-after-free.\nA:H - The waiter\u0027s iput runs shmem_evict_inode on sbinfo that shmem_put_super already freed, which is the reported KASAN use-after-free. If the inode is still on sb-\u003es_inodes, generic_shutdown_super instead poisons i_sb and the same iput faults. Either way the kernel oopses."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:08:34.874Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/a6e222f1d75bce8de430ba4d0f8c6a1e923f9acd"
        },
        {
          "url": "https://git.kernel.org/stable/c/c206cdfee6c037b829178bb7e17e6e37ddc9aa35"
        }
      ],
      "title": "filelock: keep superblock active through delegation wait",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99478",
    "datePublished": "2026-11-19T14:43:12.810Z",
    "dateReserved": "2026-09-25T10:25:14.417Z",
    "dateUpdated": "2026-11-22T11:08:34.874Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99478",
      "date": "2026-11-22",
      "epss": "0.00156",
      "percentile": "0.04725"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "include/linux/filelock.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "a6e222f1d75bce8de430ba4d0f8c6a1e923f9acd",
                    "status": "affected",
                    "version": "e12d203b8c880061c0bf0339cad51e5851a33442",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c206cdfee6c037b829178bb7e17e6e37ddc9aa35",
                    "status": "affected",
                    "version": "e12d203b8c880061c0bf0339cad51e5851a33442",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "include/linux/filelock.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.19"
                  },
                  {
                    "lessThan": "6.19",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfilelock: keep superblock active through delegation wait\n\nA caller may drop its path after try_break_deleg() returns a delegated\ninode but before break_deleg_wait() finishes. The extra inode reference\nheld in struct delegated_inode does not keep the superblock active.\n\nAfter a lazy unmount, closing the delegation holder can release the last\nmount reference and shut down the superblock while another task waits for\nthe delegation break. The waiter\u0027s final iput() can then enter the\nfilesystem\u0027s eviction code after its superblock-private state was freed.\nThis has been observed as a KASAN use-after-free in shmem_evict_inode().\n\nWhen try_break_deleg() saves a delegated inode, take an active reference\nto its superblock while the caller still pins the mount. Keep that\nreference through break_deleg_wait() and the final iput(), then release\nit with deactivate_super(). This protects every caller of the helpers,\nincluding the mknod, mkdir, symlink and rmdir paths that drop their path\nbefore waiting."
          }
        ],
        "id": "CVE-2026-99478",
        "lastModified": "2026-11-22T11:16:53.863",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-19T15:18:02.387",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a6e222f1d75bce8de430ba4d0f8c6a1e923f9acd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c206cdfee6c037b829178bb7e17e6e37ddc9aa35"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-22T11:33:44+00:00",
      "cve": "CVE-2026-99478",
      "id": "CVE-2026-99478",
      "initial_release_date": "2026-11-19T14:43:12.810000+00:00",
      "product_status:known_affected": "14",
      "product_status:known_not_affected": "190",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of service via use-after-free during file delegation wait",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99478.json",
      "version": "3"
    }
  }
}



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…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…