Vulnerability in Kernel: Staging: Greybus: UART: Fix TTY Use After Free

Kernel Updated 02 Oct 2025

Summary

19/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001767: staging: greybus: uart: fix tty use after free. Affects Kernel versions >= a18e15175708d39abbe9746ddc3479466b7800c3, < 9872ff6fdce8b229f01993b611b5d1719cb70ff1. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a critical component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The Staging subsystem in the Kernel is responsible for hosting experimental or incomplete drivers that are not yet ready for mainstream integration. Greybus is one such driver framework that enables communication between various subsystems in the system. The UART (Universal Asynchronous Receiver-Transmitter) driver within the Greybus staging subsystem handles serial communication. However, a vulnerability has been identified in this driver that can lead to a use-after-free condition in the TTY (teletypewriter) subsystem.

Vulnerability Detail

The vulnerability in the Greybus UART driver allows an attacker to exploit a use-after-free condition in the TTY subsystem. This occurs when the driver continues to reference a TTY object after it has been freed from memory. By manipulating this vulnerability, an attacker may be able to execute arbitrary code or cause a denial-of-service condition, potentially compromising the integrity and availability of the system. The vulnerability was introduced in version 4.9 of the Linux Kernel and has been fixed in version 5.14.9.

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

As a workaround, users can disable or unload the Greybus UART driver if it is not essential for their system's operation. This can be done by executing the following commands:

modprobe -r greybus_uart

Conclusion

The vulnerability in the Greybus UART driver of the Linux Kernel can lead to a use-after-free condition in the TTY subsystem, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition. It is crucial to update the Kernel to version 5.14.9 or later to mitigate this vulnerability. Alternatively, users can disable or unload the Greybus UART driver if it is not necessary for their system's operation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition, compromising the integrity and availability of the system.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the Vulert Playground will analyze it for any open-source vulnerabilities, including this one.

Yes, the vulnerability has been fixed in version 5.14.9 of the Linux Kernel. It is recommended to update to this version or a later one to mitigate the vulnerability.

Yes, as a temporary measure, you can disable or unload the Greybus UART driver if it is not necessary for your system's operation. Refer to the 'workaround' section for instructions on how to do this.

You can find more information about this vulnerability, including the specific commits that introduced and fixed it, in the Open Source Vulnerability Database (OSV) entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001767.json

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback