rtc: pcf8563: fix clock provider leak on unbind (Linux Linux)

CVE-2026-90126
Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: rtc: pcf8563: fix clock provider leak on unbind pcf8563_clkout_register_clk() registers the CLKOUT clock provider with of_clk_add_provider(), but nothing ever unwinds it: there is no of_clk_del_provider() call and the driver has no remove callback. Each of_clk_add_provider() allocates a struct of_clk_provider, takes a reference on the OF node and adds an entry to the global of_clk_providers list, none of which is released when the device is unbound. Every bind/unbind (or module reload) therefore leaks a provider structure and an of_node reference. The clock itself is already device-managed (devm_clk_register()); only the provider registration was not. Use devm_of_clk_add_hw_provider() so the provider is removed automatically on unbind. Tie it to the parent i2c device, whose OF node carries the #clock-cells and clock-output-names properties (the RTC class device has no OF node of its own).

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected a39a6405d5f949bc651694028a55d74c514ef1f9 < 2b5622cf4ee218b6f98d31dbf3fbd44b9b6bd675 ; affected a39a6405d5f949bc651694028a55d74c514ef1f9 < 36cb00c33bd83e7ce31b5a9f1f7c70db0cb7776c ; affected a39a6405d5f949bc651694028a55d74c514ef1f9 < 30b7c63af50fe1464e7582a37de1ca4bd030ecc1 ; affected a39a6405d5f949bc651694028a55d74c514ef1f9 < 7afb8db47c4f107bce89cfe5115fb31ba7c94665 ; affected a39a6405d5f949bc651694028a55d74c514ef1f9 < 97edf3fd9a46ea89a167966991c0449cfa07b36f ; affected a39a6405d5f949bc651694028a55d74c514ef1f9 < 08a59c28c2bdbcd655e99526c86a41dc83834283
Linux · Linuxaffected 4.4 ; unaffected 0 < 4.4 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD