nday
CVE-2026-99429

ocfs2: pin refcount trees before dropping the lookup lock

Linux / Linux

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

标签 攻击途径本地无需用户交互 产品Linux kernel 产品类型操作系统
这些标签的依据

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

本地
编号分配方 Linux 给出的 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1)中的 AV:L
无需用户交互
编号分配方 Linux 给出的 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1)中的 UI:N
Linux kernel
CVE 记录列出的受影响产品:Linux · Linux
操作系统
CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
7.8 HIGH v3.1

生命周期

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

摘要

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

ocfs2: pin refcount trees before dropping the lookup lock

A refcount tree returned to ocfs2_lock_refcount_tree() must stay alive until that caller releases its operation reference. However, ocfs2_get_refcount_tree() returns the cached pointer after dropping osb_lock, and the caller only takes its kref afterwards. The registry reference does not protect this gap from concurrent removal.

This can happen when another node frees a refcount root and reuses its block with a different generation while this mount retains the old cached tree. Two local operations on different inodes sharing the new root, such as data CoW and an external xattr update, can then look up the same stale tree. Their inode locks are independent, and both the REFCOUNT DLM lock and rf_sem are acquired after the first operation reference.

The following ordering is possible, with no other operation references:

Data CoW                         Xattr update
--------                         ------------

Look up the old tree under osb_lock, then drop osb_lock Look up the same tree and take a kref Acquire the tree locks and read the new on-disk generation Erase the old tree under osb_lock Unlock and drop the operation kref Drop the registry kref, freeing tree

Take a kref through the
  freed tree pointer

The final kref_get() accesses freed rf_getcnt storage, and subsequent accesses in ocfs2_lock_refcount_tree() also use the freed allocation.

Take the operation reference in ocfs2_get_refcount_tree() before releasing osb_lock, including when an insertion loses to another lookup. Removal must acquire the same lock, so it cannot drop the registry reference before the lookup has pinned the tree. Keep the existing unlock and error path puts. The two callers that already hold the refcount tree lock keep their borrowed lookup behavior and do not acquire an extra reference.

KASAN report as below:

BUG: KASAN: slab-use-after-free in ocfs2_lock_refcount_tree+0x94a/0x9b0
Read of size 4 at addr ffff888117212820 by task python3/497

[Kernel and hardware identification omitted.]

Call Trace:
 <TASK>
 dump_stack_lvl+0x93/0xd0
 print_report+0xce/0x630
 ? ocfs2_lock_refcount_tree+0x94a/0x9b0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __virt_addr_valid+0x20e/0x420
 ? ocfs2_lock_refcount_tree+0x94a/0x9b0
 kasan_report+0xe0/0x110
 ? ocfs2_lock_refcount_tree+0x94a/0x9b0
 ocfs2_lock_refcount_tree+0x94a/0x9b0
 ? __pfx_ocfs2_lock_refcount_tree+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? ocfs2_refcount_cow+0x3b6/0xd90
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __kmalloc_cache_noprof+0x28d/0x610
 ? ocfs2_refcount_cow+0x3b6/0xd90
 ocfs2_refcount_cow+0x410/0xd90
 ? __pfx_ocfs2_refcount_cow+0x10/0x10
 ? __pfx___might_resched+0x10/0x10
 ? down_write+0x11a/0x1f0
 ? __pfx_down_write+0x10/0x10
 ? ocfs2_inode_unlock+0x1a9/0x260
 ? __pfx_ocfs2_inode_unlock+0x10/0x10
 ? ocfs2_file_write_iter+0x1413/0x1d30
 ocfs2_file_write_iter+0x157b/0x1d30
 ? __pfx_ocfs2_file_write_iter+0x10/0x10
 ? lock_acquire+0x190/0x300
 ? __x64_sys_pwrite64+0x1b7/0x220
 ? __pfx___might_resched+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? security_file_permission+0x26/0x80
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_is_held_type+0x8f/0x100
 vfs_write+0x639/0x1010
 ? __pfx_ocfs2_file_write_iter+0x10/0x10
 ? lock_vma_under_rcu+0x154/0x4a0
 ? __pfx_vfs_write+0x10/0x10
 ? lock_release+0x121/0x290
 ? srso_alias_return_thunk+0x5/0xfbef5
 __x64_sys_pwrite64+0x1b7/0x220
 ? __pfx___x64_sys_pwrite64+0x10/0x10
 ? irqentry_exit+0xbe/0x820

---truncated---

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

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:L
本地:需要本地或 SSH 会话,或诱使用户在本机上操作
攻击复杂度 AC:L
低:不依赖特殊条件,攻击者可预期重复成功
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS 3.1 向量,来自 CVE 记录,由 CNA Linux 评定。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 Linux。CVSS 7.8,高危。

来源 cvelist · 本站 实时观测 · 原始记录
{
  "id": 484745,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-99429",
  "occurred_at": "2026-11-19T14:40:51.812Z",
  "observed_at": "2026-11-19T15:00:30.436713Z",
  "is_backfill": false,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "version": "3.1",
      "base_score": 7.8,
      "base_severity": "HIGH"
    },
    "state": "PUBLISHED",
    "date_published": "2026-11-19T14:40:51.812Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

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

研究员讨论

近 7 天有 0 位研究员提到

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

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

讨论

0 条评论

还没有评论。