CVE-2026-98480: nfc: trf7970a: power down on startup RX gain failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nfc: trf7970a: power down on startup RX gain failure
trf7970a_startup() powers up the device before applying the optional RX gain reduction. If the register read or write fails, it returns without undoing that power-up. Probe's unwind only drops the separate regulator references acquired by probe, leaving the additional VIN enable from startup unbalanced. The system resume caller also has no power-down on this error.
Call trf7970a_power_down() before returning the RX gain error to deassert the enable GPIOs, release the startup VIN reference and restore the powered-off state. Runtime PM has not been enabled yet, so the full shutdown helper is not appropriate here. Preserve the original SPI error.
This issue was identified during our ongoing static-analysis research while reviewing kernel code.
The Linux kernel CVE team has assigned CVE-2026-98480 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit 5d69351820eab6be1d298af21aedd18be5e5a11a and fixed in 6.18.55 with commit cc444e4ad43461374dd128573eccb8979d2adb4c Issue introduced in 6.17 with commit 5d69351820eab6be1d298af21aedd18be5e5a11a and fixed in 7.2.9 with commit 6ef70d790425e76b42c69e416ee78c62bdc37d00 Issue introduced in 6.17 with commit 5d69351820eab6be1d298af21aedd18be5e5a11a and fixed in 7.3-rc5 with commit d2acbde7e67df44efa8f0963462d1192e7694ffc
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-98480
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/nfc/trf7970a.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/cc444e4ad43461374dd128573eccb8979d2adb4c https://git.kernel.org/stable/c/6ef70d790425e76b42c69e416ee78c62bdc37d00 https://git.kernel.org/stable/c/d2acbde7e67df44efa8f0963462d1192e7694ffc