Linux Kernel Serial Core Flaw Enables UART Buffer Stalls and Memory Leaks
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 24, 2024

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.


