Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: clk: hisilicon: hi3559a: Fix an erroneous devm_kfree() 'p_clk' is an array allocated just before the for loop for all clk that need to be registered. It is incremented at each loop iteration. If a clk_register() call fails, 'p_clk' may point to something different from what should be freed. The best we can do, is to avoid this wrong release of memory.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 3f8445f1c746fda180a7f75372ed06b24e9cefe2; affected 6c81966107dc0caa5d2ebedbcebb5f10d865064d before e0b0d1c46a2ce1e46b79d004a7270fdef872e097; affected 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 95d1f1228c1bb54803ae57525b76db60e99b37e4; affected 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 2cc572e0085ebd4b662b74a0f43222bc00df9a00; affected 6c81966107dc0caa5d2ebedbcebb5f10d865064d before d575765b1b62e8bdb00af11caa1aabeb01763d9f; affected 6c81966107dc0caa5d2ebedbcebb5f10d865064d before 64c6a38136b74a2f18c42199830975edd9fbc379 |
| Linux / Linux | affected 5.14; unaffected 0 before 5.14; unaffected 5.15.153 through 5.15.*; unaffected 6.1.83 through 6.1.*; unaffected 6.6.23 through 6.6.*; unaffected 6.7.11 through 6.7.*; unaffected 6.8.2 through 6.8.*; unaffected 6.9 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/3f8445f1c746fda180a7f75372ed06b24e9cefe2
- https://git.kernel.org/stable/c/e0b0d1c46a2ce1e46b79d004a7270fdef872e097
- https://git.kernel.org/stable/c/95d1f1228c1bb54803ae57525b76db60e99b37e4
- https://git.kernel.org/stable/c/2cc572e0085ebd4b662b74a0f43222bc00df9a00
- https://git.kernel.org/stable/c/d575765b1b62e8bdb00af11caa1aabeb01763d9f
- https://git.kernel.org/stable/c/64c6a38136b74a2f18c42199830975edd9fbc379
ADP enrichment
No English description supplied.
No references supplied.
No English description supplied.
- https://git.kernel.org/stable/c/3f8445f1c746fda180a7f75372ed06b24e9cefe2
- https://git.kernel.org/stable/c/e0b0d1c46a2ce1e46b79d004a7270fdef872e097
- https://git.kernel.org/stable/c/95d1f1228c1bb54803ae57525b76db60e99b37e4
- https://git.kernel.org/stable/c/2cc572e0085ebd4b662b74a0f43222bc00df9a00
- https://git.kernel.org/stable/c/d575765b1b62e8bdb00af11caa1aabeb01763d9f
- https://git.kernel.org/stable/c/64c6a38136b74a2f18c42199830975edd9fbc379