CVE-2022-49731

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

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:24 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.9.3202.6.22 ≤ v < 4.14.2852.6.22 ≤ v < 4.19.2492.6.22 ≤ v < 4.9.3202.6.22 ≤ v < 5.10.1242.6.22 ≤ v < 5.15.492.6.22 ≤ v < 5.18.62.6.22 ≤ v < 5.192.6.22 ≤ v < 5.4.2004.10 ≤ v < 4.14.2854.15 ≤ v < 4.19.2494.20 ≤ v < 5.4.2005.11 ≤ v < 5.15.495.16 ≤ v < 5.18.65.5 ≤ v < 5.10.1245.19 rc1f5cda257296fbd3683b1f568f2d94d3caaacf74d
Vendor states this is fixed in 07cbdb4807d369fbda73062a91b570c4dc5ec429 (fixed)
Vendor states this is fixed in 1ac5efee33f29e704226506d429b84575a5d66f8 (fixed)
Vendor states this is fixed in 253334f84c81bc6a43af489f108c0bddad989eef (fixed)
Vendor states this is fixed in 36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a (fixed)
Vendor states this is fixed in a810bd5af06977a847d1f202b22d7defd5c62497 (fixed)
Vendor states this is fixed in bf476fe22aa1851bab4728e0c49025a6a0bea307 (fixed)
Vendor states this is fixed in ca4693e6e06e4fd2b240c0fec47aa2498c94848e (fixed)
Vendor states this is fixed in ff128fbea720bf763fa345680dda5f050bc24a47 (fixed)
Vendor states this is fixed in 2.6.22 (unaffected)
Vendor states this is fixed in 4.14.285 (unaffected)
Vendor states this is fixed in 4.19.249 (unaffected)
Vendor states this is fixed in 4.9.320 (unaffected)
Vendor states this is fixed in 5.10.124 (unaffected)
Vendor states this is fixed in 5.15.49 (unaffected)
Vendor states this is fixed in 5.18.6 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.4.200 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/07cbdb4807d369fbda73062a91b570c4dc5ec429
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1ac5efee33f29e704226506d429b84575a5d66f8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/253334f84c81bc6a43af489f108c0bddad989eef
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a810bd5af06977a847d1f202b22d7defd5c62497
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bf476fe22aa1851bab4728e0c49025a6a0bea307
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ca4693e6e06e4fd2b240c0fec47aa2498c94848e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ff128fbea720bf763fa345680dda5f050bc24a47

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card