Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisory

Linux Kernel Serial Core Flaw Enables UART Buffer Stalls and Memory Leaks

Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 24, 2024

Linux Kernel Serial Core Flaw Enables UART Buffer Stalls and Memory Leaks

CVE-2021-47527 affects the Linux kernel serial core (drivers/tty/serial/serial_core.c) because a UART transmit buffer was not freed and reset when a port was finally closed after conversion to tty_port_close(). A local low-privileged user could subsequently cause operations waiting for the buffer to drain to hang indefinitely, transmit stale buffered data after a port restart, or leak memory if an open serial-port driver is unbound. Red Hat rates the uncontrolled-resource-consumption issue as CVSS 5.5, with availability impact as the primary risk.

The flaw was introduced in Linux kernel 4.9 and fixed upstream in versions 4.9.292, 4.14.257, 4.19.220, 5.4.164, 5.10.84, 5.15.7, and 5.16. Red Hat shipped fixes for affected RHEL 8 kernel and kernel-rt packages in advisories RHSA-2024:7000 and RHSA-2024:7001, and later addressed RHEL 9.4 Extended Update Support; RHEL 9 kernel and kernel-rt packages remained listed as affected in the referenced Red Hat status.

Why it matters

Impact assessment

CVE-2021-47527 creates a local denial-of-service and resource-leak condition on Linux hosts using UART/serial ports. It is most relevant to embedded systems, industrial control/OT deployments, network appliances, servers with console serial interfaces, and multi-user Linux systems where low-privileged users can access serial devices.

  • Severity: CVSS 3.1 5.5 (Low), with high availability impact; confidentiality and integrity are scored as none.
  • A local low-privileged user can cause serial-related ioctl operations to block indefinitely, including operations associated with termios changes.
  • Repeated serial-port use and driver unbinding can leak transmit-buffer memory, potentially degrading host stability over time.
  • An uncleared buffer can transmit stale serial data after a port is reopened and transmission restarts. This can affect device communications but is not scored as an integrity impact by Red Hat/NVD.
  • Exposure is limited to kernels containing the affected serial-core code and systems where UART ports or serial drivers are in use. No exploitation in the wild is reported in the supplied references.
  • Red Hat lists RHEL 9 kernel and kernel-rt as affected in the referenced status; validate current package and advisory status rather than relying on that historical listing alone.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Sep 24, 2024
  1. Reported Sep 24, 20242y ago

    Red Hat fixes RHEL 9.4 EUS kernel

    Red Hat released RHSA-2025:13135 to address CVE-2021-47527 in the Red Hat Enterprise Linux 9.4 Extended Update Support kernel.

    2283424 - (CVE-2021-47527) CVE-2021-47527 kernel: serial: core: fix transmit-buffer reset and memleak
  2. Reported Sep 24, 20242y ago

    Upstream stable kernel releases fix serial-core flaw

    The issue was fixed in stable Linux kernel versions 4.9.292, 4.14.257, 4.19.220, 5.4.164, 5.10.84, 5.15.7, and 5.16. The fix clears the transmit-buffer pointer while holding the port lock to address a line-discipline race.

    2283424 - (CVE-2021-47527) CVE-2021-47527 kernel: serial: core: fix transmit-buffer reset and memleak
  3. Reported Sep 24, 20242y ago

    Linux kernel CVE team assigns CVE-2021-47527

    The Linux kernel CVE team assigned CVE-2021-47527 to the serial-core transmit-buffer reset and memory-leak issue affecting drivers/tty/serial/serial_core.c.

    2283424 - (CVE-2021-47527) CVE-2021-47527 kernel: serial: core: fix transmit-buffer reset and memleak
  4. Sep 24, 20242y ago

    Red Hat releases RHEL 8 kernel and kernel-rt fixes

    Red Hat released RHSA-2024:7000 for the RHEL 8 kernel and RHSA-2024:7001 for the RHEL 8 kernel-rt package, addressing CVE-2021-47527.

    2283424 - (CVE-2021-47527) CVE-2021-47527 kernel: serial: core: fix transmit-buffer reset and memleak
  5. Reported May 24, 20243y ago

    Serial-core transmit-buffer flaw introduced in Linux 4.9

    A change converting uart_close() to use tty_port_close() in Linux kernel 4.9 failed to free the UART transmit buffer on final port close, creating the serial-core flaw later tracked as CVE-2021-47527.

    CVE-2021-47527: serial: core: fix transmit-buffer reset and memleak
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.