{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2021-47527",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47527",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-05-24T15:09:38.690Z",
    "updatedAt": "2026-05-11T13:56:23.332Z",
    "importedAt": "2026-10-24T01:56:36.661Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "serial: core: fix transmit-buffer reset and memleak",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nserial: core: fix transmit-buffer reset and memleak\n\nCommit 761ed4a94582 (\"tty: serial_core: convert uart_close to use\ntty_port_close\") converted serial core to use tty_port_close() but\nfailed to notice that the transmit buffer still needs to be freed on\nfinal close.\n\nNot freeing the transmit buffer means that the buffer is no longer\ncleared on next open so that any ioctl() waiting for the buffer to drain\nmight wait indefinitely (e.g. on termios changes) or that stale data can\nend up being transmitted in case tx is restarted.\n\nFurthermore, the buffer of any port that has been opened would leak on\ndriver unbind.\n\nNote that the port lock is held when clearing the buffer pointer due to\nthe ldisc race worked around by commit a5ba1d95e46e (\"uart: fix race\nbetween uart_put_char() and uart_shutdown()\").\n\nAlso note that the tty-port shutdown() callback is not called for\nconsole ports so it is not strictly necessary to free the buffer page\nafter releasing the lock (cf. d72402145ace (\"tty/serial: do not free\ntrasnmit buffer page under port lock\")).",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "761ed4a94582ab291aa24dcbea4e01e8936488c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "011f6c92b5bf6e1fbfdedc8b5232f64c1c493206"
            },
            {
              "version": "761ed4a94582ab291aa24dcbea4e01e8936488c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e74d9663fd57640fc3394abb5c76fa95b9cc2f2e"
            },
            {
              "version": "761ed4a94582ab291aa24dcbea4e01e8936488c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1179b168fa3f3a6aae3bd140000455a0e58457db"
            },
            {
              "version": "761ed4a94582ab291aa24dcbea4e01e8936488c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c5da8aa441053958594f94254592bb41264bdfbf"
            },
            {
              "version": "761ed4a94582ab291aa24dcbea4e01e8936488c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e1722acf4f0d4d67b60f57e08ce16f8b66cd4b8f"
            },
            {
              "version": "761ed4a94582ab291aa24dcbea4e01e8936488c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "64e491c1634b73d3bddc081d08620bdc92ab2c12"
            },
            {
              "version": "761ed4a94582ab291aa24dcbea4e01e8936488c8",
              "status": "affected",
              "versionType": "git",
              "lessThan": "00de977f9e0aa9760d9a79d1e41ff780f74e3424"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.9",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.9"
            },
            {
              "version": "4.9.292",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.9.*"
            },
            {
              "version": "4.14.257",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.220",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.164",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.84",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.7",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "5.16",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}