← Back to CVE Explorer

CVE-2023-53687

Full vulnerability record from the local CVENow database.

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.

Severity
MEDIUM
CVSS score
5.5 (v3.1)
Vulnerability status
Analyzed
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2025-10-07 16:15:53.033000
Last modified
2026-10-28 19:10:00.193000
View original CVE JSON
{
  "id": "CVE-2023-53687",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2025-10-07T16:15:53.033",
  "lastModified": "2026-10-28T19:10:00.193",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ntty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk\n\nWhen the best clk is searched, we iterate over all possible clk.\n\nIf we find a better match, the previous one, if any, needs to be freed.\nIf a better match has already been found, we still need to free the new\none, otherwise it leaks."
    },
    {
      "lang": "es",
      "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ntty: serial: samsung_tty: Corrige una fuga de memoria en s3c24xx_serial_getclk() al iterar clk\n\nCuando se busca el mejor clk, iteramos sobre todos los clk posibles.\n\nSi encontramos una mejor coincidencia, la anterior, si la hay, necesita ser liberada.\nSi ya se ha encontrado una mejor coincidencia, todavía necesitamos liberar la nueva, de lo contrario, se fuga."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/tty/serial/samsung_tty.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "933e5b2998bc3a527d15efbf1e97c9e63297aa3c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "01dd8a43a84616c830782166ba3cceb01ad95363",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "46574e5a0a2aee41e6ebb979cfe1dbaea8693e16",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "1962717c4649e026a4252fe6625175affd28a593",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "9dd8091959bc41fee51d0827276a2b982e84adf0",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "f0bf102ef9b05d7294bd8d506755465f6867d944",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "1f426293fef1c13742b2a685bf7e363f51f6ee03",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5f5a7a5578c5885201cf9c85856f023fe8b81765",
              "lessThan": "832e231cff476102e8204a9e7bddfe5c6154a375",
              "versionType": "git",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/tty/serial/samsung_tty.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "3.3",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "3.3",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "4.14.322",
              "lessThanOrEqual": "4.14.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "4.19.291",
              "lessThanOrEqual": "4.19.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.4.251",
              "lessThanOrEqual": "5.4.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.10.188",
              "lessThanOrEqual": "5.10.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.121",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.40",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.4.5",
              "lessThanOrEqual": "6.4.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.5",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Primary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
          "baseScore": 5.5,
          "baseSeverity": "MEDIUM",
          "attackVector": "LOCAL",
          "attackComplexity": "LOW",
          "privilegesRequired": "LOW",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 1.8,
        "impactScore": 3.6
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Primary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-401"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "3.3",
              "versionEndExcluding": "4.14.322",
              "matchCriteriaId": "1008F58D-2D01-4D23-99B8-77F4C775344E"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "4.15",
              "versionEndExcluding": "4.19.291",
              "matchCriteriaId": "D2D2CA9F-4CC4-4AF5-8C6D-E58415AB782E"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "4.20",
              "versionEndExcluding": "5.4.251",
              "matchCriteriaId": "7FA663C4-CA72-4B5A-8592-7354D978F58E"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "5.5",
              "versionEndExcluding": "5.10.188",
              "matchCriteriaId": "43CAE50A-4A6C-488E-813C-F8DB77C13C8B"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "5.11",
              "versionEndExcluding": "5.15.121",
              "matchCriteriaId": "EC77775B-EC31-4966-966C-1286C02B2A85"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "5.16",
              "versionEndExcluding": "6.1.40",
              "matchCriteriaId": "69315BCC-36D2-45CD-84F8-381EDF8E38F3"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "6.2",
              "versionEndExcluding": "6.4.5",
              "matchCriteriaId": "923F6AEA-C2EF-4B08-B038-69A18F3D41F8"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/01dd8a43a84616c830782166ba3cceb01ad95363",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://git.kernel.org/stable/c/1962717c4649e026a4252fe6625175affd28a593",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://git.kernel.org/stable/c/1f426293fef1c13742b2a685bf7e363f51f6ee03",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://git.kernel.org/stable/c/46574e5a0a2aee41e6ebb979cfe1dbaea8693e16",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://git.kernel.org/stable/c/832e231cff476102e8204a9e7bddfe5c6154a375",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://git.kernel.org/stable/c/933e5b2998bc3a527d15efbf1e97c9e63297aa3c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://git.kernel.org/stable/c/9dd8091959bc41fee51d0827276a2b982e84adf0",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    },
    {
      "url": "https://git.kernel.org/stable/c/f0bf102ef9b05d7294bd8d506755465f6867d944",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "tags": [
        "Patch"
      ]
    }
  ]
}