CVE-2024-50225
published high CVSS 3.1 · 7.8btrfs: fix error propagation of split bios
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux852eee62d31abd695cd43e1b875d664ed292a8ca to < 22833d89b780ba0f9f66e19c477e7decf638edce · 852eee62d31abd695cd43e1b875d664ed292a8ca to < d48e1dea3931de64c26717adc2b89743c7ab6594 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.3 (affected) · 0 to < 6.3 (unaffected · semver) · 6.11.7 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-64kbaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-64kb-develaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azureaarch64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azurex86_64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azure-develaarch64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azure-develx86_64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-cocox86_64 | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-coco-develx86_64 | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-coco_debugx86_64 | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-coco_debug-develx86_64 | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-baseaarch64 | Advisory build | 6.4.0-150600.23.30.1.150600.12.12.6 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-baseppc64le | Advisory build | 6.4.0-150600.23.30.1.150600.12.12.6 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-basex86_64 | Advisory build | 6.4.0-150600.23.30.1.150600.12.12.6 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-devels390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-extrax86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchs390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-develppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-devels390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-develx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-develnoarch | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-azurenoarch | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-coconoarch | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-rtnoarch | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-docsnoarch | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_10_20-rtx86_64 | Advisory build | 1-150600.1.3.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_23_30-defaultppc64le | Advisory build | 1-150600.13.3.5 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_23_30-defaults390x | Advisory build | 1-150600.13.3.5 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-livepatch-6_4_0-150600_23_30-defaultx86_64 | Advisory build | 1-150600.13.3.5 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-macrosnoarch | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-buildaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-buildppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-builds390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-obs-buildx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rt-develx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rt_debugx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-rt_debug-develx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-sourcenoarch | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-source-azurenoarch | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-source-coconoarch | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-source-rtnoarch | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symsaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symsppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symss390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-symsx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-azureaarch64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-azurex86_64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-cocox86_64 | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-syms-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-zfcpdumps390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | ocfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-cocox86_64 | Advisory build | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | SLE-15-SP6 | reiserfs-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-64kbaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-azureaarch64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-azurex86_64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | cluster-md-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-64kbaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-azureaarch64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-azurex86_64 | Advisory build | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaults390x | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | dlm-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix error propagation of split bios The purpose of btrfs_bbio_propagate_error() shall be propagating an error of split bio to its original btrfs_bio, and tell the error to the upper layer. However, it's not working well on some cases. * Case 1. Immediate (or quick) end_bio with an error When btrfs sends btrfs_bio to mirrored devices, btrfs calls btrfs_bio_end_io() when all the mirroring bios are completed. If that btrfs_bio was split, it is from btrfs_clone_bioset and its end_io function is btrfs_orig_write_end_io. For this case, btrfs_bbio_propagate_error() accesses the orig_bbio's bio context to increase the error count. That works well in most cases. However, if the end_io is called enough fast, orig_bbio's (remaining part after split) bio context may not be properly set at that time. Since the bio context is set when the orig_bbio (the last btrfs_bio) is sent to devices, that might be too late for earlier split btrfs_bio's completion. That will result in NULL pointer dereference. That bug is easily reproducible by running btrfs/146 on zoned devices [1] and it shows the following trace. [1] You need raid-stripe-tree feature as it create "-d raid0 -m raid1" FS. BUG: kernel NULL pointer dereference, address: 0000000000000020 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 0 P4D 0 Oops: Oops: 0000 [#1] PREEMPT SMP PTI CPU: 1 UID: 0 PID: 13 Comm: kworker/u32:1 Not tainted 6.11.0-rc7-BTRFS-ZNS+ #474 Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 Workqueue: writeback wb_workfn (flush-btrfs-5) RIP: 0010:btrfs_bio_end_io+0xae/0xc0 [btrfs] BTRFS error (device dm-0): bdev /dev/mapper/error-test errs: wr 2, rd 0, flush 0, corrupt 0, gen 0 RSP: 0018:ffffc9000006f248 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888005a7f080 RCX: ffffc9000006f1dc RDX: 0000000000000000 RSI: 000000000000000a RDI: ffff888005a7f080 RBP: ffff888011dfc540 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff82e508e0 R11: 0000000000000005 R12: ffff88800ddfbe58 R13: ffff888005a7f080 R14: ffff888005a7f158 R15: ffff888005a7f158 FS: 0000000000000000(0000) GS:ffff88803ea80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000020 CR3: 0000000002e22006 CR4: 0000000000370ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> ? __die_body.cold+0x19/0x26 ? page_fault_oops+0x13e/0x2b0 ? _printk+0x58/0x73 ? do_user_addr_fault+0x5f/0x750 ? exc_page_fault+0x76/0x240 ? asm_exc_page_fault+0x22/0x30 ? btrfs_bio_end_io+0xae/0xc0 [btrfs] ? btrfs_log_dev_io_error+0x7f/0x90 [btrfs] btrfs_orig_write_end_io+0x51/0x90 [btrfs] dm_submit_bio+0x5c2/0xa50 [dm_mod] ? find_held_lock+0x2b/0x80 ? blk_try_enter_queue+0x90/0x1e0 __submit_bio+0xe0/0x130 ? ktime_get+0x10a/0x160 ? lockdep_hardirqs_on+0x74/0x100 submit_bio_noacct_nocheck+0x199/0x410 btrfs_submit_bio+0x7d/0x150 [btrfs] btrfs_submit_chunk+0x1a1/0x6d0 [btrfs] ? lockdep_hardirqs_on+0x74/0x100 ? __folio_start_writeback+0x10/0x2c0 btrfs_submit_bbio+0x1c/0x40 [btrfs] submit_one_bio+0x44/0x60 [btrfs] submit_extent_folio+0x13f/0x330 [btrfs] ? btrfs_set_range_writeback+0xa3/0xd0 [btrfs] extent_writepage_io+0x18b/0x360 [btrfs] extent_write_locked_range+0x17c/0x340 [btrfs] ? __pfx_end_bbio_data_write+0x10/0x10 [btrfs] run_delalloc_cow+0x71/0xd0 [btrfs] btrfs_run_delalloc_range+0x176/0x500 [btrfs] ? find_lock_delalloc_range+0x119/0x260 [btrfs] writepage_delalloc+0x2ab/0x480 [btrfs] extent_write_cache_pages+0x236/0x7d0 [btrfs] btrfs_writepages+0x72/0x130 [btrfs] do_writepages+0xd4/0x240 ? find_held_lock+0x2b/0x80 ? wbc_attach_and_unlock_inode+0x12c/0x290 ? wbc_attach_and_unlock_inode+0x12c/0x29 ---truncated---
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is the btrfs bio submission/completion path reached through ordinary local file writes and writeback on a mounted btrfs filesystem (btrfs_writepages → btrfs_submit_bbio → btrfs_bio_end_io); there is no network-facing entry point. AC:L - On a degraded or removable multi-device btrfs, btrfs_submit_dev_bio() takes the synchronous bio_io_error() path, so the split bio completes with an error before the original bbio is ever submitted — a deterministic NULL bi_private dereference, not a race; where a race is involved (zoned/RST, Case 2 early completion) the attacker controls the write volume and pattern that drive both sides, and the upstream reproducer (btrfs/146) hits it easily. PR:L - Any unprivileged local user with write access to a btrfs filesystem generates the delalloc/writeback bios that get split; no capability, ioctl privilege, or admin check exists anywhere along the path from write(2) to btrfs_bbio_propagate_error(). UI:N - The faulting code runs asynchronously in a writeback kworker after the attacker's writes; no victim action, mount, or file open by another user is required. S:U - The corruption and crash are confined to the kernel's own memory and the filesystem it manages, with no crossing of a VM, IOMMU, or other security-authority boundary. C:H - Beyond the NULL dereference, an early-completing original bbio causes btrfs_put_bioc() to free the btrfs_io_context while a split bio is still in flight, so orig_stripe->bioc is read out of freed (potentially reallocated and heap-groomed) slab memory — memory corruption leverageable for kernel information disclosure. I:H - The stale-pointer path performs atomic_add(orig_bioc->max_errors, &orig_bioc->error) through a pointer read from freed memory, yielding a write primitive at an attacker-influenceable kernel address; independently, the broken propagation silently reports failed data and metadata writes as BLK_STS_OK, so writeback and fsync succeed for data never persisted. A:H - The confirmed failure mode is a kernel NULL pointer dereference oops at address 0x20 inside a writeback kworker (killing the thread while holding writeback/ordered-extent state, wedging the filesystem), and the use-after-free variant likewise leads to panics.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 852eee62d31abd695cd43e1b875d664ed292a8ca to < 22833d89b780ba0f9f66e19c477e7decf638edce (affected · git)852eee62d31abd695cd43e1b875d664ed292a8ca to < d48e1dea3931de64c26717adc2b89743c7ab6594 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.3 (affected)0 to < 6.3 (unaffected · semver)6.11.7 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-476 CWE-476 NULL Pointer Dereference
References
2Provider assertions
2Linux · cna
btrfs: fix error propagation of split bios
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 53375dfcc9025d9a4e019e75c79a322524a20646d82b218bf46912249adb3d49
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record