# CVE-2026-90338: serial: amba-pl011: keep console clock enabled for atomic writes

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-17T16:08:50.331Z
- **Modified:** 2026-10-19T09:19:27.853Z

## Who should check

- Anyone running Linux \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< 5b77848423f4a5a362dcc3caedcdc1a75d0758c3; \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< 2ad24c1d0b939d814a3020f96a667ac2d0394289; \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< c0e8cfef754645856374e82c8effd54b7d82002b
- Anyone running Linux 6.15

## Description

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.

## Affected and fixed versions

- Linux: \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< 5b77848423f4a5a362dcc3caedcdc1a75d0758c3; \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< 2ad24c1d0b939d814a3020f96a667ac2d0394289; \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< c0e8cfef754645856374e82c8effd54b7d82002b (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-90338. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-90338.md
Affected: Linux >= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, < 5b77848423f4a5a362dcc3caedcdc1a75d0758c3; >= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, < 2ad24c1d0b939d814a3020f96a667ac2d0394289; >= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, < c0e8cfef754645856374e82c8effd54b7d82002b; Linux 6.15
Fixed in: Linux 5b77848423f4a5a362dcc3caedcdc1a75d0758c3, Linux 2ad24c1d0b939d814a3020f96a667ac2d0394289

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.
```

## FAQ

### Is CVE-2026-90338 being exploited?

There is no confirmed exploitation: CVE-2026-90338 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-90338?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-90338?

Linux \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< 5b77848423f4a5a362dcc3caedcdc1a75d0758c3; \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< 2ad24c1d0b939d814a3020f96a667ac2d0394289; \>= 2eb2608618ce5878e11bbe68cc8d2699c8f3a81a, \< c0e8cfef754645856374e82c8effd54b7d82002b; Linux 6.15.

### Is there a fix for CVE-2026-90338?

Yes. Fixed in Linux 5b77848423f4a5a362dcc3caedcdc1a75d0758c3, Linux 2ad24c1d0b939d814a3020f96a667ac2d0394289. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-90338?

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.

## References

- other: <https://git.kernel.org/stable/c/5b77848423f4a5a362dcc3caedcdc1a75d0758c3>
- other: <https://git.kernel.org/stable/c/2ad24c1d0b939d814a3020f96a667ac2d0394289>
- other: <https://git.kernel.org/stable/c/c0e8cfef754645856374e82c8effd54b7d82002b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-90338>

HTML: <https://flawdb.com/CVE-2026-90338> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-90338>
