CWE
476
Advisory Published
Updated

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

First published: Thu Feb 29 2024(Updated: )

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.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
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
Linux Kernel>=5.6<5.10.210
Linux Kernel>=5.11<5.15.149
Linux Kernel>=5.16<6.1.76
Linux Kernel>=6.2<6.6.15
Linux Kernel>=6.7<6.7.3
Debian Linux=10.0
debian/linux
5.10.223-1
5.10.234-1
6.1.129-1
6.1.128-1
6.12.21-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203