tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.322, 4.19.291, 5.10.188, 5.15.121, 5.4.251, 6.1.40, 6.4.5
- CVEs
- CVE-2023-53687
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:37 UTC · Revision 1
Source evidence
tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk
core-osv · Original sourcePublished 7 Oct 2025, 15:21 UTC
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.
osv:CVE-2023-53687
Kernel
Fixed versions: 4.14.322, 4.19.291, 5.4.251, 5.10.188, 5.15.121, 6.1.40, 6.4.5
Complete source record
{
"id": "a9357b644b7db5340db4f23227dbc96ff79a748bd2c4e2ebbbea38d3b8b6529f",
"url": "https://osv.dev/vulnerability/CVE-2023-53687",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk",
"summary": "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.",
"evidence": "osv:CVE-2023-53687",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.322",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.291",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.251",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.188",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.121",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.40",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53687",
"aliases": [
"CVE-2023-53687"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5f5a7a5578c5885201cf9c85856f023fe8b81765"
},
{
"fixed": "933e5b2998bc3a527d15efbf1e97c9e63297aa3c"
},
{
"fixed": "01dd8a43a84616c830782166ba3cceb01ad95363"
},
{
"fixed": "46574e5a0a2aee41e6ebb979cfe1dbaea8693e16"
},
{
"fixed": "1962717c4649e026a4252fe6625175affd28a593"
},
{
"fixed": "9dd8091959bc41fee51d0827276a2b982e84adf0"
},
{
"fixed": "f0bf102ef9b05d7294bd8d506755465f6867d944"
},
{
"fixed": "1f426293fef1c13742b2a685bf7e363f51f6ee03"
},
{
"fixed": "832e231cff476102e8204a9e7bddfe5c6154a375"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53687.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.3.0"
},
{
"fixed": "4.14.322"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.291"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.251"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.188"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.121"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.40"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.4.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53687.json"
}
}
],
"modified": "2026-10-30T02:30:28.148254826Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/01dd8a43a84616c830782166ba3cceb01ad95363",
"https://git.kernel.org/stable/c/1962717c4649e026a4252fe6625175affd28a593",
"https://git.kernel.org/stable/c/1f426293fef1c13742b2a685bf7e363f51f6ee03",
"https://git.kernel.org/stable/c/46574e5a0a2aee41e6ebb979cfe1dbaea8693e16",
"https://git.kernel.org/stable/c/832e231cff476102e8204a9e7bddfe5c6154a375",
"https://git.kernel.org/stable/c/933e5b2998bc3a527d15efbf1e97c9e63297aa3c",
"https://git.kernel.org/stable/c/9dd8091959bc41fee51d0827276a2b982e84adf0",
"https://git.kernel.org/stable/c/f0bf102ef9b05d7294bd8d506755465f6867d944",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53687.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53687",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53687.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53687",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 518186,
"published_at": "2025-10-07T15:21:39.542+00:00"
}