{"api_version":"1","generated_at":"2026-11-20T07:30:00+00:00","cve":"CVE-2026-99757","urls":{"html":"https://cve.report/CVE-2026-99757","api":"https://cve.report/api/cve/CVE-2026-99757.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99757","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99757"},"summary":{"title":"btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()\n\nbtrfs_sysfs_add_block_group_type() sets up a NOFS context with\nmemalloc_nofs_save() because kobject_add() performs GFP_KERNEL\nallocations deep in its call chain, and the function may be called\nwhile holding a transaction handle or a lock required for a\ntransaction commit, where reclaim could deadlock.\n\nEvery other return path of this function calls memalloc_nofs_restore()\nexcept the early return taken when another thread has already created\nthe kobject for the same raid index (this can happen when restriping).\nTaking that path leaves PF_MEMALLOC_NOFS set on the calling task, so\nall subsequent memory allocations performed by that task remain\nrestricted to the NOFS scope, which may lead to unexpected allocation\nfailures or deadlocks later on.\n\nRestore the NOFS context before returning from that path.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:13","updated_at":"2026-11-20 06:18:13"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083","name":"https://git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f","name":"https://git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11","name":"https://git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7","name":"https://git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99757","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99757","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 49ea112da0e6e323bb923315ec54ee920759bf19 fa34d172c9e3ee25162f515c77e04247ea780083 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 49ea112da0e6e323bb923315ec54ee920759bf19 b72664c8d0e6aada7f48277968266867fd127ea7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 49ea112da0e6e323bb923315ec54ee920759bf19 c7011ad8d6941e1a53882c486145935dc5664c6f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 49ea112da0e6e323bb923315ec54ee920759bf19 4172be965c2ce887ebfb1117c634a68555be8c11 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/btrfs/sysfs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"fa34d172c9e3ee25162f515c77e04247ea780083","status":"affected","version":"49ea112da0e6e323bb923315ec54ee920759bf19","versionType":"git"},{"lessThan":"b72664c8d0e6aada7f48277968266867fd127ea7","status":"affected","version":"49ea112da0e6e323bb923315ec54ee920759bf19","versionType":"git"},{"lessThan":"c7011ad8d6941e1a53882c486145935dc5664c6f","status":"affected","version":"49ea112da0e6e323bb923315ec54ee920759bf19","versionType":"git"},{"lessThan":"4172be965c2ce887ebfb1117c634a68555be8c11","status":"affected","version":"49ea112da0e6e323bb923315ec54ee920759bf19","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/btrfs/sysfs.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.10"},{"lessThan":"5.10","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()\n\nbtrfs_sysfs_add_block_group_type() sets up a NOFS context with\nmemalloc_nofs_save() because kobject_add() performs GFP_KERNEL\nallocations deep in its call chain, and the function may be called\nwhile holding a transaction handle or a lock required for a\ntransaction commit, where reclaim could deadlock.\n\nEvery other return path of this function calls memalloc_nofs_restore()\nexcept the early return taken when another thread has already created\nthe kobject for the same raid index (this can happen when restriping).\nTaking that path leaves PF_MEMALLOC_NOFS set on the calling task, so\nall subsequent memory allocations performed by that task remain\nrestricted to the NOFS scope, which may lead to unexpected allocation\nfailures or deadlocks later on.\n\nRestore the NOFS context before returning from that path."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:51:26.019Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/fa34d172c9e3ee25162f515c77e04247ea780083"},{"url":"https://git.kernel.org/stable/c/b72664c8d0e6aada7f48277968266867fd127ea7"},{"url":"https://git.kernel.org/stable/c/c7011ad8d6941e1a53882c486145935dc5664c6f"},{"url":"https://git.kernel.org/stable/c/4172be965c2ce887ebfb1117c634a68555be8c11"}],"title":"btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99757","datePublished":"2026-11-20T05:51:26.019Z","dateReserved":"2026-09-25T10:25:14.432Z","dateUpdated":"2026-11-20T05:51:26.019Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:13","lastModifiedDate":"2026-11-20 06:18:13","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99757","Ordinal":"1","Title":"btrfs: sysfs: restore NOFS context on early return in btrfs_sysf","CVE":"CVE-2026-99757","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99757","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()\n\nbtrfs_sysfs_add_block_group_type() sets up a NOFS context with\nmemalloc_nofs_save() because kobject_add() performs GFP_KERNEL\nallocations deep in its call chain, and the function may be called\nwhile holding a transaction handle or a lock required for a\ntransaction commit, where reclaim could deadlock.\n\nEvery other return path of this function calls memalloc_nofs_restore()\nexcept the early return taken when another thread has already created\nthe kobject for the same raid index (this can happen when restriping).\nTaking that path leaves PF_MEMALLOC_NOFS set on the calling task, so\nall subsequent memory allocations performed by that task remain\nrestricted to the NOFS scope, which may lead to unexpected allocation\nfailures or deadlocks later on.\n\nRestore the NOFS context before returning from that path.","Type":"Description","Title":"btrfs: sysfs: restore NOFS context on early return in btrfs_sysf"}]}}}