CVE-2023-53687 PUBLISHED

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

Assigner: Linux
Reserved: 07.10.2025 Published: 07.10.2025 Updated: 07.10.2025

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to 933e5b2998bc3a527d15efbf1e97c9e63297aa3c (excl.)
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to 01dd8a43a84616c830782166ba3cceb01ad95363 (excl.)
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to 46574e5a0a2aee41e6ebb979cfe1dbaea8693e16 (excl.)
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to 1962717c4649e026a4252fe6625175affd28a593 (excl.)
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to 9dd8091959bc41fee51d0827276a2b982e84adf0 (excl.)
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to f0bf102ef9b05d7294bd8d506755465f6867d944 (excl.)
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to 1f426293fef1c13742b2a685bf7e363f51f6ee03 (excl.)
  • affected from 5f5a7a5578c5885201cf9c85856f023fe8b81765 to 832e231cff476102e8204a9e7bddfe5c6154a375 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.3 is affected
  • unaffected from 0 to 3.3 (excl.)
  • unaffected from 4.14.322 to 4.14.* (incl.)
  • unaffected from 4.19.291 to 4.19.* (incl.)
  • unaffected from 5.4.251 to 5.4.* (incl.)
  • unaffected from 5.10.188 to 5.10.* (incl.)
  • unaffected from 5.15.121 to 5.15.* (incl.)
  • unaffected from 6.1.40 to 6.1.* (incl.)
  • unaffected from 6.4.5 to 6.4.* (incl.)
  • unaffected from 6.5 to * (incl.)

References