CVE-2025-21820

tty: xilinx_uartps: split sysrq handling

No CVSS score yet EPSS 0.16%

Published 27 Feb 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-21820

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21820 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.99% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 74ea66d4ca061a3cd4c0e924e51b60e924644852, before e22a97700901ba5e8bf8db68056a0d50f9440cae
affected from 74ea66d4ca061a3cd4c0e924e51b60e924644852, before de5bd24197bd9ee37ec1e379a3d882bbd15c5065
affected from 74ea66d4ca061a3cd4c0e924e51b60e924644852, before 8ea0e7b3d7b8f2f0fc9db491ff22a0abe120801c
affected from 74ea66d4ca061a3cd4c0e924e51b60e924644852, before 9b88a7c4584ba67267a051069b8abe44fc9595b2
affected from 74ea66d4ca061a3cd4c0e924e51b60e924644852, before 4410dba9807a17a93f649a9f5870ceaf30a675a3
affected from 74ea66d4ca061a3cd4c0e924e51b60e924644852, before b06f388994500297bb91be60ffaf6825ecfd2afe
Other versions: unaffected
Linux
affected 4.6
unaffected before 4.6
unaffected from 5.15.179 up to and including 5.15.*
unaffected from 6.1.129 up to and including 6.1.*
unaffected from 6.6.78 up to and including 6.6.*
unaffected from 6.12.14 up to and including 6.12.*
unaffected from 6.13.3 up to and including 6.13.*
unaffected 6.14 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21820 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21820

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-21820
trivy image --scanners vuln IMAGE | grep CVE-2025-21820

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-21820 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.