CVE-2026-97916: accel/ivpu: Validate firmware log buffer metadata
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
accel/ivpu: Validate firmware log buffer metadata
The tracing log headers parsed by fw_log_print_buffer() reside in DMA-shared BOs that the NPU firmware can write to.
fw_log_from_bo() validated log->header_size and log->size, but fw_log_print_buffer() re-read those same fields from shared memory afterwards, allowing a TOCTOU where firmware changes them between the check and the use, and making the host dereference out-of-bounds addresses while printing logs.
Snapshot the validated values once with READ_ONCE() and pass them down explicitly in a new struct ivpu_fw_log_desc instead of re-reading them from the shared struct.
The Linux kernel CVE team has assigned CVE-2026-97916 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit d4e4257afa6ed5205eda993180401fc2c20e4b60 and fixed in 6.12.111 with commit 8ec3d6972f1440fae6c8dadd1859892775208759 Issue introduced in 6.6 with commit d4e4257afa6ed5205eda993180401fc2c20e4b60 and fixed in 6.18.53 with commit 40868f80a89199630b03d4457876f9a1feba0660 Issue introduced in 6.6 with commit d4e4257afa6ed5205eda993180401fc2c20e4b60 and fixed in 7.2.7 with commit b1555f63ee1a680f280bc18e8dac416f250e2ec3 Issue introduced in 6.6 with commit d4e4257afa6ed5205eda993180401fc2c20e4b60 and fixed in 7.3-rc3 with commit 0724afc55c77c36c7feb9a7264b02aa7593c5c2d
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-97916
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/accel/ivpu/ivpu_fw_log.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8ec3d6972f1440fae6c8dadd1859892775208759 https://git.kernel.org/stable/c/40868f80a89199630b03d4457876f9a1feba0660 https://git.kernel.org/stable/c/b1555f63ee1a680f280bc18e8dac416f250e2ec3 https://git.kernel.org/stable/c/0724afc55c77c36c7feb9a7264b02aa7593c5c2d