VDB

CVE-2026-90338

CVE-2026-90338 PUBLISHED

serial: amba-pl011: keep console clock enabled for atomic writes

Reported by linux · Published September 17, 2026

In the Linux kernel, the following vulnerability has been resolved: serial: amba-pl011: keep console clock enabled for atomic writes pl011_console_write_atomic() runs from nbcon atomic context, where sleeping is not allowed. It calls clk_enable(), which takes the common-clk enable_lock. Under PREEMPT_RT that is a sleeping lock: clk_enable_lock() first tries spin_trylock_irqsave(), but on contention falls back to spin_lock_irqsave(). Therefore, an atomic-context printk on an RT kernel with a clk-backed pl011 can trip: BUG: sleeping function called from invalid context at spinlock_rt.c:48 __might_resched from rt_spin_lock rt_spin_lock from clk_enable_lock clk_enable_lock from clk_enable clk_enable from pl011_console_write_atomic ... from vprintk_emit This was found and reproduced on PREEMPT_RT. Arm32 and arm64 DT SoCs are affected; arm64 SBSA/ACPI has no clk, so clk_enable(NULL) short-circuits before the lock. In addition, write_atomic() may be invoked from NMI context and is documented to avoid locking. Removing clk_enable() from the callback also avoids a potentially unsafe NMI acquisition of the common-clock enable_lock. An nbcon atomic-capable console must be printable from any context, so the clock cannot be gated between writes. Enable the clock while the console is available for output: use clk_prepare_enable() in pl011_console_setup(), release it via clk_disable_unprepare() in the console .exit() callback, and drop the per-write clk_enable()/clk_disable() pairs from write_atomic() and write_thread(). When printk suspends consoles, drop the reference after uart_suspend_port() stops console access and restore it before uart_resume_port() -- but only if suspend actually marked the port suspended (a wake-capable tty stays running and must keep its clock), and keep it when console_suspend_enabled is false so no_console_suspend works. The active power cost of keeping the clock enabled is platform-dependent: none where the UART clock is a fixed always-on oscillator, real where it is a gateable clock branch, which then cannot be gated (nor possibly can its parent clocks) while the console is available for output. When serial core actually suspends the port, the reference is released so the clock provider can gate the clock tree.

EPSS 0.21% · 10.7th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18-toolsAmazon Linux1:6.18.54-121.166.amzn2023
bpftool6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18Amazon Linux1:6.18.54-121.166.amzn2023
LinuxLinuxc0e8cfef754645856374e82c8effd54b7d82002b, 6.15, 5b77848423f4a5a362dcc3caedcdc1a75d0758c3, 2ad24c1d0b939d814a3020f96a667ac2d0394289

Risk scores

EPSS Score
0.21%
10.7th percentile

Affected products

VendorProductVersions
LinuxLinux2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a
LinuxLinux6.15, 0, 6.18.52
amazon:2023kernel6.18-tools0
amazon:2023bpftool6.180
amazon:2023kernel6.180
LinuxLinux7.3, 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-devel0
amazon:2023microvm-kernel6.180
amazon:2023python3-perf6.180
amazon:2023perf6.180
amazon:2023kernel6.18-headers0
amazon:2023kernel-livepatch-6.18.54-121.1660
linuxlinux_kernel6.15, 6.15, 6.15

Timeline

  • Sep 17, 2026 Coalition ESS Score
  • Sep 17, 2026 CVE Published
  • Sep 18, 2026 EPSS Score (12 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-90338
vulnetix vdb fixes CVE-2026-90338

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-90338/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›