CVE-2021-47527
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47527 is a vulnerability in the Linux kernel's serial core component that was discovered in 2021. The issue stems from a bug introduced when the serial core was converted to use tty_port_close() but failed to properly handle the transmit buffer during final close operations (Kernel Git).

Technical details

The vulnerability was introduced by commit 761ed4a94582 which converted serial_core to use tty_port_close() but failed to free the transmit buffer on final close. The issue involves the uart_tty_port_shutdown function in the serial core driver, where the transmit buffer wasn't being properly freed during the shutdown process. The fix involves adding proper buffer handling code within the port lock due to a line discipline race condition that was previously addressed (Kernel Git).

Impact

The vulnerability has two main impacts: 1) Any ioctl() waiting for the buffer to drain might wait indefinitely (particularly during termios changes), and 2) Stale data could potentially be transmitted if tx is restarted. Additionally, the buffer of any port that has been opened would leak on driver unbind, leading to memory leaks (Kernel Git).

Exploitability

The vulnerability requires local access to the system and interaction with the serial port subsystem. It primarily manifests during specific operations involving serial port closure and buffer management (Kernel Git).

Mitigation and workarounds

The issue has been fixed in the Linux kernel through a patch that properly handles the transmit buffer cleanup during port shutdown. The fix includes adding appropriate buffer freeing code within the uart_tty_port_shutdown function, ensuring proper synchronization using spin locks (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-93189HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-aws-7.0
NoYesSep 17, 2026
CVE-2026-93188MEDIUM6.5
  • Linux Kernel logoLinux Kernel
  • linux-aws-7.0
NoYesSep 17, 2026
CVE-2026-93182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-hwe-6.17
NoYesSep 17, 2026
CVE-2026-93181NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-nvidia-6.14
NoNoSep 17, 2026
CVE-2026-93174NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-7.0
NoYesSep 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management