5.5

CVE-2024-26727: btrfs: do not ASSERT() if the newly created subvolume already got read

Analyzed
AliasesUBUNTU-CVE-2024-26727DEBIAN-CVE-2024-26727
Published 03-04-2024Last modified 23-05-2026

Vulnerability summary

CVE-2024-26727 is a medium (CVSS 5.5) Reachable Assertion vulnerability in debian debian_linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 13.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.23%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 5

Timeline

  1. 03-04-2024
    PublishedVulnerability first disclosed.
  2. 23-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.23%

Chance of exploitation in the next 30 days

Percentile

14%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.23% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu104 products
  • linux< 5.15.0-102.112
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 5.15.0-1057.63
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Debian2 products
Linux2 products
  • linux≥ 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788, < 3f5d47eb163bceb1b9e613c9003bae5fefc0046f | ≥ 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788, < e31546b0f34af21738c4ceac47d662c00ee6382f | ≥ 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788, < 66b317a2fc45b2ef66527ee3f8fa08fb5beab88d | ≥ 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788, < 833775656d447c545133a744a0ed1e189ce61430 | ≥ 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788, < 5a172344bfdabb46458e03708735d7b1a918c468 | ≥ 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788, < e03ee2fe873eb68c1f9ba5112fee70303ebf9dfb | 917d608fe375041eb7f29befa6a6d7fd3cf32dde | ≥ 5.8.3, < 5.9 | 5.9
  • linux_kernel≥ 5.9, < 5.10.210 | ≥ 5.11, < 5.15.149 | ≥ 5.16, < 6.1.79 | ≥ 6.2, < 6.6.18 | ≥ 6.7, < 6.7.6 | 6.8:rc1 | 6.8:rc2 | 6.8:rc3

3 vendors · 108 products

References

11 links
Show all 11 references