PT-2026-163719

CVE-2026-139678

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾