mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()
pl35x_nfc_setup_interface() obtains a reference to the SMC "memclk" with of_clk_get_by_name() and only uses it to read the clock rate. The reference is never released: the function has many early return paths and no clk_put() call anywhere, so the clock reference is leaked.
The hook is invoked repeatedly by the NAND core (nand_reset(), nand_setup_interface() and the NAND_DATA_IFACE_CHECK_ONLY mode probing loops), so the reference count keeps growing.
Release the clock reference with clk_put() as soon as its rate has been read.
| Product | Versions |
|---|---|
| Linux Linux | 08d8c62164a322eb923034acacf25246b775593a to before 799a12d2e99e88e664430e984ef691bb0e3eb2a1 Affected08d8c62164a322eb923034acacf25246b775593a to before 079f2b45d28499cf6e880f2b0dc98be0ae50c117 Affected08d8c62164a322eb923034acacf25246b775593a to before 870f9c05978261fbcc081c48963c3e5cd7ca08d0 Affected08d8c62164a322eb923034acacf25246b775593a to before a96cd52d6d5e1972bb734ed46aa728098aaadea0 Affected08d8c62164a322eb923034acacf25246b775593a to before 02e687e87fcb85e735b636c2bc1e6146eb909e18 Affected08d8c62164a322eb923034acacf25246b775593a to before 72cffa12e5a85cf7022659e526a03a35474fe9c8 Affected08d8c62164a322eb923034acacf25246b775593a to before 1ce45f0e74d60e8279ed380c97047e6c351aee1b Affected |
| Linux Linux | 5.14 Affectedbefore 5.14 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/799a12d2e99e88e664430e984ef691bb0e3eb2a1
- https://git.kernel.org/stable/c/079f2b45d28499cf6e880f2b0dc98be0ae50c117
- https://git.kernel.org/stable/c/870f9c05978261fbcc081c48963c3e5cd7ca08d0
- https://git.kernel.org/stable/c/a96cd52d6d5e1972bb734ed46aa728098aaadea0
- https://git.kernel.org/stable/c/02e687e87fcb85e735b636c2bc1e6146eb909e18
- https://git.kernel.org/stable/c/72cffa12e5a85cf7022659e526a03a35474fe9c8
- https://git.kernel.org/stable/c/1ce45f0e74d60e8279ed380c97047e6c351aee1b
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.