CVE-2026-99757 json
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
published 3d ago modified 10h ago also EUVD-2026-130874
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 7%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
btrfs_sysfs_add_block_group_type() sets up a NOFS context with memalloc_nofs_save() because kobject_add() performs GFP_KERNEL allocations deep in its call chain, and the function may be called while holding a transaction handle or a lock required for a transaction commit, where reclaim could deadlock.
Every other return path of this function calls memalloc_nofs_restore() except the early return taken when another thread has already created the kobject for the same raid index (this can happen when restriping). Taking that path leaves PF_MEMALLOC_NOFS set on the calling task, so all subsequent memory allocations performed by that task remain restricted to the NOFS scope, which may lead to unexpected allocation failures or deadlocks later on.
Restore the NOFS context before returning from that path.
Patch / fix
- Linux Linux 7.4-rc2
- linux Debian 13 6.12.118-1
debian advisories DEBIAN-CVE-2026-99757
- git.kernel.org/stable/c/0161848843c2b9c4332db8d3fda5c65e0b426884 commit
- git.kernel.org/stable/c/27e3994f00f4143b642af67edf5c7fa2a3db2915 commit
- git.kernel.org/stable/c/ff30c0696ee227ada87b5aaa7c3b7758eafa9cad commit
- git.kernel.org/stable/c/f56c6e48673e3ffd7bf0485939541c028cb6c084 commit
- git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083 commit
- git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7 commit
- git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f commit
- git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11 commit
Is CVE-2026-99757 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-99757 updated cvss 4.7
kernel: kernel: btrfs: Denial of Service via unrestored memory allocation context
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 10 kernel Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-10affected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9 Red Hat OpenShift Container Platform 5 openshift/ose-rhel-coreos-9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.18% chance of exploitation in the next 30 days, higher than 7% of all scored CVEs (FIRST EPSS, 2026-11-23).
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/0161848843c2b9c4332db8d3fda5c65e0b426884
- git.kernel.org /stable/c/27e3994f00f4143b642af67edf5c7fa2a3db2915
- git.kernel.org /stable/c/ff30c0696ee227ada87b5aaa7c3b7758eafa9cad
- git.kernel.org /stable/c/f56c6e48673e3ffd7bf0485939541c028cb6c084
- git.kernel.org /stable/c/fa34d172c9e3ee25162f515c77e04247ea780083
- git.kernel.org /stable/c/b72664c8d0e6aada7f48277968266867fd127ea7
- git.kernel.org /stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f
- git.kernel.org /stable/c/4172be965c2ce887ebfb1117c634a68555be8c11
Sources
- CVE List CVE-2026-99757
- NVD CVE-2026-99757
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.