CVE-2021-47185
published medium CVSS 3.1 · 4.4tty: tty_buffer: Fix the softlockup issue in flush_to_ldisc
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 0380f643f3a7a61b0845cdc738959c2ad5735d61 · 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < b1ffc16ec05ae40d82b6e373322d62e9d6b54fbc · 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 4c1623651a0936ee197859824cdae6ebbd04d3ed · 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 4f300f47dbcf9c3d4b2ea76c8554c8f360400725 · 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < d491c84df5c469dd9621863b6a770b3428137063 · 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 77e9fed33056f2a88eba9dd4d2d5412f0c7d1f41 · 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 5c34486f04700f1ba04907231dce0cc2705c2d7d · 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 3968ddcf05fb4b9409cd1859feb06a5b0550a1c1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.0 (affected) · 0 to < 3.0 (unaffected · semver) · 4.4.293 through 4.4.* (unaffected · semver) · 4.9.291 through 4.9.* (unaffected · semver) · 4.14.256 through 4.14.* (unaffected · semver) · 4.19.218 through 4.19.* (unaffected · semver) · 5.4.162 through 5.4.* (unaffected · semver) · 5.10.82 through 5.10.* (unaffected · semver) · 5.15.5 through 5.15.* (unaffected · semver) · 5.16 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1727 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2752 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-049 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
Show 101 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-010 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2025-093 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.5.1.rt7.346.el8_10 | ALSA-2024:3627 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.5.1.el8_10 | ALSA-2024:3618 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.5.1.el8_10 | ELSA-2024-3618 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | perfx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: tty: tty_buffer: Fix the softlockup issue in flush_to_ldisc When running ltp testcase(ltp/testcases/kernel/pty/pty04.c) with arm64, there is a soft lockup, which look like this one: Workqueue: events_unbound flush_to_ldisc Call trace: dump_backtrace+0x0/0x1ec show_stack+0x24/0x30 dump_stack+0xd0/0x128 panic+0x15c/0x374 watchdog_timer_fn+0x2b8/0x304 __run_hrtimer+0x88/0x2c0 __hrtimer_run_queues+0xa4/0x120 hrtimer_interrupt+0xfc/0x270 arch_timer_handler_phys+0x40/0x50 handle_percpu_devid_irq+0x94/0x220 __handle_domain_irq+0x88/0xf0 gic_handle_irq+0x84/0xfc el1_irq+0xc8/0x180 slip_unesc+0x80/0x214 [slip] tty_ldisc_receive_buf+0x64/0x80 tty_port_default_receive_buf+0x50/0x90 flush_to_ldisc+0xbc/0x110 process_one_work+0x1d4/0x4b0 worker_thread+0x180/0x430 kthread+0x11c/0x120 In the testcase pty04, The first process call the write syscall to send data to the pty master. At the same time, the workqueue will do the flush_to_ldisc to pop data in a loop until there is no more data left. When the sender and workqueue running in different core, the sender sends data fastly in full time which will result in workqueue doing work in loop for a long time and occuring softlockup in flush_to_ldisc with kernel configured without preempt. So I add need_resched check and cond_resched in the flush_to_ldisc loop to avoid it.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.4 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 0380f643f3a7a61b0845cdc738959c2ad5735d61 (affected · git)81de916f19cf5f1437c0b9ed817364f0f7c81961 to < b1ffc16ec05ae40d82b6e373322d62e9d6b54fbc (affected · git)81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 4c1623651a0936ee197859824cdae6ebbd04d3ed (affected · git)81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 4f300f47dbcf9c3d4b2ea76c8554c8f360400725 (affected · git)81de916f19cf5f1437c0b9ed817364f0f7c81961 to < d491c84df5c469dd9621863b6a770b3428137063 (affected · git)81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 77e9fed33056f2a88eba9dd4d2d5412f0c7d1f41 (affected · git)81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 5c34486f04700f1ba04907231dce0cc2705c2d7d (affected · git)81de916f19cf5f1437c0b9ed817364f0f7c81961 to < 3968ddcf05fb4b9409cd1859feb06a5b0550a1c1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.0 (affected)0 to < 3.0 (unaffected · semver)4.4.293 through 4.4.* (unaffected · semver)4.9.291 through 4.9.* (unaffected · semver)4.14.256 through 4.14.* (unaffected · semver)4.19.218 through 4.19.* (unaffected · semver)5.4.162 through 5.4.* (unaffected · semver)5.10.82 through 5.10.* (unaffected · semver)5.15.5 through 5.15.* (unaffected · semver)5.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
8- https://git.kernel.org/stable/c/0380f643f3a7a61b0845cdc738959c2ad5735d61
- https://git.kernel.org/stable/c/3968ddcf05fb4b9409cd1859feb06a5b0550a1c1
- https://git.kernel.org/stable/c/4c1623651a0936ee197859824cdae6ebbd04d3ed
- https://git.kernel.org/stable/c/4f300f47dbcf9c3d4b2ea76c8554c8f360400725
- https://git.kernel.org/stable/c/5c34486f04700f1ba04907231dce0cc2705c2d7d
- https://git.kernel.org/stable/c/77e9fed33056f2a88eba9dd4d2d5412f0c7d1f41
- https://git.kernel.org/stable/c/b1ffc16ec05ae40d82b6e373322d62e9d6b54fbc
- https://git.kernel.org/stable/c/d491c84df5c469dd9621863b6a770b3428137063
Provider assertions
3Linux · cna
tty: tty_buffer: Fix the softlockup issue in flush_to_ldisc
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e2819f390b064693ad10fbcc62d961cf7cc5af3b0da0195eb97b5fb16d688d8b
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record