VDB

CVE-2023-52492

CVE-2023-52492 PUBLISHED CVSS 4.4 MEDIUM

dmaengine: fix NULL pointer in channel unregistration function

Reported by linux · Published February 29, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python3-perfAmazon Linux6.1.77-99.164.amzn2023
kernel-libbpf-staticAmazon Linux6.1.77-99.164.amzn2023
kernelAmazon Linux6.1.77-99.164.amzn2023
bpftoolAmazon Linux6.1.77-99.164.amzn2023
kernel-libbpfAmazon Linux6.1.77-99.164.amzn2023
kernel-toolsAmazon Linux6.1.77-99.164.amzn2023
linux_kernellinux6.7.3, 6.6.15, 6.1.76, 5.15.149, 5.10.210

Risk scores

CVSS 3.1
4.4
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxd2fb0a0438384fee08a418025f743913020033ce, d2fb0a0438384fee08a418025f743913020033ce, d2fb0a0438384fee08a418025f743913020033ce
LinuxLinux5.6, 0, 5.10.210
amazon:2023python3-perf0
amazon:2023kernel-libbpf-static0
amazon:2023kernel0
amazon:2023bpftool0
amazon:2023kernel-libbpf0
amazon:2023kernel-tools0
linuxlinux_kernel5.6, 5.6, 5.6
amazon:2023kernel-tools-devel0
amazon:2023perf0
amazon:2023kernel-livepatch-6.1.77-99.1640
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-devel0
LinuxLinux*, 6.7.3, *
amazon:2023kernel-headers0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-modules-extra0

Timeline

  • Feb 29, 2024 CVE Published
  • Mar 1, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (27 in total, the first dated here)
  • Jan 25, 2026 Security Advisory (135 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (97 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-52492
vulnetix vdb fixes CVE-2023-52492

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52492/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›