nday
CVE-2024-35957

iommu/vt-d: Fix WARN_ON in iommu probe path

Linux / Linux

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

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

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

本地
ADP CISA-ADP 给出的 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L(CVSS 3.1)中的 AV:L
无需认证
ADP CISA-ADP 给出的 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L(CVSS 3.1)中的 PR:N
无需用户交互
ADP CISA-ADP 给出的 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L(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
5.9 MEDIUM v3.1

生命周期

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

摘要

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

iommu/vt-d: Fix WARN_ON in iommu probe path

Commit 1a75cc710b95 ("iommu/vt-d: Use rbtree to track iommu probed devices") adds all devices probed by the iommu driver in a rbtree indexed by the source ID of each device. It assumes that each device has a unique source ID. This assumption is incorrect and the VT-d spec doesn't state this requirement either.

The reason for using a rbtree to track devices is to look up the device with PCI bus and devfunc in the paths of handling ATS invalidation time out error and the PRI I/O page faults. Both are PCI ATS feature related.

Only track the devices that have PCI ATS capabilities in the rbtree to avoid unnecessary WARN_ON in the iommu probe path. Otherwise, on some platforms below kernel splat will be displayed and the iommu probe results in failure.

WARNING: CPU: 3 PID: 166 at drivers/iommu/intel/iommu.c:158 intel_iommu_probe_device+0x319/0xd90
Call Trace:
 <TASK>
 ? __warn+0x7e/0x180
 ? intel_iommu_probe_device+0x319/0xd90
 ? report_bug+0x1f8/0x200
 ? handle_bug+0x3c/0x70
 ? exc_invalid_op+0x18/0x70
 ? asm_exc_invalid_op+0x1a/0x20
 ? intel_iommu_probe_device+0x319/0xd90
 ? debug_mutex_init+0x37/0x50
 __iommu_probe_device+0xf2/0x4f0
 iommu_probe_device+0x22/0x70
 iommu_bus_notifier+0x1e/0x40
 notifier_call_chain+0x46/0x150
 blocking_notifier_call_chain+0x42/0x60
 bus_notify+0x2f/0x50
 device_add+0x5ed/0x7e0
 platform_device_add+0xf5/0x240
 mfd_add_devices+0x3f9/0x500
 ? preempt_count_add+0x4c/0xa0
 ? up_write+0xa2/0x1b0
 ? __debugfs_create_file+0xe3/0x150
 intel_lpss_probe+0x49f/0x5b0
 ? pci_conf1_write+0xa3/0xf0
 intel_lpss_pci_probe+0xcf/0x110 [intel_lpss_pci]
 pci_device_probe+0x95/0x120
 really_probe+0xd9/0x370
 ? __pfx___driver_attach+0x10/0x10
 __driver_probe_device+0x73/0x150
 driver_probe_device+0x19/0xa0
 __driver_attach+0xb6/0x180
 ? __pfx___driver_attach+0x10/0x10
 bus_for_each_dev+0x77/0xd0
 bus_add_driver+0x114/0x210
 driver_register+0x5b/0x110
 ? __pfx_intel_lpss_pci_driver_init+0x10/0x10 [intel_lpss_pci]
 do_one_initcall+0x57/0x2b0
 ? kmalloc_trace+0x21e/0x280
 ? do_init_module+0x1e/0x210
 do_init_module+0x5f/0x210
 load_module+0x1d37/0x1fc0
 ? init_module_from_file+0x86/0xd0
 init_module_from_file+0x86/0xd0
 idempotent_init_module+0x17c/0x230
 __x64_sys_finit_module+0x56/0xb0
 do_syscall_64+0x6e/0x140
 entry_SYSCALL_64_after_hwframe+0x71/0x79

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

利用条件

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

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

CVSS 3.1 向量,来自 CVE 记录,由 ADP CISA-ADP 补充。

事件记录

+DIS披露

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

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 334192,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2024-35957",
  "occurred_at": "2024-05-20T09:41:49.93Z",
  "observed_at": "2026-11-13T05:38:34.075966Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "adp:CISA-ADP",
      "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
      "version": "3.1",
      "base_score": 5.9,
      "base_severity": "MEDIUM"
    },
    "ssvc": {
      "timestamp": "2024-05-20T14:23:39.677207Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2024-05-20T09:41:49.930Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

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

研究员讨论

近 7 天有 0 位研究员提到

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

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

讨论

0 条评论

还没有评论。