# CVE-2022-50375: tty: serial: fsl\_lpuart: disable dma rx/tx use flags in lpuart\_dma\_shutdown

> 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, CNA) `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 8, 2026-11-26)
- **Published:** 2025-09-18T13:32:58.361Z
- **Modified:** 2026-06-17T05:23:22.370Z

## Who should check

- Anyone running Linux \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 29b897ac7b990882c74bd08605692214e7e58b83; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 9a56ade124d4891a31ab1300c57665f07f5b24d5; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< c4293def8860fd587a84400ccba5b49cec56e2c3; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< d554c14eb73ee91d76fc9aece4616f0b687c295d; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 3953e7f261e2f4d9c35f0c025df9f166f46aa626; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 316ae95c175a7d770d1bfe4c011192712f57aa4a
- Anyone running Linux 4.9

## Description

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

tty: serial: fsl\_lpuart: disable dma rx/tx use flags in lpuart\_dma\_shutdown

lpuart\_dma\_shutdown tears down lpuart dma, but lpuart\_flush\_buffer can
still occur which in turn tries to access dma apis if lpuart\_dma\_tx\_use
flag is true. At this point since dma is torn down, these dma apis can
abort. Set lpuart\_dma\_tx\_use and the corresponding rx flag
lpuart\_dma\_rx\_use to false in lpuart\_dma\_shutdown so that dmas are not
accessed after they are relinquished.

Otherwise, when try to kill btattach, kernel may panic. This patch may
fix this issue.
root@imx8ulpevk:~\# btattach -B /dev/ttyLP2 -S 115200
^C\[   90.182296\] Internal error: synchronous external abort: 96000210 \[\#1\] PREEMPT SMP
\[   90.189806\] Modules linked in: moal(O) mlan(O)
\[   90.194258\] CPU: 0 PID: 503 Comm: btattach Tainted: G           O      5.15.32-06136-g34eecdf2f9e4 \#37
\[   90.203554\] Hardware name: NXP i.MX8ULP 9X9 EVK (DT)
\[   90.208513\] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[   90.215470\] pc : fsl\_edma3\_disable\_request+0x8/0x60
\[   90.220358\] lr : fsl\_edma3\_terminate\_all+0x34/0x20c
\[   90.225237\] sp : ffff800013f0bac0
\[   90.228548\] x29: ffff800013f0bac0 x28: 0000000000000001 x27: ffff000008404800
\[   90.235681\] x26: ffff000008404960 x25: ffff000008404a08 x24: ffff000008404a00
\[   90.242813\] x23: ffff000008404a60 x22: 0000000000000002 x21: 0000000000000000
\[   90.249946\] x20: ffff800013f0baf8 x19: ffff00000559c800 x18: 0000000000000000
\[   90.257078\] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
\[   90.264211\] x14: 0000000000000003 x13: 0000000000000000 x12: 0000000000000040
\[   90.271344\] x11: ffff00000600c248 x10: ffff800013f0bb10 x9 : ffff000057bcb090
\[   90.278477\] x8 : fffffc0000241a08 x7 : ffff00000534ee00 x6 : ffff000008404804
\[   90.285609\] x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff0000055b3480
\[   90.292742\] x2 : ffff8000135c0000 x1 : ffff00000534ee00 x0 : ffff00000559c800
\[   90.299876\] Call trace:
\[   90.302321\]  fsl\_edma3\_disable\_request+0x8/0x60
\[   90.306851\]  lpuart\_flush\_buffer+0x40/0x160
\[   90.311037\]  uart\_flush\_buffer+0x88/0x120
\[   90.315050\]  tty\_driver\_flush\_buffer+0x20/0x30
\[   90.319496\]  hci\_uart\_flush+0x44/0x90
\[   90.323162\]  +0x34/0x12c
\[   90.327253\]  tty\_ldisc\_close+0x38/0x70
\[   90.331005\]  tty\_ldisc\_release+0xa8/0x190
\[   90.335018\]  tty\_release\_struct+0x24/0x8c
\[   90.339022\]  tty\_release+0x3ec/0x4c0
\[   90.342593\]  \_\_fput+0x70/0x234
\[   90.345652\]  \_\_\_\_fput+0x14/0x20
\[   90.348790\]  task\_work\_run+0x84/0x17c
\[   90.352455\]  do\_exit+0x310/0x96c
\[   90.355688\]  do\_group\_exit+0x3c/0xa0
\[   90.359259\]  \_\_arm64\_sys\_exit\_group+0x1c/0x20
\[   90.363609\]  invoke\_syscall+0x48/0x114
\[   90.367362\]  el0\_svc\_common.constprop.0+0xd4/0xfc
\[   90.372068\]  do\_el0\_svc+0x2c/0x94
\[   90.375379\]  el0\_svc+0x28/0x80
\[   90.378438\]  el0t\_64\_sync\_handler+0xa8/0x130
\[   90.382711\]  el0t\_64\_sync+0x1a0/0x1a4
\[   90.386376\] Code: 17ffffda d503201f d503233f f9409802 (b9400041)
\[   90.392467\] ---\[ end trace 2f60524b4a43f1f6 \]---
\[   90.397073\] note: btattach\[503\] exited with preempt\_count 1
\[   90.402636\] Fixing recursive fault but reboot is needed!

## Affected and fixed versions

- Linux: \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 29b897ac7b990882c74bd08605692214e7e58b83; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 9a56ade124d4891a31ab1300c57665f07f5b24d5; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< c4293def8860fd587a84400ccba5b49cec56e2c3; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< d554c14eb73ee91d76fc9aece4616f0b687c295d; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 3953e7f261e2f4d9c35f0c025df9f166f46aa626; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 316ae95c175a7d770d1bfe4c011192712f57aa4a (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- Upgrade Linux to 316ae95c175a7d770d1bfe4c011192712f57aa4a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50375.md
Affected: Linux >= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, < 29b897ac7b990882c74bd08605692214e7e58b83; >= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, < 9a56ade124d4891a31ab1300c57665f07f5b24d5; >= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, < c4293def8860fd587a84400ccba5b49cec56e2c3; >= 6250cc30c4c4e25393ba247…
Fixed in: Linux 29b897ac7b990882c74bd08605692214e7e58b83, Linux 9a56ade124d4891a31ab1300c57665f07f5b24d5, Linux 3953e7f261e2f4d9c35f0c025df9f166f46aa626, Linux 316ae95c175a7d770d1bfe4c011192712f57aa4a

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-2022-50375 being exploited?

There is no confirmed exploitation: CVE-2022-50375 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-2022-50375?

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

### Which versions are affected by CVE-2022-50375?

Linux \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 29b897ac7b990882c74bd08605692214e7e58b83; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 9a56ade124d4891a31ab1300c57665f07f5b24d5; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< c4293def8860fd587a84400ccba5b49cec56e2c3; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< d554c14eb73ee91d76fc9aece4616f0b687c295d; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 3953e7f261e2f4d9c35f0c025df9f166f46aa626; \>= 6250cc30c4c4e25393ba247f71bdc04b6af3191b, \< 316ae95c175a7d770d1bfe4c011192712f57aa4a; Linux 4.9.

### Is there a fix for CVE-2022-50375?

Yes. Fixed in Linux 29b897ac7b990882c74bd08605692214e7e58b83, Linux 9a56ade124d4891a31ab1300c57665f07f5b24d5, Linux 3953e7f261e2f4d9c35f0c025df9f166f46aa626, Linux 316ae95c175a7d770d1bfe4c011192712f57aa4a. Upgrade Linux to 316ae95c175a7d770d1bfe4c011192712f57aa4a or later.

### How do I check if I'm affected by CVE-2022-50375?

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/29b897ac7b990882c74bd08605692214e7e58b83>
- patch: <https://git.kernel.org/stable/c/9a56ade124d4891a31ab1300c57665f07f5b24d5>
- patch: <https://git.kernel.org/stable/c/c4293def8860fd587a84400ccba5b49cec56e2c3>
- patch: <https://git.kernel.org/stable/c/d554c14eb73ee91d76fc9aece4616f0b687c295d>
- patch: <https://git.kernel.org/stable/c/3953e7f261e2f4d9c35f0c025df9f166f46aa626>
- patch: <https://git.kernel.org/stable/c/316ae95c175a7d770d1bfe4c011192712f57aa4a>

## 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-2022-50375>

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