fsl/fman: Fix clk reference leak in read_dts_node()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: fsl/fman: Fix clk reference leak in read_dts_node() of_clk_get() returns a clock with its reference count incremented, but read_dts_node() only uses it to read the rate and never calls clk_put(). The clock is not stored anywhere, so the reference cannot be released later either. Release the clock once its rate has been read, which also covers the error path taken when the rate is zero.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in 874fd58b321a9238e47c2a46345444287f2a5781; From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in c2edf376d7804279878b207d93ffe6009c8d3d29; From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in 5c90f99ba74b55ddd8e919224921033cc4077f01; From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in e560bdf62b11dcaa2a018345f76869d89ed43a9e; From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in 9fd6d0861ae2fd44c771d6bc93b29bbc1202fe8e; From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in c2a5e591858629b6c0e284010d2ccdbc22fd0a43; From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in cb52f9f188c3174761ad3b37db9de751e002b52c; From 414fd46e77626f4e1f89ab4be6b876ef91e89dfa · fixed in a644f09b2090ad22a13fbcf9d141084f573108ef
- Linux Linux
4.5
- KernelLinux
From 4.5.0 · fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.112; From 6.13.0 · fixed in 6.18.55; From 6.19.0 · fixed in 7.2.9
References 8
git.kernel.org
- stable/c/874fd58b321a9238e47c2a46345444287f2a5781
- stable/c/c2edf376d7804279878b207d93ffe6009c8d3d29
- stable/c/5c90f99ba74b55ddd8e919224921033cc4077f01
- stable/c/e560bdf62b11dcaa2a018345f76869d89ed43a9e
- stable/c/9fd6d0861ae2fd44c771d6bc93b29bbc1202fe8e
- stable/c/c2a5e591858629b6c0e284010d2ccdbc22fd0a43
- stable/c/cb52f9f188c3174761ad3b37db9de751e002b52c
- stable/c/a644f09b2090ad22a13fbcf9d141084f573108ef