Acknowledged
Created: Aug 19, 2025
Updated: Jan 11, 2026
Resolved Date: Sep 10, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel
In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]HID: apple: validate feature-report field count to prevent NULL pointer dereference[EOL][EOL]A malicious HID device with quirk APPLE_MAGIC_BACKLIGHT can trigger a NULL[EOL]pointer dereference whilst the power feature-report is toggled and sent to[EOL]the device in apple_magic_backlight_report_set(). The power feature-report[EOL]is expected to have two data fields, but if the descriptor declares one[EOL]field then accessing field[1] and dereferencing it in[EOL]apple_magic_backlight_report_set() becomes invalid[EOL]since field[1] will be NULL.[EOL][EOL]An example of a minimal descriptor which can cause the crash is something[EOL]like the following where the report with ID 3 (power report) only[EOL]references a single 1-byte field. When hid core parses the descriptor it[EOL]will encounter the final feature tag, allocate a hid_report (all members[EOL]of field[] will be zeroed out), create field structure and populate it,[EOL]increasing the maxfield to 1. The subsequent field[1] access and[EOL]dereference causes the crash.[EOL][EOL] Usage Page (Vendor Defined 0xFF00)[EOL] Usage (0x0F)[EOL] Collection (Application)[EOL] Report ID (1)[EOL] Usage (0x01)[EOL] Logical Minimum (0)[EOL] Logical Maximum (255)[EOL] Report Size (8)[EOL] Report Count (1)[EOL] Feature (Data,Var,Abs)[EOL][EOL] Usage (0x02)[EOL] Logical Maximum (32767)[EOL] Report Size (16)[EOL] Report Count (1)[EOL] Feature (Data,Var,Abs)[EOL][EOL] Report ID (3)[EOL] Usage (0x03)[EOL] Logical Minimum (0)[EOL] Logical Maximum (1)[EOL] Report Size (8)[EOL] Report Count (1)[EOL] Feature (Data,Var,Abs)[EOL] End Collection[EOL][EOL]Here we see the KASAN splat when the kernel dereferences the[EOL]NULL pointer and crashes:[EOL][EOL] [ 15.164723] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] SMP KASAN NOPTI[EOL] [ 15.165691] KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037][EOL] [ 15.165691] CPU: 0 UID: 0 PID: 10 Comm: kworker/0:1 Not tainted 6.15.0 #31 PREEMPT(voluntary)[EOL] [ 15.165691] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014[EOL] [ 15.165691] RIP: 0010:apple_magic_backlight_report_set+0xbf/0x210[EOL] [ 15.165691] Call Trace:[EOL] [ 15.165691] <TASK>[EOL] [ 15.165691] apple_probe+0x571/0xa20[EOL] [ 15.165691] hid_device_probe+0x2e2/0x6f0[EOL] [ 15.165691] really_probe+0x1ca/0x5c0[EOL] [ 15.165691] __driver_probe_device+0x24f/0x310[EOL] [ 15.165691] driver_probe_device+0x4a/0xd0[EOL] [ 15.165691] __device_attach_driver+0x169/0x220[EOL] [ 15.165691] bus_for_each_drv+0x118/0x1b0[EOL] [ 15.165691] __device_attach+0x1d5/0x380[EOL] [ 15.165691] device_initial_probe+0x12/0x20[EOL] [ 15.165691] bus_probe_device+0x13d/0x180[EOL] [ 15.165691] device_add+0xd87/0x1510[EOL] [...][EOL][EOL]To fix this issue we should validate the number of fields that the[EOL]backlight and power reports have and if they do not have the required[EOL]number of fields then bail.
CREATE(Triage):(User=lchen-cn) [CVE-2025-38557 (https://nvd.nist.gov/vuln/detail/CVE-2025-38557)