tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5f5a7a5578c5885201cf9c85856f023fe8b81765 · < f0bf102ef9b05d7294bd8d506755465f6867d944| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's samsung_tty driver can leak clock references while searching for the best clock in s3c24xx_serial_getclk(). The input does not specify how an attacker could trigger the leak or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the samsung_tty driver should check their installations; affected versions are not specified.