# CVE-2023-52456: serial: imx: fix tx statemachine deadlock

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-02-23T14:46:19.139Z
- **Modified:** 2026-06-17T06:42:44.530Z

## Who should check

- Anyone running Linux \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 6e04a9d30509fb53ba6df5d655ed61d607a7cfda; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< ff168d4fdb0e1ba35fb413a749b3d6cce918ec19; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 63ee7be01a3f7d28b1ea8b8d7944f12bb7b0ed06; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 763cd68746317b5d746dc2649a3295c1efb41181; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 9a662d06c22ddfa371958c2071dc350436be802b; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0
- Anyone running Linux 5.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

serial: imx: fix tx statemachine deadlock

When using the serial port as RS485 port, the tx statemachine is used to
control the RTS pin to drive the RS485 transceiver TX\_EN pin. When the
TTY port is closed in the middle of a transmission (for instance during
userland application crash), imx\_uart\_shutdown disables the interface
and disables the Transmission Complete interrupt. afer that,
imx\_uart\_stop\_tx bails on an incomplete transmission, to be retriggered
by the TC interrupt. This interrupt is disabled and therefore the tx
statemachine never transitions out of SEND. The statemachine is in
deadlock now, and the TX\_EN remains low, making the interface useless.

imx\_uart\_stop\_tx now checks for incomplete transmission AND whether TC
interrupts are enabled before bailing to be retriggered. This makes sure
the state machine handling is reached, and is properly set to
WAIT\_AFTER\_SEND.

## Affected and fixed versions

- Linux: \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 6e04a9d30509fb53ba6df5d655ed61d607a7cfda; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< ff168d4fdb0e1ba35fb413a749b3d6cce918ec19; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 63ee7be01a3f7d28b1ea8b8d7944f12bb7b0ed06; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 763cd68746317b5d746dc2649a3295c1efb41181; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 9a662d06c22ddfa371958c2071dc350436be802b; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52456.md
Affected: Linux >= cb1a609236096c278ecbfb7be678a693a70283f1, < 6e04a9d30509fb53ba6df5d655ed61d607a7cfda; >= cb1a609236096c278ecbfb7be678a693a70283f1, < ff168d4fdb0e1ba35fb413a749b3d6cce918ec19; >= cb1a609236096c278ecbfb7be678a693a70283f1, < 63ee7be01a3f7d28b1ea8b8d7944f12bb7b0ed06; >= cb1a609236096c278ecbfb7…
Fixed in: Linux 6e04a9d30509fb53ba6df5d655ed61d607a7cfda, Linux 63ee7be01a3f7d28b1ea8b8d7944f12bb7b0ed06, Linux 763cd68746317b5d746dc2649a3295c1efb41181, Linux 9a662d06c22ddfa371958c2071dc350436be802b, Linux 78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0

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-2023-52456 being exploited?

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

### How serious is CVE-2023-52456?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52456?

Linux \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 6e04a9d30509fb53ba6df5d655ed61d607a7cfda; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< ff168d4fdb0e1ba35fb413a749b3d6cce918ec19; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 63ee7be01a3f7d28b1ea8b8d7944f12bb7b0ed06; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 763cd68746317b5d746dc2649a3295c1efb41181; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 9a662d06c22ddfa371958c2071dc350436be802b; \>= cb1a609236096c278ecbfb7be678a693a70283f1, \< 78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0; Linux 5.9.

### Is there a fix for CVE-2023-52456?

Yes. Fixed in Linux 6e04a9d30509fb53ba6df5d655ed61d607a7cfda, Linux 63ee7be01a3f7d28b1ea8b8d7944f12bb7b0ed06, Linux 763cd68746317b5d746dc2649a3295c1efb41181, Linux 9a662d06c22ddfa371958c2071dc350436be802b, Linux 78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0. Upgrade Linux to 78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0 or later.

### How do I check if I'm affected by CVE-2023-52456?

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

- patch: <https://git.kernel.org/stable/c/6e04a9d30509fb53ba6df5d655ed61d607a7cfda>
- patch: <https://git.kernel.org/stable/c/ff168d4fdb0e1ba35fb413a749b3d6cce918ec19>
- patch: <https://git.kernel.org/stable/c/63ee7be01a3f7d28b1ea8b8d7944f12bb7b0ed06>
- patch: <https://git.kernel.org/stable/c/763cd68746317b5d746dc2649a3295c1efb41181>
- patch: <https://git.kernel.org/stable/c/9a662d06c22ddfa371958c2071dc350436be802b>
- patch: <https://git.kernel.org/stable/c/78d60dae9a0c9f09aa3d6477c94047df2fe6f7b0>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html>

## 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-2023-52456>

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