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

Published Feb 29, 2024
·
Updated

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

dmaengine: fix NULL pointer in channel unregistration function

dmaasyncdevicechannelregister() can fail. In case of failure, chan->local is freed (with freepercpu()), and chan->local is nullified. When dmaasyncdeviceunregister() 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] devicedel+0x40/0x394 [ 1.490314] deviceunregister+0x20/0x7c [ 1.494220] dmaasyncdevicechannelunregister+0x68/0xc0

Look at dmaasyncdeviceregister() function error path, channel device unregistration is done only if chan->local is not NULL.

Then add the same condition at the beginning of dmaasyncdevicechannelunregister() function, to avoid NULL pointer issue whatever the API used to reach this function.

Other sources

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

dmaengine: fix NULL pointer in channel unregistration function

The Linux kernel CVE team has assigned CVE-2023-52492 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/20240229155245.1571576-33-lee@kernel.org/T

Red Hat

Affected Software

15 affected componentsFixes available
Linux Linux kernel>=5.6<5.10.210
Linux Linux kernel>=5.11<5.15.149
Linux Linux kernel>=5.16<6.1.76
Linux Linux kernel>=6.2<6.6.15
Linux Linux kernel>=6.7<6.7.3
Debian Debian Linux=10.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.133-16.12.22-1
redhat/kernel<5.10.210
5.10.210
redhat/kernel<5.15.149
5.15.149
redhat/kernel<6.1.76
6.1.76
redhat/kernel<6.6.15
6.6.15
redhat/kernel<6.7.3
6.7.3
redhat/kernel<6.8
6.8
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance - Identity Manager virtual appliance component<=ISVG 10.0.2

Event History

Feb 29, 2024
CVE Published
via MITRE·03:52 PM
Data Sourced
via MITRE·03:52 PM
Description
Mar 12, 2024
Data Sourced
via Red Hat·03:51 PM
DescriptionSeverityAffected Software
May 7, 2024
Data Sourced
via Launchpad·08:28 PM
Description
Apr 17, 2025
Data Sourced
via Ubuntu·05:31 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-52492?

CVE-2023-52492 has been categorized with high severity due to its potential impact on system stability and security.

2

How do I fix CVE-2023-52492?

To address CVE-2023-52492, upgrade to the recommended kernel versions that include the patch for this vulnerability.

3

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

CVE-2023-52492 affects various kernel versions prior to 5.10.210, 5.15.149, 6.1.76, 6.6.15, 6.7.3, and 6.8.

4

Is CVE-2023-52492 a remote exploit?

CVE-2023-52492 is not specifically classified as a remote exploit; it pertains to local interactions within the kernel.

5

What systems are vulnerable to CVE-2023-52492?

Systems running the affected versions of the Linux kernel, particularly distributions based on Red Hat and Debian, are vulnerable to CVE-2023-52492.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2023-52492 - dmaengine: fix NULL pointer in channel unregistration function - SecAlerts