Public vulnerability disclosure

CVE-2026-99757

btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()

published

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.

Technical severityUnscoredNo score in collected sources
Published2026-11-20Source updated 2026-11-23
Collected2026-11-233 attributed sources

Fixes and workarounds

No remediation reported in collected sources.

Missing remediation information is not evidence that no patch exists.

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
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)
Other versions: unaffected
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)
Other versions: affected
CNA: Linux

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

No CVSS assessment reported. An unscored record is not a low-severity determination.

Exploit evidence

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

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide