# ext4: fix use-after-free in ext4_rename_dir_prepare

CVE record · `CVE-2022-49349`

- **Identifiers:** `CVE-2022-49349`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.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:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 26 Feb 2025, 02:11 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: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before 1a3a15bf6f9963d755270cbdb282863b84839195` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before 97f802a652a749422dede32071d29a53cf4bd034` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before 10801095224de0d0ab06ae60698680c1f883a3ae` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before eaecf7ebfd5dd09038a80b14be46b844f54cfc5c` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before dd887f83ea54aea5b780a84527e23ab95f777fed` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before 364380c00912bed9b5d99eb485018360b0ecf64f` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before 0ff38b99fa075ddd246487a28cb9af049f4ceef1` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before 4a2bea60cf7ff957b3eda0b17750d483876a02fa` (git)
  - affected: `32f7f22c0b52e8189fef83986b16dc7abe95f2c4 to before 0be698ecbe4471fcad80e81ec6a05001421041b3` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.8`
  - unaffected: `before 3.8` (semver)
  - unaffected: `4.9.318 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.283 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.247 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.198 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.121 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.46 to 5.15.*, inclusive` (semver)
  - unaffected: `5.17.14 to 5.17.*, inclusive` (semver)
  - unaffected: `5.18.3 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

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`, from CNA (Linux) (used for this record)
- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0029, the 22nd 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-49349](https://www.cve.org/CVERecord?id=CVE-2022-49349)
- [NVD: CVE-2022-49349](https://nvd.nist.gov/vuln/detail/CVE-2022-49349)

### References from the CNA

- <https://git.kernel.org/stable/c/1a3a15bf6f9963d755270cbdb282863b84839195>
- <https://git.kernel.org/stable/c/97f802a652a749422dede32071d29a53cf4bd034>
- <https://git.kernel.org/stable/c/10801095224de0d0ab06ae60698680c1f883a3ae>
- <https://git.kernel.org/stable/c/eaecf7ebfd5dd09038a80b14be46b844f54cfc5c>
- <https://git.kernel.org/stable/c/dd887f83ea54aea5b780a84527e23ab95f777fed>
- <https://git.kernel.org/stable/c/364380c00912bed9b5d99eb485018360b0ecf64f>
- <https://git.kernel.org/stable/c/0ff38b99fa075ddd246487a28cb9af049f4ceef1>
- <https://git.kernel.org/stable/c/4a2bea60cf7ff957b3eda0b17750d483876a02fa>
- <https://git.kernel.org/stable/c/0be698ecbe4471fcad80e81ec6a05001421041b3>

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-49349>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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