Linux: nfc: trf7970a: power down on startup RX gain failure
What fixes it
- 6ef70d790425e76b42c69e416ee78c62bdc37d00LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 8
- Linuxaffected: 5d69351820eab6be1d298af21aedd18be5e5a11a before cc444e4ad43461374dd128573eccb8979d2adb4cCVE List
- Linuxaffected: 5d69351820eab6be1d298af21aedd18be5e5a11a before 6ef70d790425e76b42c69e416ee78c62bdc37d00CVE List
- Linuxaffected: 5d69351820eab6be1d298af21aedd18be5e5a11a before d2acbde7e67df44efa8f0963462d1192e7694ffcCVE List
- Linuxaffected: 6.17CVE List
- Linuxunaffected: all versions before 6.17CVE List
- Linuxunaffected: 6.18.55 through 6.18.*CVE List
- Linuxunaffected: 7.2.9 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List