# CVE-2023-53687: tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-10-07T15:21:39.542Z
- Modified: 2026-10-28T19:10:00.193Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk

When the best clk is searched, we iterate over all possible clk.

If we find a better match, the previous one, if any, needs to be freed.
If a better match has already been found, we still need to free the new
one, otherwise it leaks.

(As written by CVE List.)

## Affected

- Linux Linux: from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before 933e5b2998bc3a527d15efbf1e97c9e63297aa3c; from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before 01dd8a43a84616c830782166ba3cceb01ad95363; from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before 46574e5a0a2aee41e6ebb979cfe1dbaea8693e16; from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before 1962717c4649e026a4252fe6625175affd28a593; from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before 9dd8091959bc41fee51d0827276a2b982e84adf0; from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before f0bf102ef9b05d7294bd8d506755465f6867d944; from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before 1f426293fef1c13742b2a685bf7e363f51f6ee03; from 5f5a7a5578c5885201cf9c85856f023fe8b81765 before 832e231cff476102e8204a9e7bddfe5c6154a375; 3.3 (not affected: before 3.3; from 4.14.322 up to 4.14.*; from 4.19.291 up to 4.19.*; from 5.4.251 up to 5.4.*; from 5.10.188 up to 5.10.*; from 5.15.121 up to 5.15.*; from 6.1.40 up to 6.1.*; from 6.4.5 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 3.3 before 4.14.322; from 4.15 before 4.19.291; from 4.20 before 5.4.251; from 5.5 before 5.10.188; from 5.11 before 5.15.121; from 5.16 before 6.1.40; from 6.2 before 6.4.5

## References

- <https://git.kernel.org/stable/c/933e5b2998bc3a527d15efbf1e97c9e63297aa3c> (patch)
- <https://git.kernel.org/stable/c/01dd8a43a84616c830782166ba3cceb01ad95363> (patch)
- <https://git.kernel.org/stable/c/46574e5a0a2aee41e6ebb979cfe1dbaea8693e16> (patch)
- <https://git.kernel.org/stable/c/1962717c4649e026a4252fe6625175affd28a593> (patch)
- <https://git.kernel.org/stable/c/9dd8091959bc41fee51d0827276a2b982e84adf0> (patch)
- <https://git.kernel.org/stable/c/f0bf102ef9b05d7294bd8d506755465f6867d944> (patch)
- <https://git.kernel.org/stable/c/1f426293fef1c13742b2a685bf7e363f51f6ee03> (patch)
- <https://git.kernel.org/stable/c/832e231cff476102e8204a9e7bddfe5c6154a375> (patch)

## Sources

- CVE List: [CVE-2023-53687](https://www.cve.org/CVERecord?id=CVE-2023-53687), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53687](https://nvd.nist.gov/vuln/detail/CVE-2023-53687), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-53687 · Whole record: https://cve.day/CVE-2023-53687.json · Rebuilt by cve.day 2026-11-25T22:58:35.007Z
