ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()
Summary
GSD-2022-1004319: ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo(). Affects Kernel versions < 07cbdb4807d369fbda73062a91b570c4dc5ec429. 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 vulnerability affects the Kernel package in the Linux ecosystem. The Kernel is the core component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware. The specific vulnerability, identified as GSD-2022-1004319, is related to the libata-core module within the Kernel. This module handles ATA (Advanced Technology Attachment) devices, which are commonly used for storage devices such as hard drives and solid-state drives. The vulnerability involves a NULL pointer dereference in the ata_host_alloc_pinfo() function, which can lead to a crash or potential security issues.
Vulnerability Detail
The vulnerability in libata-core's ata_host_alloc_pinfo() function can result in a NULL pointer dereference. This occurs when the function is called with invalid or uninitialized data, causing the program to access memory at a NULL address. An attacker could potentially exploit this vulnerability to crash the system or execute arbitrary code with elevated privileges. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability has been fixed in Linux Kernel version v5.18.6 by commit 07cbdb4807d369fbda73062a91b570c4dc5ec429.
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 →
Conclusion
The vulnerability in libata-core's ata_host_alloc_pinfo() function can lead to a NULL pointer dereference, potentially resulting in a system crash or arbitrary code execution. It is crucial to update the Linux Kernel to version v5.18.6 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability can range from a system crash to potential execution of arbitrary code with elevated privileges.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.
No specific workaround has been provided for this vulnerability. It is recommended to update the Linux Kernel to the fixed version.
More details about the fix can be found in the commit 07cbdb4807d369fbda73062a91b570c4dc5ec429 in the Linux Kernel repository.
The remote exploitability of this vulnerability has not been determined yet. However, it is always recommended to apply security updates to mitigate potential risks.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.