# CVE-2026-99757: btrfs: sysfs: restore NOFS context on early return in btrfs\_sysfs\_add\_block\_group\_type()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.18% (percentile 4, 2026-11-28)
- **Published:** 2026-11-20T05:51:26.019Z
- **Modified:** 2026-11-23T08:18:16.080Z

## Who should check

- Anyone running Linux \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 0161848843c2b9c4332db8d3fda5c65e0b426884; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 27e3994f00f4143b642af67edf5c7fa2a3db2915; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< ff30c0696ee227ada87b5aaa7c3b7758eafa9cad; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< f56c6e48673e3ffd7bf0485939541c028cb6c084; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< fa34d172c9e3ee25162f515c77e04247ea780083; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< b72664c8d0e6aada7f48277968266867fd127ea7; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< c7011ad8d6941e1a53882c486145935dc5664c6f; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 4172be965c2ce887ebfb1117c634a68555be8c11
- Anyone running Linux 5.10

## 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.

## Affected and fixed versions

- Linux: \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 0161848843c2b9c4332db8d3fda5c65e0b426884; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 27e3994f00f4143b642af67edf5c7fa2a3db2915; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< ff30c0696ee227ada87b5aaa7c3b7758eafa9cad; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< f56c6e48673e3ffd7bf0485939541c028cb6c084; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< fa34d172c9e3ee25162f515c77e04247ea780083; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< b72664c8d0e6aada7f48277968266867fd127ea7; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< c7011ad8d6941e1a53882c486145935dc5664c6f; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 4172be965c2ce887ebfb1117c634a68555be8c11 (cvelist)
- Linux: 5.10 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 4172be965c2ce887ebfb1117c634a68555be8c11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99757. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99757.md
Affected: Linux >= 49ea112da0e6e323bb923315ec54ee920759bf19, < 0161848843c2b9c4332db8d3fda5c65e0b426884; >= 49ea112da0e6e323bb923315ec54ee920759bf19, < 27e3994f00f4143b642af67edf5c7fa2a3db2915; >= 49ea112da0e6e323bb923315ec54ee920759bf19, < ff30c0696ee227ada87b5aaa7c3b7758eafa9cad; >= 49ea112da0e6e323bb92331…
Fixed in: Linux 0161848843c2b9c4332db8d3fda5c65e0b426884, Linux 27e3994f00f4143b642af67edf5c7fa2a3db2915, Linux 4172be965c2ce887ebfb1117c634a68555be8c11

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99757 being exploited?

There is no confirmed exploitation: CVE-2026-99757 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99757?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99757?

Linux \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 0161848843c2b9c4332db8d3fda5c65e0b426884; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 27e3994f00f4143b642af67edf5c7fa2a3db2915; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< ff30c0696ee227ada87b5aaa7c3b7758eafa9cad; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< f56c6e48673e3ffd7bf0485939541c028cb6c084; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< fa34d172c9e3ee25162f515c77e04247ea780083; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< b72664c8d0e6aada7f48277968266867fd127ea7; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< c7011ad8d6941e1a53882c486145935dc5664c6f; \>= 49ea112da0e6e323bb923315ec54ee920759bf19, \< 4172be965c2ce887ebfb1117c634a68555be8c11; Linux 5.10.

### Is there a fix for CVE-2026-99757?

Yes. Fixed in Linux 0161848843c2b9c4332db8d3fda5c65e0b426884, Linux 27e3994f00f4143b642af67edf5c7fa2a3db2915, Linux 4172be965c2ce887ebfb1117c634a68555be8c11. Upgrade Linux to 4172be965c2ce887ebfb1117c634a68555be8c11 or later.

### How do I check if I'm affected by CVE-2026-99757?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0161848843c2b9c4332db8d3fda5c65e0b426884>
- other: <https://git.kernel.org/stable/c/27e3994f00f4143b642af67edf5c7fa2a3db2915>
- other: <https://git.kernel.org/stable/c/ff30c0696ee227ada87b5aaa7c3b7758eafa9cad>
- other: <https://git.kernel.org/stable/c/f56c6e48673e3ffd7bf0485939541c028cb6c084>
- other: <https://git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083>
- other: <https://git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7>
- other: <https://git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f>
- other: <https://git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99757>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99757> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99757>
