{"id":"CVE-2026-98082","revision":"46869c80ab444e50a743b30c76a60d44","records":[{"revision":"46869c80ab444e50a743b30c76a60d44","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-98082","aliases":[],"title":"btrfs: fix the possible bioc_list memory leak during error","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix the possible bioc_list memory leak during error\n\nThere are two possible ways to leak bioc memory on\nbtrfs_ordered_extent::bioc_list:\n\n- An error occurred for btrfs_insert_one_raid_extent()\n  Then the function btrfs_insert_raid_extent() immediately return\n  without freeing any bioc in the bioc_list.\n\n- An ordered extent hit an IO error\n  In that case the ordered extent will have BTRFS_ORDERED_IOERR set, and\n  skip the call on btrfs_insert_raid_extent() completely.\n\nFix the problem by:\n\n- Introduce a new helper, btrfs_cleanup_ordered_bioc_list()\n  Which will remove all bioc from the bioc_list, and release the bioc.\n\n- Call the above helper for btrfs_insert_raid_extent()\n  So that the cleanup helper is always called no matter what.\n\n- Call the above helper for btrfs_finish_one_ordered()\n  This is called just before the final release on the ordered extent.\n\nThis was reported by Sashiko when reviewing another patch.","state":0,"publishedAt":"2026-09-25T10:24:18.685+00:00","modifiedAt":"2026-10-19T09:13:34.616+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/btrfs/inode.c\",\n                        \"fs/btrfs/raid-stripe-tree.c\",\n                        \"fs/btrfs/raid-stripe-tree.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"ab69bf6f8970c09d3735c25094e9471d54365282\",\n                            \"lessThan\": \"d043c43d2b4ebcd75ee7f907948ef2847306d6b2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"02c372e1f016e5113217597ab37b399c4e407477\",\n                            \"lessThan\": \"83f0c973cffb184d019390ffdb5d31de5c85bc61\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"02c372e1f016e5113217597ab37b399c4e407477\",\n                            \"lessThan\": \"1b4d4e890c2c85d0f6365b5a08c48b4bbf85deb0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"02c372e1f016e5113217597ab37b399c4e407477\",\n                            \"lessThan\": \"bb4da45766d16503821f167054db76b735d89e94\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"02c372e1f016e5113217597ab37b399c4e407477\",\n                            \"lessThan\": \"afbe73778338e6d1ac8c4486fbdf33f0cc1f2624\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"6.6.130\",\n                            \"lessThan\": \"6.6.158\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"fs/btrfs/inode.c\",\n                        \"fs/btrfs/raid-stripe-tree.c\",\n                        \"fs/btrfs/raid-stripe-tree.h\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.7\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.158\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.111\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.53\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.7\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/d043c43d2b4ebcd75ee7f907948ef2847306d6b2","https://git.kernel.org/stable/c/83f0c973cffb184d019390ffdb5d31de5c85bc61","https://git.kernel.org/stable/c/1b4d4e890c2c85d0f6365b5a08c48b4bbf85deb0","https://git.kernel.org/stable/c/bb4da45766d16503821f167054db76b735d89e94","https://git.kernel.org/stable/c/afbe73778338e6d1ac8c4486fbdf33f0cc1f2624"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98082","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-98082","identifiers":["CVE-2026-98082"]},"retained":false,"historicalAffected":[]}],"coverage":[]}