CVE-2022-49731

ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()

Medium · published February 26, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
19.4
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()

In an unlikely (and probably wrong?) case that the 'ppi' parameter of

ata_host_alloc_pinfo() points to an array starting with a NULL pointer,

there's going to be a kernel oops as the 'pi' local variable won't get

reassigned from the initial value of NULL. Initialize 'pi' instead to

'&ata_dummy_port_info' to fix the possible kernel oops for good...

Found by Linux Verification Center (linuxtesting.org) with the SVACE static

analysis tool.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00280 · 19.4th percentile
Published
2025-02-26T02:24Z
EPSS history
Timeline
  • 26 FEB 02:24Z
    ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()
    cvelistv5