{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-71269",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-03-17T09:08:18.457Z",
        "datePublished": "2026-03-18T17:40:58.949Z",
        "dateUpdated": "2026-08-05T12:12:38.082Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T12:12:38.082Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: do not free data reservation in fallback from inline due to -ENOSPC\n\nIf we fail to create an inline extent due to -ENOSPC, we will attempt to\ngo through the normal COW path, reserve an extent, create an ordered\nextent, etc. However we were always freeing the reserved qgroup data,\nwhich is wrong since we will use data. Fix this by freeing the reserved\nqgroup data in __cow_file_range_inline() only if we are not doing the\nfallback (ret is <= 0)."
                }
            ],
            "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 SMB or NFS client can reach the vulnerable Btrfs writeback path through ksmbd or nfsd when writing to a Btrfs-backed export.\nAC:L - The attacker can create and write many sub-sector files while pressuring metadata until inline insertion returns -ENOSPC; no uncontrollable race or memory layout is required.\nPR:N - A guest-writable SMB share or anonymously writable NFS export permits triggering the vulnerable path without prior authentication.\nUI:N - Exploitation requires only attacker-controlled file writes and no action by another user.\nS:U - The vulnerability affects quota enforcement and storage availability within the same kernel and filesystem security authority.\nC:N - The bug only releases quota reservation accounting prematurely and provides no memory disclosure or read primitive.\nI:N - No kernel memory or unauthorized file data is modified, and actual qgroup usage is still accounted at transaction commit.\nA:H - The reservation bypass can permit writes beyond the configured qgroup limit and exhaust shared filesystem capacity, causing persistent ENOSPC failures and service outage."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/btrfs/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "94ed938aba557aa798acf496f09afb289b619fcd",
                            "lessThan": "3edd1f6c7c520536b62b2904807033597554dbac",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94ed938aba557aa798acf496f09afb289b619fcd",
                            "lessThan": "3a9fd45afadec1fbfec72057b9473d509fa8b68c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94ed938aba557aa798acf496f09afb289b619fcd",
                            "lessThan": "0a1fbbd780f04d1b6cf48dd327c866ba937de1c4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94ed938aba557aa798acf496f09afb289b619fcd",
                            "lessThan": "6de3a371a8b9fd095198b1aa68c22cc10a4c6961",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "94ed938aba557aa798acf496f09afb289b619fcd",
                            "lessThan": "f8da41de0bff9eb1d774a7253da0c9f637c4470a",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/btrfs/inode.c"
                    ],
                    "versions": [
                        {
                            "version": "4.4",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.4",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.168",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.134",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.81",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.10",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.19",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "6.1.168"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "6.6.134"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.4",
                                    "versionEndExcluding": "6.12.81"
                                },
                                {
                                    "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"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/3edd1f6c7c520536b62b2904807033597554dbac"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3a9fd45afadec1fbfec72057b9473d509fa8b68c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0a1fbbd780f04d1b6cf48dd327c866ba937de1c4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6de3a371a8b9fd095198b1aa68c22cc10a4c6961"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f8da41de0bff9eb1d774a7253da0c9f637c4470a"
                }
            ],
            "title": "btrfs: do not free data reservation in fallback from inline due to -ENOSPC",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}