CVE-2026-98143: accel: ethosu: Don't read the U65 rounding mode as a storage mode
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
accel: ethosu: Don't read the U65 rounding mode as a storage mode
Bits 15:14 of NPU_SET_{IFM,OFM}_PRECISION select the activation storage mode on U85 only. On U65 the same field holds the rounding mode, and the command stream parser has read it as a storage mode since the driver was added.
That went unnoticed while unknown values fell through the switch, but now that they are rejected, every U65 command stream that asks for natural rounding (2) fails CMDSTREAM_BO_CREATE with -EINVAL. Mesa emits it for average pooling, concatenation, split, unpack, strided slice, LUT and argmax, which is 72 failures of the Teflon test suite on an i.MX93. Truncating rounding (1) is misread as well: it picks the two-tile address path and computes a bogus feature map size from tile bases the command stream never set.
Read the field as a storage mode only on the hardware where it is one.
The Linux kernel CVE team has assigned CVE-2026-98143 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.2.7 with commit 6b08adbda8ea797849e3654ce12cb3856ce6051a Issue introduced in 6.19 with commit 5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b and fixed in 7.3-rc2 with commit db9deec5a345abc538d081fb221dc0b00a9695bd
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-98143
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/ethosu/ethosu_gem.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/6b08adbda8ea797849e3654ce12cb3856ce6051a https://git.kernel.org/stable/c/db9deec5a345abc538d081fb221dc0b00a9695bd