CVE-2021-47185
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47185 is a vulnerability in the Linux kernel's TTY subsystem, specifically in the flush_to_ldisc function of the tty_buffer component. The vulnerability was discovered when running LTP (Linux Test Project) testcase pty04 on ARM64 architecture, where a soft lockup condition could occur (Kernel Git).

Technical details

The issue occurs in the flush_to_ldisc function when handling data transfer between a PTY master and its workqueue. When the sender and workqueue are running on different CPU cores, and the sender is continuously sending data at a high rate, the workqueue can enter a loop that processes data without yielding, leading to a soft lockup condition in systems configured without preemption. The vulnerability was fixed by adding scheduling point checks (need_resched) and implementing conditional rescheduling (cond_resched) in the flush_to_ldisc loop (Kernel Git).

Impact

The vulnerability can cause system soft lockups when a process is continuously writing data to a PTY master device while the workqueue is processing the data on a different CPU core. This primarily affects systems running without preemption enabled and can lead to system responsiveness issues or potential denial of service conditions (Kernel Git).

Exploitability

The vulnerability can be triggered through normal system operations when using PTY devices with specific workload patterns. It was initially discovered through the Linux Test Project's pty04 test case, suggesting it can be reliably reproduced under controlled conditions (Kernel Git).

Mitigation and workarounds

The fix has been implemented in the Linux kernel by adding scheduling checks in the flush_to_ldisc loop. The patch adds need_resched() checks and cond_resched() calls to allow other tasks to run when necessary. Users should update to patched kernel versions that include this fix (Red Hat).

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-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 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