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

CVE record · `CVE-2022-49731`

- **Identifiers:** `CVE-2022-49731`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-476](https://cwe.mitre.org/data/definitions/476.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 26 Feb 2025
- **Updated:** 11 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 26 Feb 2025, 02:24 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before ca4693e6e06e4fd2b240c0fec47aa2498c94848e` (git)
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before 1ac5efee33f29e704226506d429b84575a5d66f8` (git)
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before a810bd5af06977a847d1f202b22d7defd5c62497` (git)
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before 253334f84c81bc6a43af489f108c0bddad989eef` (git)
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before 36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a` (git)
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before ff128fbea720bf763fa345680dda5f050bc24a47` (git)
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before 07cbdb4807d369fbda73062a91b570c4dc5ec429` (git)
  - affected: `f5cda257296fbd3683b1f568f2d94d3caaacf74d to before bf476fe22aa1851bab4728e0c49025a6a0bea307` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.22`
  - unaffected: `before 2.6.22` (semver)
  - unaffected: `4.9.320 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.285 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.249 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.200 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.124 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.49 to 5.15.*, inclusive` (semver)
  - unaffected: `5.18.6 to 5.18.*, inclusive` (semver)
  - unaffected: `5.19 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0028, the 20th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 26 Feb 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2022-49731](https://www.cve.org/CVERecord?id=CVE-2022-49731)
- [NVD: CVE-2022-49731](https://nvd.nist.gov/vuln/detail/CVE-2022-49731)

### References from the CNA

- <https://git.kernel.org/stable/c/ca4693e6e06e4fd2b240c0fec47aa2498c94848e>
- <https://git.kernel.org/stable/c/1ac5efee33f29e704226506d429b84575a5d66f8>
- <https://git.kernel.org/stable/c/a810bd5af06977a847d1f202b22d7defd5c62497>
- <https://git.kernel.org/stable/c/253334f84c81bc6a43af489f108c0bddad989eef>
- <https://git.kernel.org/stable/c/36cd19e7d4e5571d77a2ed20c5b6ef50cf57734a>
- <https://git.kernel.org/stable/c/ff128fbea720bf763fa345680dda5f050bc24a47>
- <https://git.kernel.org/stable/c/07cbdb4807d369fbda73062a91b570c4dc5ec429>
- <https://git.kernel.org/stable/c/bf476fe22aa1851bab4728e0c49025a6a0bea307>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-49731>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-49731/>. Everything for agents: <https://agentprime.io/llms.txt>.
