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

Published Feb 26, 2025
·
Updated

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

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

In an unlikely (and probably wrong?) case that the 'ppi' parameter of atahostallocpinfo() 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 '&atadummyportinfo' to fix the possible kernel oops for good...

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

Affected Software

9 affected components
Linux Linux kernel<4.9.320
Linux Linux kernel>=4.10<4.14.285
Linux Linux kernel>=4.15<4.19.249
Linux Linux kernel>=4.20<5.4.200
Linux Linux kernel>=5.5<5.10.124
Linux Linux kernel>=5.11<5.15.49
Linux Linux kernel>=5.16<5.18.6
Linux Linux kernel=5.19-rc1
Linux Kernel

Event History

Feb 26, 2025
CVE Published
via MITRE·02:24 AM
Data Sourced
via MITRE·02:24 AM
Description
Data Sourced
via NVD·07:01 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49731?

CVE-2022-49731 is classified as a low-severity vulnerability in the Linux kernel.

2

How do I fix CVE-2022-49731?

To fix CVE-2022-49731, update your Linux kernel to the latest patched version provided by your distribution.

3

What software is affected by CVE-2022-49731?

CVE-2022-49731 affects the Linux kernel, specifically its libata-core component.

4

What type of vulnerability is CVE-2022-49731?

CVE-2022-49731 is a NULL pointer dereference vulnerability that could potentially lead to denial of service.

5

When was CVE-2022-49731 published?

CVE-2022-49731 was published in December 2022.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203