{"id":"CVE-2025-71268","state":"PUBLISHED","title":"btrfs: fix reservation leak in some error paths when inserting inline extent","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix reservation leak in some error paths when inserting inline extent\n\nIf we fail to allocate a path or join a transaction, we return from\n__cow_file_range_inline() without freeing the reserved qgroup data,\nresulting in a leak. Fix this by ensuring we call btrfs_qgroup_free_data()\nin such cases.","publishedAt":"2026-03-18T17:40:58.080Z","updatedAt":"2026-10-19T18:25:25.013Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"f7156512c8166d385f574b9ec030479aa7b1e8c9","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"28b97fcbbf523779688e8de5fe55bf2dae3859f6","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"28768bd3abf9995a93f6e01bfce01c60622964dd","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"c1c050f92d8f6aac4e17f7f2230160794fceef0c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/inode.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.1.163","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.124","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.70","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/inode.c"]}],"references":["https://git.kernel.org/stable/c/f7156512c8166d385f574b9ec030479aa7b1e8c9","https://git.kernel.org/stable/c/28b97fcbbf523779688e8de5fe55bf2dae3859f6","https://git.kernel.org/stable/c/f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913","https://git.kernel.org/stable/c/28768bd3abf9995a93f6e01bfce01c60622964dd","https://git.kernel.org/stable/c/c1c050f92d8f6aac4e17f7f2230160794fceef0c"],"weaknesses":["CWE-772"],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71268.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71268","state":"PUBLISHED","datePublished":"2026-03-18T17:40:58.080Z","dateUpdated":"2026-10-19T18:25:25.013Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-17T09:08:18.457Z"},"containers":{"cna":{"title":"btrfs: fix reservation leak in some error paths when inserting inline extent","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix reservation leak in some error paths when inserting inline extent\n\nIf we fail to allocate a path or join a transaction, we return from\n__cow_file_range_inline() without freeing the reserved qgroup data,\nresulting in a leak. Fix this by ensuring we call btrfs_qgroup_free_data()\nin such cases."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"f7156512c8166d385f574b9ec030479aa7b1e8c9","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"28b97fcbbf523779688e8de5fe55bf2dae3859f6","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"28768bd3abf9995a93f6e01bfce01c60622964dd","versionType":"git"},{"version":"94ed938aba557aa798acf496f09afb289b619fcd","status":"affected","lessThan":"c1c050f92d8f6aac4e17f7f2230160794fceef0c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/inode.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.1.163","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.124","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.70","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.10","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/inode.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f7156512c8166d385f574b9ec030479aa7b1e8c9"},{"url":"https://git.kernel.org/stable/c/28b97fcbbf523779688e8de5fe55bf2dae3859f6"},{"url":"https://git.kernel.org/stable/c/f3ee1732851aec6fe6b2cec2ef1b32d4e71d9913"},{"url":"https://git.kernel.org/stable/c/28768bd3abf9995a93f6e01bfce01c60622964dd"},{"url":"https://git.kernel.org/stable/c/c1c050f92d8f6aac4e17f7f2230160794fceef0c"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - A remote attacker can reach Btrfs writeback through a guest-writable ksmbd or anonymous NFS export backed by the affected filesystem, using write-through or flush operations to force inline extent insertion.\nAC:L - On a qgroup-enabled deployment, the attacker can prepare many small inline writes and create concurrent memory pressure to induce the vulnerable allocation or transaction-handle failure; no victim-controlled race is required.\nPR:N - A writable guest SMB share or anonymous NFS export requires no authenticated privileges or kernel capabilities.\nUI:N - The attacker directly submits the writes and flush requests without requiring victim action.\nS:U - The leak affects Btrfs qgroup accounting within the same kernel and filesystem security authority.\nC:N - The bug neither exposes data nor creates an out-of-bounds read, use-after-free, or other memory-disclosure primitive.\nI:N - The defect only fails to release an accounting reservation and does not corrupt memory or modify filesystem data.\nA:H - Leaked reservations remain charged to the subvolume and its ancestor qgroups after delalloc cleanup and inode eviction, potentially exhausting a shared limit and denying all further writes until quotas are reset or the filesystem is remounted."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:12:37.025Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.1.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.6.124"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.12.70"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.18.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-71268","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-16T15:06:12.033724Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-772","lang":"en","type":"CWE","description":"CWE-772 Missing Release of Resource after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T18:25:25.013Z"}}]}}}