Memory Leak in Error Handling Path in tty: serial: 8250: serial_cs
Summary
GSD-2021-1001451: tty: serial: 8250: serial_cs: Fix a memory leak in error handling path. Affects Kernel versions < 331f5923fce4f45b8170ccf06c529e8eb28f37bc. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The tty: serial: 8250: serial_cs package is a component of the Linux Kernel. It provides support for serial communication over the 8250 UART controller. The package is responsible for managing serial devices and their associated drivers. The vulnerability in this package relates to a memory leak in the error handling path.
Vulnerability Detail
The vulnerability in tty: serial: 8250: serial_cs is caused by a memory leak in the error handling path. When an error occurs during the initialization of a serial device, memory allocated for the device is not properly freed, leading to a memory leak. This can result in a gradual depletion of system memory, potentially causing performance degradation or even system instability. The vulnerability has been fixed in Linux Kernel version v4.9.276 by commit 331f5923fce4f45b8170ccf06c529e8eb28f37bc.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the vulnerability in tty: serial: 8250: serial_cs can lead to a memory leak, potentially causing performance degradation or system instability. It is recommended to update the Linux Kernel to version v4.9.276 or later to fix the vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a memory leak, potentially causing performance degradation or system instability.
You can use Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.
There is no known exploit for this vulnerability at the moment. However, it is still recommended to apply the fix to prevent any potential exploitation in the future.
It is not recommended to manually patch the vulnerability without updating the entire Linux Kernel. The fix provided in the updated kernel version includes necessary changes to address the memory leak issue effectively.
You can refer to the commit 331f5923fce4f45b8170ccf06c529e8eb28f37bc in the Linux Kernel repository for more information about the fix. The vulnerability details are also available in the GSD-2021-1001451.json file in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001451.json).
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.