CVE-2022-49731: ata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()
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.
Security readout for executives and security teams
Plain-English summary
CVE-2022-49731 is a Linux kernel availability flaw in the ATA storage driver code. In a specific abnormal input condition, the kernel can dereference a NULL pointer and oops, potentially disrupting the affected system. The evidence points to local, low-privilege exposure rather than remote compromise.
Executive priority
Treat this as a moderate availability risk. It is not evidenced as remotely exploitable or actively exploited, but kernel crashes can affect business services. Patch through normal Linux kernel maintenance, with faster handling for shared hosts and systems with untrusted local users.
Technical view
The flaw is a CWE-476 NULL pointer dereference in ata_host_alloc_pinfo() in libata-core. If the ppi parameter points to an array beginning with NULL, pi may remain NULL and trigger a kernel oops. CVSS 3.1 is 5.5 with AV:L/PR:L/UI:N and availability impact only.
Likely exposure
Exposure is mainly Linux systems running affected kernel versions or downstream builds without the referenced stable fixes. The CVSS vector requires local access with low privileges. Systems without local untrusted users or affected ATA/libata paths have lower practical risk, but kernel inventory is needed.
Exploitation context
The provided bundle does not show active exploitation, and KEV is false. The issue was found by static analysis from Linux Verification Center using SVACE. No public exploit status is provided in the supplied sources, so exploitation should not be assumed.
Researcher notes
Focus on affected kernel lineage and whether downstream packages include one of the referenced stable fixes. The source describes an unusual ppi array condition, not a general remote attack path. Evidence is limited to the CVE record and Linux stable commits.
Mitigation direction
Apply vendor Linux kernel updates containing the referenced stable fixes.
Confirm distribution backports, since version strings may not show patch status.
Prioritize multi-user systems where untrusted local users have access.
Limit local access to sensitive systems until kernel updates are applied.
Use vendor guidance if packaged fixes are not yet available.
Validation and detection
Inventory running Linux kernel versions across affected assets.
Check vendor advisories or package changelogs for CVE-2022-49731 backports.
Confirm the running kernel changed after update and reboot.
Review kernel logs for unexplained oops events involving ATA/libata code.
Verify exposure assumptions for systems with local user access.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.