# CVE-2026-99757: btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < 0161848843c2b9c4332db8d3fda5c65e0b426884 (affected, git); ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < 27e3994f00f4143b642af67edf5c7fa2a3db2915 (affected, git); ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < ff30c0696ee227ada87b5aaa7c3b7758eafa9cad (affected, git); ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < f56c6e48673e3ffd7bf0485939541c028cb6c084 (affected, git); ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < fa34d172c9e3ee25162f515c77e04247ea780083 (affected, git); ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < b72664c8d0e6aada7f48277968266867fd127ea7 (affected, git); ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < c7011ad8d6941e1a53882c486145935dc5664c6f (affected, git); ≥ 49ea112da0e6e323bb923315ec54ee920759bf19; < 4172be965c2ce887ebfb1117c634a68555be8c11 (affected, git). Source: CNA: Linux
- Linux / Linux: 5.10 (affected); ≥ 0; < 5.10 (unaffected, semver); ≥ 5.10.275; ≤ 5.10.* (unaffected, semver); ≥ 5.15.226; ≤ 5.15.* (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.118; ≤ 6.12.* (unaffected, semver); ≥ 6.18.64; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-11-22; percentile 6.22%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/0161848843c2b9c4332db8d3fda5c65e0b426884 (CNA: Linux)

- https://git.kernel.org/stable/c/27e3994f00f4143b642af67edf5c7fa2a3db2915 (CNA: Linux)

- https://git.kernel.org/stable/c/ff30c0696ee227ada87b5aaa7c3b7758eafa9cad (CNA: Linux)

- https://git.kernel.org/stable/c/f56c6e48673e3ffd7bf0485939541c028cb6c084 (CNA: Linux)

- https://git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083 (CNA: Linux)

- https://git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7 (CNA: Linux)

- https://git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f (CNA: Linux)

- https://git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11 (CNA: Linux)

- https://git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99757; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99757; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99757; retrieved 2026-11-23; source updated Not reported

Revision: 42bf6d86057e270f32177d393addf562e6d0abf1c625393d6825f768d0a6bed1

Canonical: https://y2.dev/cve/CVE-2026-99757

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.