CVE-2026-98082: btrfs: fix the possible bioc_list memory leak during error

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix the possible bioclist memory leak during error

There are two possible ways to leak bioc memory on btrfsorderedextent::bioclist:

- An error occurred for btrfsinsertoneraidextent() Then the function btrfsinsertraidextent() immediately return without freeing any bioc in the bioclist.

- An ordered extent hit an IO error In that case the ordered extent will have BTRFSORDEREDIOERR set, and skip the call on btrfsinsertraidextent() completely.

Fix the problem by:

- Introduce a new helper, btrfscleanuporderedbioclist() Which will remove all bioc from the bioclist, and release the bioc.

- Call the above helper for btrfsinsertraidextent() So that the cleanup helper is always called no matter what.

- Call the above helper for btrfsfinishoneordered() This is called just before the final release on the ordered extent.

This was reported by Sashiko when reviewing another patch.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:24 AM
Data Sourced
via MITRE·10:24 AM
Description

Frequently Asked Questions

1

What conditions can lead to the memory leak?

The leak can occur if btrfs_insert_one_raid_extent() returns an error, causing btrfs_insert_raid_extent() to return without releasing entries in the ordered extent's bioc_list. It can also occur when an ordered extent has an I/O error and is marked BTRFS_ORDERED_IOERR, which skips btrfs_insert_raid_extent() entirely.

2

How can I verify that the fix is present?

Verify that the kernel includes btrfs_cleanup_ordered_bioc_list() and calls it from both btrfs_insert_raid_extent() and btrfs_finish_one_ordered(). The referenced stable commits contain the remediation.

3

Does the available information identify an attacker-controlled exploitation path?

No. The available information describes memory leaks triggered by internal Btrfs error and I/O-error handling paths, but does not identify an attacker-controlled input, required access level, or exploitation method.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203