linux: In the Linux kernel, the following vulnerability has been resolved: HID: apple: validate feature-report field count...
CVE-2025-38557 is fixed in 48 products on 1 platform, first by DEBIAN-CVE-2025-38557, released August 19, 2025. It is not reported as exploited. Patch Radar priority: Routine.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| dtb-aarch64 · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-64kb · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-64kb · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-default · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-default · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-default-base · opensuse-leap 16.0 | 6.12.0-160000.6.1.160000.2.4 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-default-base · sles 16.0 | 6.12.0-160000.6.1.160000.2.4 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-docs · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-docs · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-kvmsmall · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-kvmsmall · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-obs-build · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-obs-qa · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-obs-qa · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-rt · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-source · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-source · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-syms · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-syms · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| kernel-uek · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-core · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-core · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-core · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-core · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-devel · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-devel · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-core · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-core · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-deprecated · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-deprecated · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-desktop · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-desktop · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-extra · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-extra · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-extra-netfilter · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-extra-netfilter · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-usb · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-usb · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-wireless · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-debug-modules-wireless · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-devel · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-devel · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-doc · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-doc · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-core · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-core · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-deprecated · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-deprecated · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-desktop · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-desktop · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-extra · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-extra · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-extra-netfilter · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-extra-netfilter · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-usb · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-usb · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-wireless · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-modules-wireless · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-tools · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek-tools · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-core · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-core · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-devel · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-devel · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-core · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-core · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-deprecated · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-deprecated · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-desktop · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-desktop · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-extra · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-extra · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-extra-netfilter · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-extra-netfilter · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-usb · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-usb · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-wireless · ol 10 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-uek64k-modules-wireless · ol 9 | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 | Oct 14, 2025 |
| kernel-zfcpdump · opensuse-leap 16.0 | 6.12.0-160000.6.1 | OPENSUSE-SU-2025:20081-1 | Nov 25, 2025 |
| kernel-zfcpdump · sles 16.0 | 6.12.0-160000.6.1 | SUSE-SU-2025:21139-1 | Nov 25, 2025 |
| linux · Debian 13.5 (trixie) | 6.12.43-1 | DEBIAN-CVE-2025-38557 | Aug 19, 2025 |
| linux · Debian 14 | 6.16.3-1 | DEBIAN-CVE-2025-38557 | Aug 19, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.