linux: In the Linux kernel, the following vulnerability has been resolved: btrfs: fix a NULL pointer dereference when faile...
CVE-2024-49868 is fixed in 63 products on 1 platform, first by DEBIAN-CVE-2024-49868, released October 21, 2024. It is not reported as exploited. Patch Radar priority: Routine.
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix a NULL pointer dereference when failed to start a new trasacntion [BUG] Syzbot reported a NULL pointer dereference with the following crash: FAULT_INJECTION: forcing a failure. start_transaction+0x830/0x1670 fs/btrfs/transaction.c:676 prepare_to_relocate+0x31f/0x4c0 fs/btrfs/relocation.c:3642 relocate_block_group+0x169/0xd20 fs/btrfs/relocation.c:3678 ... BTRFS info (device loop0): balance: ended with status: -12 Oops: general protection fault, probably for non-canonical address 0xdffffc00000000cc: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000660-0x0000000000000667] RIP: 0010:btrfs_update_reloc_root+0x362/0xa80 fs/btrfs/relocation.c:926 Call Trace: <TASK> commit_fs_roots+0x2ee/0x720 fs/btrfs/transaction.c:1496 btrfs_commit_transaction+0xfaf/0x3740 fs/btrfs/transaction.c:2430 del_balance_item fs/btrfs/volumes.c:3678 [inline] reset_balance_state+0x25e/0x3c0 fs/btrfs/volumes.c:3742 btrfs_balance+0xead/0x10c0 fs/btrfs/volumes.c:4574 btrfs_ioctl_balance+0x493/0x7c0 fs/btrfs/ioctl.c:3673 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f [CAUSE] The allocation failure happens at the start_transaction() inside prepare_to_relocate(), and during the error handling we call unset_reloc_control(), which makes fs_info->balance_ctl to be NULL. Then we continue the error path cleanup in btrfs_balance() by calling reset_balance_state() which will call del_balance_item() to fully delete the balance item in the root tree. However during the small window between set_reloc_contrl() and unset_reloc_control(), we can have a subvolume tree update and created a reloc_root for that subvolume. Then we go into the final btrfs_commit_transaction() of del_balance_item(), and into btrfs_update_reloc_root() inside commit_fs_roots(). That function checks if fs_info->reloc_ctl is in the merge_reloc_tree stage, but since fs_info->reloc_ctl is NULL, it results a NULL pointer dereference. [FIX] Just add extra check on fs_info->reloc_ctl inside btrfs_update_reloc_root(), before checking fs_info->reloc_ctl->merge_reloc_tree. That DEAD_RELOC_TREE handling is to prevent further modification to the reloc tree during merge stage, but since there is no reloc_ctl at all, we do not need to bother that.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| bpftool · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| bpftool · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| bpftool · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| bpftool-debuginfo · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| dtb-aarch64 · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-64kb · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-64kb · sles 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-azure · opensuse-leap 15.6 | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 | Dec 13, 2024 |
| kernel-azure · sles 15.6 | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 | Dec 13, 2024 |
| kernel-coco · sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 | Dec 19, 2024 |
| kernel-coco_debug · sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 | Dec 19, 2024 |
| kernel-debug · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-debuginfo · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-debuginfo-common-aarch64 · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-debuginfo-common-x86_64 · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-default · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-default · sles 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-default-base · opensuse-leap 15.6 | 6.4.0-150600.23.30.1.150600.12.12.6 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-default-base · sles 15.6 | 6.4.0-150600.23.30.1.150600.12.12.6 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-devel · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-docs · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-docs · sles 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-headers · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-kvmsmall · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-libbpf · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-libbpf-devel · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-libbpf-static · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-livepatch-6.1.115-126.197 · amzn 2023 | 1.0-0.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-livepatch-SLE15-SP6-RT_Update_6 · sles 15.6 | 1-150600.1.3.1 | SUSE-SU-2024:4314-1 | Dec 13, 2024 |
| kernel-livepatch-SLE15-SP6_Update_6 · sles 15.6 | 1-150600.13.3.5 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-modules-extra · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-modules-extra-common · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-obs-build · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-obs-build · sles 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-obs-qa · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-rt · opensuse-leap 15.6 | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 | Dec 13, 2024 |
| kernel-rt_debug · opensuse-leap 15.6 | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 | Dec 13, 2024 |
| kernel-source · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-source · sles 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-source-azure · opensuse-leap 15.6 | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 | Dec 13, 2024 |
| kernel-source-azure · sles 15.6 | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 | Dec 13, 2024 |
| kernel-source-coco · sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 | Dec 19, 2024 |
| kernel-source-rt · opensuse-leap 15.6 | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 | Dec 13, 2024 |
| kernel-syms · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-syms · sles 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-syms-azure · opensuse-leap 15.6 | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 | Dec 13, 2024 |
| kernel-syms-azure · sles 15.6 | 6.4.0-150600.8.20.1 | SUSE-SU-2024:4316-1 | Dec 13, 2024 |
| kernel-syms-coco · sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | SUSE-SU-2024:4387-1 | Dec 19, 2024 |
| kernel-syms-rt · opensuse-leap 15.6 | 6.4.0-150600.10.20.1 | SUSE-SU-2024:4314-1 | Dec 13, 2024 |
| kernel-tools · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-tools-debuginfo · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-tools-devel · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| kernel-uek · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek · ol 8 | 0:5.4.17-2136.338.4.1.el8uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-container · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-container · ol 8 | 0:5.4.17-2136.338.4.1.el8uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek-container · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-container-debug · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-container-debug · ol 8 | 0:5.4.17-2136.338.4.1.el8uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek-container-debug · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-core · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-core · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug · ol 8 | 0:5.4.17-2136.338.4.1.el8uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek-debug · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-core · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-core · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-devel · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-devel · ol 8 | 0:5.4.17-2136.338.4.1.el8uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek-debug-devel · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-modules · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-modules · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-modules-extra · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-debug-modules-extra · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-devel · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-devel · ol 8 | 0:5.4.17-2136.338.4.1.el8uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek-devel · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-doc · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-doc · ol 8 | 0:5.4.17-2136.338.4.1.el8uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek-doc · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-modules · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-modules · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-modules-extra · ol 8 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-modules-extra · ol 9 | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 | Dec 18, 2024 |
| kernel-uek-tools · ol 8 | 0:5.4.17-2136.338.4.1.el7uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-uek-tools-libs · ol 8 | 0:5.4.17-2136.338.4.1.el7uek | ELSA-2024-12884 | Dec 16, 2024 |
| kernel-zfcpdump · opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| kernel-zfcpdump · sles 15.6 | 6.4.0-150600.23.30.1 | SUSE-SU-2024:4318-1 | Dec 13, 2024 |
| linux · Debian 12.15 (bookworm) | 6.1.115-1 | DEBIAN-CVE-2024-49868 | Oct 21, 2024 |
| linux · Debian 13.5 (trixie) | 6.11.4-1 | DEBIAN-CVE-2024-49868 | Oct 21, 2024 |
| linux · Debian 14 | 6.11.4-1 | DEBIAN-CVE-2024-49868 | Oct 21, 2024 |
| perf · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| perf · ol 8 | 0:5.4.17-2136.338.4.1.el7uek | ELSA-2024-12884 | Dec 16, 2024 |
| perf-debuginfo · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| python-perf · ol 8 | 0:5.4.17-2136.338.4.1.el7uek | ELSA-2024-12884 | Dec 16, 2024 |
| python3-perf · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
| python3-perf-debuginfo · amzn 2023 | 6.1.115-126.197.amzn2023 | ALAS2023-2025-794 | Jan 6, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.