nfc: trf7970a: power down on startup RX gain failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.55, 7.2.9
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 5d69351820eab6be1d298af21aedd18be5e5a11a · fixed in cc444e4ad43461374dd128573eccb8979d2adb4c; From 5d69351820eab6be1d298af21aedd18be5e5a11a · fixed in 6ef70d790425e76b42c69e416ee78c62bdc37d00; From 5d69351820eab6be1d298af21aedd18be5e5a11a · fixed in d2acbde7e67df44efa8f0963462d1192e7694ffc
- Linux Linux
6.17
- KernelLinux
From 6.17.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9