CVE-2026-99757btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
- —Not scoredno CVSS score yet
- —Exploitation in 30 daysno EPSS score yet
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By Linux
- 56 days later
· 56 days later
Published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
No CVSS score yet: neither the CNA, CISA nor NVD has scored this CVE.
- EPSS (exploitation in 30 days)
- Not scored
The list uses the assigner's score when there is one, then CISA's, then NVD's: Not scored.
Affected products
- affected 49ea112da0e6e323bb923315ec54ee920759bf19 – < fa34d172c9e3ee25162f515c77e04247ea780083
- affected 49ea112da0e6e323bb923315ec54ee920759bf19 – < b72664c8d0e6aada7f48277968266867fd127ea7
- affected 49ea112da0e6e323bb923315ec54ee920759bf19 – < c7011ad8d6941e1a53882c486145935dc5664c6f
- affected 49ea112da0e6e323bb923315ec54ee920759bf19 – < 4172be965c2ce887ebfb1117c634a68555be8c11
- affected 5.10
- unaffected < 5.10
- unaffected 6.12.118 – ≤ 6.12.*
- unaffected 6.18.64 – ≤ 6.18.*
- unaffected 7.3.5 – ≤ 7.3.*
- unaffected 7.4-rc2 – ≤ *
References
References4
- https://git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083 (opens in a new tab)
- https://git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7 (opens in a new tab)
- https://git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f (opens in a new tab)
- https://git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-99757)Record last updated .