nday
CVE-2026-64100

drm/msm: Fix shrinker deadlock

Linux / Linux

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

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

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

race condition
CWE-667(来源:NVD 分析人员)
本地
NVD 分析人员 给出的 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1)中的 AV:L
无需用户交互
NVD 分析人员 给出的 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1)中的 UI:N
Linux kernel
CVE 记录列出的受影响产品:Linux · LinuxNVD 分析人员标为易受攻击的 CPE 名称:o:linux:linux_kernel
操作系统
CVE 记录列出的受影响产品:Linux · LinuxNVD 分析人员标为易受攻击的 CPE 名称:o:linux:linux_kernelnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分

生命周期

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

摘要

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

drm/msm: Fix shrinker deadlock

With PROVE_LOCKING on an Snapdragon X1 and VM reclaim pressure, we see:

======================================================
WARNING: possible circular locking dependency detected
7.0.0-debug+ #43 Tainted: G        W
------------------------------------------------------
kswapd0/82 is trying to acquire lock:
ffff800080ec3870 (reservation_ww_class_acquire){+.+.}-{0:0}, at: msm_gem_shrinker_scan+0x17c/0x400 [msm]

but task is already holding lock:
ffffc31709b263b8 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x88/0x988

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-> #2 (fs_reclaim){+.+.}-{0:0}:
       __lock_acquire+0x4d0/0xad0
       lock_acquire.part.0+0xc4/0x248
       lock_acquire+0x8c/0x248
       fs_reclaim_acquire+0xd0/0xf0
       dma_resv_lockdep+0x224/0x348
       do_one_initcall+0x84/0x5d0
       do_initcalls+0x194/0x1d8
       kernel_init_freeable+0x128/0x180
       kernel_init+0x2c/0x160
       ret_from_fork+0x10/0x20

-> #1 (reservation_ww_class_mutex){+.+.}-{4:4}:
       __lock_acquire+0x4d0/0xad0
       lock_acquire.part.0+0xc4/0x248
       lock_acquire+0x8c/0x248
       dma_resv_lockdep+0x1a8/0x348
       do_one_initcall+0x84/0x5d0
       do_initcalls+0x194/0x1d8
       kernel_init_freeable+0x128/0x180
       kernel_init+0x2c/0x160
       ret_from_fork+0x10/0x20

-> #0 (reservation_ww_class_acquire){+.+.}-{0:0}:
       check_prev_add+0x114/0x790
       validate_chain+0x594/0x6f0
       __lock_acquire+0x4d0/0xad0
       lock_acquire.part.0+0xc4/0x248
       lock_acquire+0x8c/0x248
       drm_gem_lru_scan+0x1ac/0x440
       msm_gem_shrinker_scan+0x17c/0x400 [msm]
       do_shrink_slab+0x150/0x4a0
       shrink_slab+0x144/0x460
       shrink_one+0x9c/0x1b0
       shrink_many+0x27c/0x5c0
       shrink_node+0x344/0x550
       balance_pgdat+0x2c0/0x988
       kswapd+0x11c/0x318
       kthread+0x10c/0x128
       ret_from_fork+0x10/0x20

other info that might help us debug this:
Chain exists of:
  reservation_ww_class_acquire --> reservation_ww_class_mutex --> fs_reclaim
 Possible unsafe locking scenario:
       CPU0                    CPU1
       ----                    ----
  lock(fs_reclaim);
                               lock(reservation_ww_class_mutex);
                               lock(fs_reclaim);
  lock(reservation_ww_class_acquire);

 *** DEADLOCK ***
1 lock held by kswapd0/82:
 #0: ffffc31709b263b8 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0x88/0x988

stack backtrace:
CPU: 4 UID: 0 PID: 82 Comm: kswapd0 Tainted: G        W           7.0.0-debug+ #43 PREEMPT(full)
Tainted: [W]=WARN
Hardware name: LENOVO 21BX0016US/21BX0016US, BIOS N3HET94W (1.66 ) 09/15/2025
Call trace:
 show_stack+0x20/0x40 (C)
 dump_stack_lvl+0x9c/0xd0
 dump_stack+0x18/0x30
 print_circular_bug+0x114/0x120
 check_noncircular+0x178/0x198
 check_prev_add+0x114/0x790
 validate_chain+0x594/0x6f0
 __lock_acquire+0x4d0/0xad0
 lock_acquire.part.0+0xc4/0x248
 lock_acquire+0x8c/0x248
 drm_gem_lru_scan+0x1ac/0x440
 msm_gem_shrinker_scan+0x17c/0x400 [msm]
 do_shrink_slab+0x150/0x4a0
 shrink_slab+0x144/0x460
 shrink_one+0x9c/0x1b0
 shrink_many+0x27c/0x5c0
 shrink_node+0x344/0x550
 balance_pgdat+0x2c0/0x988
 kswapd+0x11c/0x318
 kthread+0x10c/0x128
 ret_from_fork+0x10/0x20

kswapd0 holding fs_reclaim calls the MSM shrinker, which calls dma_resv_lock. This in turn acquires fs_reclaim.

Fix this deadlock by using dma_resv_trylock() instead, dropping the subsequently unused passed wait-wound lock 'ticket'.

Patchwork: https://patchwork.freedesktop.org/patch/723564/ [rob: fixup compile errors, replace lockdep splat with somethin ---truncated---

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

事件记录

+DIS披露

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

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 437314,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-64100",
  "occurred_at": "2026-07-19T15:40:05.53Z",
  "observed_at": "2026-11-13T05:40:01.626611Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2026-07-19T15:40:05.530Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

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

研究员讨论

近 7 天有 0 位研究员提到

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

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

讨论

0 条评论

还没有评论。