clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e932900a3279b5dbb6d8f43c7b369003620e137c · < 67d7eebbc424935dec61fb352d1ccae5d16cf429| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe
Smatch reports: drivers/clocksource/timer-cadence-ttc.c:529 ttc_timer_probe() warn: 'timer_baseaddr' from of_iomap() not released on lines: 498,508,516.
timer_baseaddr may have the problem of not being released after use, I replaced it with the devm_of_iomap() function and added the clk_put() function to cleanup the "clk_ce" and "clk_cs".
From the CVE record · Linux
The Linux kernel's Cadence TTC timer probe can fail to release mapped memory and clock references. The input does not describe how an attacker could trigger this, or specify access requirements or user interaction.
Engineers running Linux kernels with the Cadence TTC timer driver should check their versions; affected versions are not specified.