CVE-2026-139429

mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A privilege to the Linux kernel MTD rawnand driver allows a leak of a clock reference acquired by pl35x_nfc_setup_interface(). The function obtains a reference to the SMC "memclk" but never releases it. As the driver is called repeatedly by the NAND core during reset and probing, the reference count grows unbounded. Over time this can exhaust kernel resources and may trigger a kernel panic or degrade system performance, effectively denying service.

Affected Systems

The vulnerability affects the Linux kernel’s MTD rawnand PL353 driver in any kernel version that included the unpatched function. Any Linux system running this driver prior to the new commit is susceptible, regardless of vendor distribution.

Risk and Exploitability

Explicit CVSS or EPSS data are not provided, and the vulnerability is not listed in CISA’s KEV catalog. The flaw is a local resource leak that requires repeated calls to the NAND probing routines to reach impact. An attacker could trigger the leak by interacting with NAND devices or by inducing reset loops, but remote exploitation would be unlikely without additional privileges. The potential impact is primarily availability rather than confidentiality or integrity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the commit applying clk_put() to pl35x_nfc_setup_interface()
  • If updating is not immediately possible, reboot the system to clear lingering clock references as a temporary mitigation
  • Verify that the kernel configuration does not enable unnecessary NAND device probing to reduce the repeated invocation of the vulnerable function

Generated by OpenCVE AI on November 30, 2026 at 22:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-823
Type Values Removed Values Added
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.
Title mtd: rawnand: pl353: fix clk reference leak in pl35x_nfc_setup_interface()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-823

    Use of Out-of-range Pointer Offset

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM