nday
CVE-2025-38557

HID: apple: validate feature-report field count to prevent NULL pointer dereference

Linux / Linux

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

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

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

NULL pointer dereference
CWE-476(来源: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披露
2025-08-19T17:02Z
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

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

HID: apple: validate feature-report field count to prevent NULL pointer dereference

A malicious HID device with quirk APPLE_MAGIC_BACKLIGHT can trigger a NULL pointer dereference whilst the power feature-report is toggled and sent to the device in apple_magic_backlight_report_set(). The power feature-report is expected to have two data fields, but if the descriptor declares one field then accessing field[1] and dereferencing it in apple_magic_backlight_report_set() becomes invalid since field[1] will be NULL.

An example of a minimal descriptor which can cause the crash is something like the following where the report with ID 3 (power report) only references a single 1-byte field. When hid core parses the descriptor it will encounter the final feature tag, allocate a hid_report (all members of field[] will be zeroed out), create field structure and populate it, increasing the maxfield to 1. The subsequent field[1] access and dereference causes the crash.

Usage Page (Vendor Defined 0xFF00)
Usage (0x0F)
Collection (Application)
  Report ID (1)
  Usage (0x01)
  Logical Minimum (0)
  Logical Maximum (255)
  Report Size (8)
  Report Count (1)
  Feature (Data,Var,Abs)

  Usage (0x02)
  Logical Maximum (32767)
  Report Size (16)
  Report Count (1)
  Feature (Data,Var,Abs)

  Report ID (3)
  Usage (0x03)
  Logical Minimum (0)
  Logical Maximum (1)
  Report Size (8)
  Report Count (1)
  Feature (Data,Var,Abs)
End Collection

Here we see the KASAN splat when the kernel dereferences the NULL pointer and crashes:

[   15.164723] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] SMP KASAN NOPTI
[   15.165691] KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
[   15.165691] CPU: 0 UID: 0 PID: 10 Comm: kworker/0:1 Not tainted 6.15.0 #31 PREEMPT(voluntary)
[   15.165691] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[   15.165691] RIP: 0010:apple_magic_backlight_report_set+0xbf/0x210
[   15.165691] Call Trace:
[   15.165691]  <TASK>
[   15.165691]  apple_probe+0x571/0xa20
[   15.165691]  hid_device_probe+0x2e2/0x6f0
[   15.165691]  really_probe+0x1ca/0x5c0
[   15.165691]  __driver_probe_device+0x24f/0x310
[   15.165691]  driver_probe_device+0x4a/0xd0
[   15.165691]  __device_attach_driver+0x169/0x220
[   15.165691]  bus_for_each_drv+0x118/0x1b0
[   15.165691]  __device_attach+0x1d5/0x380
[   15.165691]  device_initial_probe+0x12/0x20
[   15.165691]  bus_probe_device+0x13d/0x180
[   15.165691]  device_add+0xd87/0x1510
[...]

To fix this issue we should validate the number of fields that the backlight and power reports have and if they do not have the required number of fields then bail.

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

事件记录

+DIS披露

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

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 3268,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2025-38557",
  "occurred_at": "2025-08-19T17:02:35.641Z",
  "observed_at": "2026-11-12T14:10:31.286634Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "ssvc": {
      "timestamp": "2026-11-05T21:03:51.547758Z",
      "automatable": "no",
      "exploitation": "none",
      "technical_impact": "partial"
    },
    "state": "PUBLISHED",
    "date_published": "2025-08-19T17:02:35.641Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

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

研究员讨论

近 7 天有 0 位研究员提到

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

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

讨论

0 条评论

还没有评论。