nday
CVE-2026-68167

btrfs: do not try compression for data reloc inodes

Linux / Linux

披露于 。本站尚未获取修复依据,不能据此认为没有补丁。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 产品Linux kernel 产品类型操作系统
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

Linux kernel
CVE 记录列出的受影响产品:Linux · Linux
操作系统
CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
08-10T11:59Z
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

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

btrfs: do not try compression for data reloc inodes

[BUG] There is a syzbot report that the check inside get_new_location() triggered:

BTRFS info (device loop0): found 31 extents, stage: move data extents

BTRFS info (device loop0): leaf 8908800 gen 16 total ptrs 28 free space 1676 owner 18446744073709551607
       item 0 key (256 INODE_ITEM 0) itemoff 3835 itemsize 160
               inode generation 5 transid 0 size 0 nbytes 0
               block group 0 mode 40755 links 1 uid 0 gid 0
               rdev 0 sequence 0 flags 0x0
               atime 1669132761.0
               ctime 1669132761.0
               mtime 1669132761.0
               otime 0.0
       item 1 key (256 INODE_REF 256) itemoff 3823 itemsize 12
               index 0 name_len 2
       item 2 key (258 INODE_ITEM 0) itemoff 3663 itemsize 160
               inode generation 1 transid 16 size 733184 nbytes 106496
               block group 0 mode 100600 links 0 uid 0 gid 0
               rdev 0 sequence 24 flags 0x18
       item 3 key (258 EXTENT_DATA 0) itemoff 3595 itemsize 68
               generation 16 type 0
               inline extent data size 47 ram_bytes 4096 compression 1
[...]
       item 27 key (18446744073709551611 ORPHAN_ITEM 258) itemoff 2376 itemsize 0
BTRFS error (device loop0): unexpected non-zero offset in file extent item for data reloc inode 258 key offset 0 offset 9277520992061368337
------------[ cut here ]------------
btrfs_abort_should_print_stack(__error)

[CAUSE] The above dump tree shows the first file extent item is inlined, which should make no sense for data reloc inodes, as such inodes just represent where the data extents are in the relocation destination chunk.

However the relocation path preallocates space for each block, then dirties them, cluster by cluster. It's possible to have a single block at the beginning of the block group, and no other block in the same cluster.

So relocation will preallocate a file extent for that block and dirty the first block. Then memory pressure forces the data reloc inode to be written back, before any other blocks are dirtied/allocated.

Finally commit 3eaf5f082c4c ("btrfs: extract inlined creation into a dedicated delalloc helper") changed the sequence of delalloc. Before that commit we always tried NOCOW first, so that dirtied block would be written back into the preallocated space, and appear as a regular extent.

But with that commit, we always try inline first, and since compression is forced, we try compressing the first block, and then inline the compressed data, resulting in the above inlined file extent in the data reloc tree.

Then the check in get_new_location() will check the file offset, without checking if the file extent is inlined or not, resulting in the above failure.

[FIX] Do not allow compression for data reloc inodes.

Since data reloc inode sizes are always block aligned, as long as we do not compress, @data_len will always be at least one block, and that will cause can_cow_file_range_inline() to return false, thus no inlined extent will be created.

以上是 CVE 记录(cvelist)中的原文,未经改写。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 Linux。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 439413,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-68167",
  "occurred_at": "2026-08-10T11:59:35.63Z",
  "observed_at": "2026-11-13T05:40:03.742099Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2026-08-10T11:59:35.630Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。