# CVE-2024-26727: linux: In the Linux kernel, the following vulnerability has been resolved:  btrfs: do not ASSERT() if the newly created subv...

CVE-2024-26727 is fixed in 22 products on 1 platform, first by ALAS2023-2024-549, released February 29, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-26727
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0023
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 29, 2024

## Description

In the Linux kernel, the following vulnerability has been resolved:  btrfs: do not ASSERT() if the newly created subvolume already got read  [BUG] There is a syzbot crash, triggered by the ASSERT() during subvolume creation:   assertion failed: !anon_dev, in fs/btrfs/disk-io.c:1319  ------------[ cut here ]------------  kernel BUG at fs/btrfs/disk-io.c:1319!  invalid opcode: 0000 [#1] PREEMPT SMP KASAN  RIP: 0010:btrfs_get_root_ref.part.0+0x9aa/0xa60   <TASK>   btrfs_get_new_fs_root+0xd3/0xf0   create_subvol+0xd02/0x1650   btrfs_mksubvol+0xe95/0x12b0   __btrfs_ioctl_snap_create+0x2f9/0x4f0   btrfs_ioctl_snap_create+0x16b/0x200   btrfs_ioctl+0x35f0/0x5cf0   __x64_sys_ioctl+0x19d/0x210   do_syscall_64+0x3f/0xe0   entry_SYSCALL_64_after_hwframe+0x63/0x6b  ---[ end trace 0000000000000000 ]---  [CAUSE] During create_subvol(), after inserting root item for the newly created subvolume, we would trigger btrfs_get_new_fs_root() to get the btrfs_root of that subvolume.  The idea here is, we have preallocated an anonymous device number for the subvolume, thus we can assign it to the new subvolume.  But there is really nothing preventing things like backref walk to read the new subvolume. If that happens before we call btrfs_get_new_fs_root(), the subvolume would be read out, with a new anonymous device number assigned already.  In that case, we would trigger ASSERT(), as we really expect no one to read out that subvolume (which is not yet accessible from the fs). But things like backref walk is still possible to trigger the read on the subvolume.  Thus our assumption on the ASSERT() is not correct in the first place.  [FIX] Fix it by removing the ASSERT(), and just free the @anon_dev, reset it to 0, and continue.  If the subvolume tree is read out by something else, it should have already get a new anon_dev assigned thus we only need to free the preallocated one.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | bpftool-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-debuginfo-common-aarch64 amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-debuginfo-common-x86_64 amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-devel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-headers amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-libbpf amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-libbpf-devel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-libbpf-static amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-livepatch-6.1.79-99.164 amzn 2023 | 1.0-0.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-modules-extra amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-modules-extra-common amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-tools amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-tools-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | kernel-tools-devel amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.82-1 | [DEBIAN-CVE-2024-26727](https://patchblox.com/security/data/fix/linux/debian-cve-2024-26727.md) | Apr 3, 2024 |
| Linux | linux Debian 13.5 (trixie) | 6.7.7-1 | [DEBIAN-CVE-2024-26727](https://patchblox.com/security/data/fix/linux/debian-cve-2024-26727.md) | Apr 3, 2024 |
| Linux | linux Debian 14 | 6.7.7-1 | [DEBIAN-CVE-2024-26727](https://patchblox.com/security/data/fix/linux/debian-cve-2024-26727.md) | Apr 3, 2024 |
| Linux | perf amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | perf-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | python3-perf amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |
| Linux | python3-perf-debuginfo amzn 2023 | 6.1.79-99.164.amzn2023 | [ALAS2023-2024-549](https://patchblox.com/security/data/fix/linux/alas2023-2024-549.md) | Feb 29, 2024 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
