ASoC: SOF: Intel: Fix NULL ptr dereference when ENOMEM
Summary
GSD-2022-1001297: ASoC: SOF: Intel: Fix NULL ptr dereference when ENOMEM. Affects Kernel versions >= d16046ffa6de040bf580a64d5f4d0aa18258a854, < 67f7bd9ff9079c1ee2de58e024fb582905c74c16. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The ASoC (Audio for Linux Sound System) is a subsystem in the Linux kernel that provides support for audio devices. It includes drivers, codecs, and core components for managing audio functionality. The SOF (Sound Open Firmware) is an open-source audio firmware project developed by Intel for their audio hardware. It is used in conjunction with the ASoC framework to provide audio capabilities on Intel-based systems. The vulnerability in question involves a NULL pointer dereference when encountering an ENOMEM (Out of Memory) error.
Vulnerability Detail
The vulnerability occurs in the SOF driver for Intel audio hardware in the Linux kernel. When the driver encounters an ENOMEM error, it attempts to access a NULL pointer, leading to a system crash or potential privilege escalation. An attacker could potentially exploit this vulnerability to crash the system or execute arbitrary code with elevated privileges. The vulnerability was introduced in Linux Kernel version v5.2 and has been fixed in version v5.17.2.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is necessary to apply the fix by updating the Linux kernel.
Conclusion
The ASoC SOF Intel NULL ptr dereference vulnerability in the Linux kernel can lead to system crashes or potential privilege escalation. It is recommended to update the Linux kernel to version v5.17.2 or later to fix this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
ASoC (Audio for Linux Sound System) is a subsystem in the Linux kernel that provides support for audio devices. It includes drivers, codecs, and core components for managing audio functionality.
SOF (Sound Open Firmware) is an open-source audio firmware project developed by Intel for their audio hardware. It is used in conjunction with the ASoC framework to provide audio capabilities on Intel-based systems.
A NULL pointer dereference occurs when a program attempts to access or manipulate data using a pointer that points to NULL (a memory address that does not exist). This can lead to a system crash or potential security vulnerabilities.
ENOMEM is an error code in the Linux kernel that indicates a failure to allocate memory. It stands for 'Out of Memory'. This error can occur when the system does not have enough available memory to fulfill a memory allocation request.
To update the Linux kernel, you can download the latest kernel source code from the official Linux kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compile it for your system. Alternatively, you can wait for your Linux distribution to release an updated kernel package that includes the fix.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.