# CVE-2023-52492: dmaengine: fix NULL pointer in channel unregistration function

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

- **Severity:** MEDIUM 4.4
- **CVSS:** 4.4 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-02-29T15:52:10.499Z
- **Modified:** 2026-06-17T06:42:51.210Z

## Who should check

- Anyone running Linux \>= d2fb0a0438384fee08a418025f743913020033ce, \< 9de69732dde4e443c1c7f89acbbed2c45a6a8e17; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 047fce470412ab64cb7345f9ff5d06919078ad79; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 2ab32986a0b9e329eb7f8f04dd57cc127f797c08; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 7f0ccfad2031eddcc510caf4e57f2d4aa2d8a50b; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 9263fd2a63487c6d04cbb7b74a48fb12e1e352d0; \>= d2fb0a0438384fee08a418025f743913020033ce, \< f5c24d94512f1b288262beda4d3dcb9629222fc7
- Anyone running Linux 5.6

## Description

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

dmaengine: fix NULL pointer in channel unregistration function

\_\_dma\_async\_device\_channel\_register() can fail. In case of failure,
chan-\>local is freed (with free\_percpu()), and chan-\>local is nullified.
When dma\_async\_device\_unregister() is called (because of managed API or
intentionally by DMA controller driver), channels are unconditionally
unregistered, leading to this NULL pointer:
\[    1.318693\] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000d0
\[...\]
\[    1.484499\] Call trace:
\[    1.486930\]  device\_del+0x40/0x394
\[    1.490314\]  device\_unregister+0x20/0x7c
\[    1.494220\]  \_\_dma\_async\_device\_channel\_unregister+0x68/0xc0

Look at dma\_async\_device\_register() function error path, channel device
unregistration is done only if chan-\>local is not NULL.

Then add the same condition at the beginning of
\_\_dma\_async\_device\_channel\_unregister() function, to avoid NULL pointer
issue whatever the API used to reach this function.

## Affected and fixed versions

- Linux: \>= d2fb0a0438384fee08a418025f743913020033ce, \< 9de69732dde4e443c1c7f89acbbed2c45a6a8e17; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 047fce470412ab64cb7345f9ff5d06919078ad79; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 2ab32986a0b9e329eb7f8f04dd57cc127f797c08; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 7f0ccfad2031eddcc510caf4e57f2d4aa2d8a50b; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 9263fd2a63487c6d04cbb7b74a48fb12e1e352d0; \>= d2fb0a0438384fee08a418025f743913020033ce, \< f5c24d94512f1b288262beda4d3dcb9629222fc7 (cvelist)
- Linux: 5.6 (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-2023-52492. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52492.md
Affected: Linux >= d2fb0a0438384fee08a418025f743913020033ce, < 9de69732dde4e443c1c7f89acbbed2c45a6a8e17; >= d2fb0a0438384fee08a418025f743913020033ce, < 047fce470412ab64cb7345f9ff5d06919078ad79; >= d2fb0a0438384fee08a418025f743913020033ce, < 2ab32986a0b9e329eb7f8f04dd57cc127f797c08; >= d2fb0a0438384fee08a4180…
Fixed in: Linux 9de69732dde4e443c1c7f89acbbed2c45a6a8e17, Linux 047fce470412ab64cb7345f9ff5d06919078ad79, Linux 2ab32986a0b9e329eb7f8f04dd57cc127f797c08, Linux 7f0ccfad2031eddcc510caf4e57f2d4aa2d8a50b, Linux 9263fd2a63487c6d04cbb7b74a48fb12e1e352d0

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-52492 being exploited?

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

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

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

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

Linux \>= d2fb0a0438384fee08a418025f743913020033ce, \< 9de69732dde4e443c1c7f89acbbed2c45a6a8e17; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 047fce470412ab64cb7345f9ff5d06919078ad79; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 2ab32986a0b9e329eb7f8f04dd57cc127f797c08; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 7f0ccfad2031eddcc510caf4e57f2d4aa2d8a50b; \>= d2fb0a0438384fee08a418025f743913020033ce, \< 9263fd2a63487c6d04cbb7b74a48fb12e1e352d0; \>= d2fb0a0438384fee08a418025f743913020033ce, \< f5c24d94512f1b288262beda4d3dcb9629222fc7; Linux 5.6.

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

Yes. Fixed in Linux 9de69732dde4e443c1c7f89acbbed2c45a6a8e17, Linux 047fce470412ab64cb7345f9ff5d06919078ad79, Linux 2ab32986a0b9e329eb7f8f04dd57cc127f797c08, Linux 7f0ccfad2031eddcc510caf4e57f2d4aa2d8a50b, Linux 9263fd2a63487c6d04cbb7b74a48fb12e1e352d0. No fix listed yet: follow the vendor advisory.

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

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/9de69732dde4e443c1c7f89acbbed2c45a6a8e17>
- patch: <https://git.kernel.org/stable/c/047fce470412ab64cb7345f9ff5d06919078ad79>
- patch: <https://git.kernel.org/stable/c/2ab32986a0b9e329eb7f8f04dd57cc127f797c08>
- patch: <https://git.kernel.org/stable/c/7f0ccfad2031eddcc510caf4e57f2d4aa2d8a50b>
- patch: <https://git.kernel.org/stable/c/9263fd2a63487c6d04cbb7b74a48fb12e1e352d0>
- patch: <https://git.kernel.org/stable/c/f5c24d94512f1b288262beda4d3dcb9629222fc7>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.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-52492>

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