Vulnerability in Kernel: tty_buffer Softlockup Issue in flush_to_ldisc

Kernel Updated 02 Oct 2025

Summary

29/11/2021
N/A
No i
Unrated
Not published

UVI-2021-1002239: tty: tty_buffer: Fix the softlockup issue in flush_to_ldisc. Affects Kernel versions < 4c1623651a0936ee197859824cdae6ebbd04d3ed. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel is a critical component of the Linux operating system that manages the system's resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers. The tty subsystem within the Kernel handles input and output operations for terminal devices. The tty_buffer module is responsible for buffering data before it is sent to the line discipline (ldisc). However, a vulnerability has been identified in the flush_to_ldisc function of the tty_buffer module, which can lead to a softlockup issue. This vulnerability can potentially be exploited by an attacker to cause a denial-of-service (DoS) condition or disrupt system operations.

Vulnerability Detail

The vulnerability arises from a flaw in the flush_to_ldisc function of the tty_buffer module. When flushing data to the line discipline, the function may enter an infinite loop, causing a softlockup. This can occur due to improper handling of certain conditions, leading to a situation where the function fails to exit the loop. An attacker with local access to the system could exploit this vulnerability by sending specially crafted input to a terminal device, triggering the softlockup and causing the system to become unresponsive. The impact of this vulnerability can range from a temporary system freeze to a complete system crash, depending on the severity of the softlockup.

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 temporary workaround, users can disable the affected functionality by unloading the tty_buffer module. This can be achieved by executing the following command as root:

rmmod tty_buffer

However, it is important to note that this workaround will disable the buffering functionality for terminal devices, which may impact the performance and reliability of input and output operations. Therefore, it is recommended to apply the official fix by updating the Kernel as soon as possible.

Conclusion

The vulnerability in the Kernel's tty_buffer module can result in a softlockup issue, potentially leading to a denial-of-service condition or system disruption. It is crucial to update the Linux Kernel to version v4.14.256 or later to mitigate this vulnerability. Users can obtain the updated Kernel from the official Linux Kernel repository. As a temporary workaround, the tty_buffer module can be unloaded, but this may impact the performance and reliability of terminal device operations. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system that manages system resources and facilitates communication between hardware and software. It provides essential functionalities such as process management, memory management, and device drivers.

The tty subsystem within the Kernel handles input and output operations for terminal devices. It provides the interface for interacting with terminals and serial ports.

The tty_buffer module is responsible for buffering data before it is sent to the line discipline (ldisc). It ensures efficient handling of input and output operations for terminal devices.

A softlockup refers to a situation where a system becomes unresponsive or experiences a significant delay due to a process or thread being stuck in an infinite loop or busy-waiting state.

This vulnerability can lead to a softlockup issue, causing the system to become unresponsive or crash. The severity of the impact depends on the severity of the softlockup and the criticality of the affected system.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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