HIGH Introduced in 5.17
acpi pfr_update StackOverflow
CVE-2026-89587
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.8HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: ACPI: pfr_update: fix stack buffer overflow in query_capability() query_capability() copies four ACPI buffer objects returned by the firmware _DSM into fixed-size u8[16] fields in struct pfru_update_cap_info using memcpy with the firmware-supplied length: memcpy(&cap_hdr->code_type, elements[CAP_CODE_TYPE_IDX].buffer.pointer, elements[CAP_CODE_TYPE_IDX].buffer.length); The same pattern repeats for drv_type, platform_id, and oem_id. If the firmware returns buffer.length > 16 for any of these fields, memcpy writes past the destination array. struct pfru_update_cap_info is stack-allocated in pfru_ioctl(). Confirmed with KASAN on 7.2-rc6: three stack-out-of-bounds reports are generated when a DSM returns 64-byte buffers, with writes reaching 44 bytes past the end of cap_hdr's [64, 156) frame window into adjacent stack redzones. Introduce a helper pointer to out_obj->package.elements and use it to validate each buffer length against its destination field size before copying, returning -EINVAL if the firmware supplies an oversized buffer.
02KernelScan AI Analysis
Risk summary
A local user with access to the pfr_update ioctl can trigger a stack buffer overflow when ACPI firmware returns oversized buffer objects. This can lead to kernel memory corruption, privilege escalation, or denial of service.
Vulnerability analysis
The ACPI platform firmware runtime update driver copies data returned by system firmware into fixed-size on-stack buffers without first checking the size. If the firmware provides more than 16 bytes for any of these fields, the driver writes past the end of the buffer and corrupts adjacent stack memory. The fix checks the returned buffer size before each copy and rejects oversized responses. A local user with access to the update device can reach this path through its ioctl interface.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 5.17 | 6.1.188 | d3af83e32756 |
| 6.12 | 5.17 | 6.12.109 | a2151624b550 |
| 6.18 | 5.17 | 6.18.50 | 6d4ed2fd022b |
| 6.6 | 5.17 | 6.6.157 | c5a31b4e7e37 |
| 7.2 | 5.17 | 7.2.4 | 15d2b7f38f95 |
| mainline | 5.17 | 7.3 | ced45be0073a |
| cip/6.1 | 5.17 | 6.1.189-cip61 | d3af83e32756 |
| cip/6.1-rt | 5.17 | 6.1.189-cip61-rt32 | d3af83e32756 |
| cip/6.12 | 5.17 | 6.12.111-cip32 | a2151624b550 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |