CVE-2022-49731

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
26/02/2025
Last modified:
01/10/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()<br /> <br /> In an unlikely (and probably wrong?) case that the &amp;#39;ppi&amp;#39; parameter of<br /> ata_host_alloc_pinfo() points to an array starting with a NULL pointer,<br /> there&amp;#39;s going to be a kernel oops as the &amp;#39;pi&amp;#39; local variable won&amp;#39;t get<br /> reassigned from the initial value of NULL. Initialize &amp;#39;pi&amp;#39; instead to<br /> &amp;#39;&amp;ata_dummy_port_info&amp;#39; to fix the possible kernel oops for good...<br /> <br /> Found by Linux Verification Center (linuxtesting.org) with the SVACE static<br /> analysis tool.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.9.320 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.10 (including) 4.14.285 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.15 (including) 4.19.249 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 4.20 (including) 5.4.200 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.124 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.49 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 5.18.6 (excluding)
cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*