CVE-2025-21820
tty: xilinx_uartps: split sysrq handling
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < e22a97700901ba5e8bf8db68056a0d50f9440cae; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < de5bd24197bd9ee37ec1e379a3d882bbd15c5065; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 9b88a7c4584ba67267a051069b8abe44fc9595b2; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 4410dba9807a17a93f649a9f5870ceaf30a675a3; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < b06f388994500297bb91be60ffaf6825ecfd2afe
- Anyone running Linux 4.6
Vulnerability facts
- Affected
- Linux >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < e22a97700901ba5e8bf8db68056a0d50f9440cae; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < de5bd24197bd9ee37ec1e379a3d882bbd15c5065; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 9b88a7c4584ba67267a051069b8abe44fc9595b2; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 4410dba9807a17a93f649a9f5870ceaf30a675a3; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < b06f388994500297bb91be60ffaf6825ecfd2afe; Linux 4.6
- Fixed in
- Linux 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c, Linux 9b88a7c4584ba67267a051069b8abe44fc9595b2, Linux 4410dba9807a17a93f649a9f5870ceaf30a675a3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-667
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: tty: xilinx_uartps: split sysrq handling lockdep detects the following circular locking dependency: CPU 0 CPU 1 ========================== ============================ cdns_uart_isr() printk() uart_port_lock(port) console_lock() cdns_uart_console_write() if (!port->sysrq) uart_port_lock(port) uart_handle_break() port->sysrq = ... uart_handle_sysrq_char() printk() console_lock() The fixed commit attempts to avoid this situation by only taking the port lock in cdns_uart_console_write if port->sysrq unset. However, if (as shown above) cdns_uart_console_write runs before port->sysrq is set, then it will try to take the port lock anyway. This may result in a deadlock. Fix this by splitting sysrq handling into two parts. We use the prepare helper under the port lock and defer handling until we release the lock.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < e22a97700901ba5e8bf8db68056a0d50f9440cae; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < de5bd24197bd9ee37ec1e379a3d882bbd15c5065; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 9b88a7c4584ba67267a051069b8abe44fc9595b2; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 4410dba9807a17a93f649a9f5870ceaf30a675a3; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < b06f388994500297bb91be60ffaf6825ecfd2afe | — | cvelist |
| Linux | 4.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-21820. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-21820.md Affected: Linux >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < e22a97700901ba5e8bf8db68056a0d50f9440cae; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < de5bd24197bd9ee37ec1e379a3d882bbd15c5065; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c; >= 74ea66d4ca061a3cd4c0e92… Fixed in: Linux 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c, Linux 9b88a7c4584ba67267a051069b8abe44fc9595b2, Linux 4410dba9807a17a93f649a9f5870ceaf30a675a3 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/de5bd24197bd9ee37ec1e379a3d882bbd15c5065
- https://git.kernel.org/stable/c/8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c
- https://git.kernel.org/stable/c/9b88a7c4584ba67267a051069b8abe44fc9595b2
- https://git.kernel.org/stable/c/4410dba9807a17a93f649a9f5870ceaf30a675a3
- https://git.kernel.org/stable/c/b06f388994500297bb91be60ffaf6825ecfd2afe
FAQ
Is CVE-2025-21820 being exploited?
There is no confirmed exploitation: CVE-2025-21820 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-21820?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-21820?
Linux >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < e22a97700901ba5e8bf8db68056a0d50f9440cae; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < de5bd24197bd9ee37ec1e379a3d882bbd15c5065; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 9b88a7c4584ba67267a051069b8abe44fc9595b2; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < 4410dba9807a17a93f649a9f5870ceaf30a675a3; >= 74ea66d4ca061a3cd4c0e924e51b60e924644852, < b06f388994500297bb91be60ffaf6825ecfd2afe; Linux 4.6.
Is there a fix for CVE-2025-21820?
Yes. Fixed in Linux 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c, Linux 9b88a7c4584ba67267a051069b8abe44fc9595b2, Linux 4410dba9807a17a93f649a9f5870ceaf30a675a3. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-21820?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.