CVE-2023-52492
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-52492 is a vulnerability in the Linux kernel's DMA engine subsystem, discovered in December 2023. The issue occurs in the channel unregistration function where a NULL pointer dereference can happen when dmaasyncdevice_unregister() is called, either through managed API or intentionally by DMA controller driver (Kernel Git).

Technical details

The vulnerability stems from a failure condition in dmaasyncdevicechannelregister() where chan->local is freed using freepercpu() and subsequently nullified. When channels are unconditionally unregistered through dmaasyncdeviceunregister(), it leads to a NULL pointer dereference at virtual address 00000000000000d0. The issue manifests in the call trace through devicedel+0x40/0x394, deviceunregister+0x20/0x7c, and dmaasyncdevicechannelunregister+0x68/0xc0 (Kernel Git).

Impact

The vulnerability can result in a kernel NULL pointer dereference, which leads to a system crash (denial of service) when attempting to unregister DMA channels under specific conditions (Ubuntu Security).

Mitigation and workarounds

The issue has been fixed by adding a condition check at the beginning of _dmaasyncdevicechannel_unregister() function to verify if chan->local is NULL before proceeding with the unregistration process. The fix has been implemented in various Linux distributions including Ubuntu 23.10 (version 6.5.0-41.41) and Ubuntu 22.04 LTS (version 5.15.0-106.116) (Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management