
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."