CVE-2023-53094

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53094
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53094.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53094
Downstream
Related
Published
2025-05-02T16:15:28Z
Modified
2025-08-09T20:01:25Z
Summary
[none]
Details

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

tty: serial: fsl_lpuart: fix race on RX DMA shutdown

From time to time DMA completion can come in the middle of DMA shutdown:

<process ctx>: <IRQ>: lpuart32shutdown() lpuartdmashutdown() deltimersync() lpuartdmarxcomplete() lpuartcopyrxtotty() modtimer() lpuartdmarxfree()

When the timer fires a bit later, sport->dmarxdesc is NULL:

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000004 pc : lpuartcopyrxtotty+0xcc/0x5bc lr : lpuarttimerfunc+0x1c/0x2c Call trace: lpuartcopyrxtotty lpuarttimerfunc calltimerfn _runtimers.part.0 runtimersoftirq _dosoftirq _irqexitrcu irqexit handledomainirq gichandleirq callonirqstack dointerrupt_handler ...

To fix this fold deltimersync() into lpuartdmarxfree() after dmaengineterminatesync() to make sure timer will not be re-started in lpuartcopyrxtotty() <= lpuartdmarxcomplete().

References

Affected packages