GHSA-FXFM-65X8-57M8

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

In the Linux kernel, the following vulnerability has been resolved:

kernfs: don't hold kernfs_rwsem across notification delivery

Recently at Meta we noticed that on multi-tenant systems, a workload under extreme memory pressure negatively impacts unrelated workloads and system daemons like below [1] and fb-oomd [2]. Mainly we observed that system daemons were stuck on kernfs_rwsem in cgroup-related interfaces for long periods of time.

On further inspection, we found that the workload under pressure had registered inotify watches on its memory.events and was continuously receiving limit-hitting notifications. The cgroup notification is done in kernfs_notify_workfn(), which holds kernfs_supers_rwsem and kernfs_rwsem and calls fsnotify(), which allocates the event with kmalloc(GFP_KERNEL_ACCOUNT|__GFP_RETRY_MAYFAIL) charged to the watching cgroup, which is already under memory pressure. So the notify worker ended up in memory reclaim of a cgroup already under pressure, and itself kept triggering the limit notifications.

This notification path takes the locks in read mode, but a waiting writer blocks all future readers. That is exactly what is happening in the Meta fleet, and it leaves daemons that are critical to the reliability of the system stuck for long periods of time.

Commit 400188ae361a ("kernfs: Acquire kernfs_rwsem in kernfs_notify_workfn().") added kernfs_rwsem just to safely read kernfs_node::name. Let's sample the name once before the loop and drop the lock. kernfs_supers_rwsem still covers the list, and the removal paths take that one for reading too, so a stalled worker can still hold a removal up once a mount or unmount is queued behind it.

Two things change for a watcher. A name longer than NAME_MAX now gives an event with no name, where before it gave one with the full name; fsnotify() takes the name as optional, so the event still arrives. And the name and the parent are no longer sampled under one lock, so a rename between the two would name a file against the directory it moved to. That cannot happen today: kernfs_notify() rejects anything that is not a file, and no caller of kernfs_rename_ns() renames one.

[1] https://github.com/facebookincubator/below [2] https://github.com/facebookincubator/oomd

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-139678"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:19:55Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nkernfs: don\u0027t hold kernfs_rwsem across notification delivery\n\nRecently at Meta we noticed that on multi-tenant systems, a workload\nunder extreme memory pressure negatively impacts unrelated workloads and\nsystem daemons like below [1] and fb-oomd [2]. Mainly we observed that\nsystem daemons were stuck on kernfs_rwsem in cgroup-related interfaces\nfor long periods of time.\n\nOn further inspection, we found that the workload under pressure had\nregistered inotify watches on its memory.events and was continuously\nreceiving limit-hitting notifications. The cgroup notification is done in\nkernfs_notify_workfn(), which holds kernfs_supers_rwsem and kernfs_rwsem\nand calls fsnotify(), which allocates the event with\nkmalloc(GFP_KERNEL_ACCOUNT|__GFP_RETRY_MAYFAIL) charged to the watching\ncgroup, which is already under memory pressure. So the notify worker\nended up in memory reclaim of a cgroup already under pressure, and itself\nkept triggering the limit notifications.\n\nThis notification path takes the locks in read mode, but a waiting writer\nblocks all future readers. That is exactly what is happening in the Meta\nfleet, and it leaves daemons that are critical to the reliability of the\nsystem stuck for long periods of time.\n\nCommit 400188ae361a (\"kernfs: Acquire kernfs_rwsem in\nkernfs_notify_workfn().\") added kernfs_rwsem just to safely read\nkernfs_node::name.  Let\u0027s sample the name once before the loop and drop\nthe lock.  kernfs_supers_rwsem still covers the list, and the removal\npaths take that one for reading too, so a stalled worker can still hold\na removal up once a mount or unmount is queued behind it.\n\nTwo things change for a watcher.  A name longer than NAME_MAX now gives\nan event with no name, where before it gave one with the full name;\nfsnotify() takes the name as optional, so the event still arrives.  And\nthe name and the parent are no longer sampled under one lock, so a rename\nbetween the two would name a file against the directory it moved to.\nThat cannot happen today: kernfs_notify() rejects anything that is not a\nfile, and no caller of kernfs_rename_ns() renames one.\n\n[1] https://github.com/facebookincubator/below\n[2] https://github.com/facebookincubator/oomd",
  "id": "GHSA-fxfm-65x8-57m8",
  "modified": "2026-11-30T15:32:41Z",
  "published": "2026-11-30T15:32:41Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139678"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/23985e2b1f31623468244a2149b2388cda4925eb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/576c326a41e235b0c7fa916201ff8e4637b96e57"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/58d538ea9c854973999314a33a548c87743d1c18"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    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.