# CVE-2022-49343: ext4: avoid cycles in directory h-tree

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **Published:** 2025-02-26T02:10:59.970Z
- **Modified:** 2026-08-05T08:54:50.163Z

## Who should check

- Anyone running Linux \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< e157c8f87e8fac112d6c955e69a60cdb9bc80a60; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< ff4cafa51762da3824881a9000ca421d4b78b138; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< d5a16a6df2c16eaf4de04948553ef0089dee463f; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 6084240bfc44bf265ab6ae7d96980469b05be0f1; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 3ba733f879c2a88910744647e41edeefbc0d92b2
- Anyone running Linux 2.6.19

## Description

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

ext4: avoid cycles in directory h-tree

A maliciously corrupted filesystem can contain cycles in the h-tree
stored inside a directory. That can easily lead to the kernel corrupting
tree nodes that were already verified under its hands while doing a node
split and consequently accessing unallocated memory. Fix the problem by
verifying traversed block numbers are unique.

## Affected and fixed versions

- Linux: \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< e157c8f87e8fac112d6c955e69a60cdb9bc80a60; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< ff4cafa51762da3824881a9000ca421d4b78b138; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< d5a16a6df2c16eaf4de04948553ef0089dee463f; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 6084240bfc44bf265ab6ae7d96980469b05be0f1; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 3ba733f879c2a88910744647e41edeefbc0d92b2 (cvelist)
- Linux: 2.6.19 (cvelist)

## Mitigation

- Upgrade Linux to 3ba733f879c2a88910744647e41edeefbc0d92b2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49343. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49343.md
Affected: Linux >= ac27a0ec112a089f1a5102bc8dffc79c8c815571, < 24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3; >= ac27a0ec112a089f1a5102bc8dffc79c8c815571, < b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0; >= ac27a0ec112a089f1a5102bc8dffc79c8c815571, < e157c8f87e8fac112d6c955e69a60cdb9bc80a60; >= ac27a0ec112a089f1a5102b…
Fixed in: Linux 24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3, Linux 3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc, Linux 6084240bfc44bf265ab6ae7d96980469b05be0f1, Linux 3ba733f879c2a88910744647e41edeefbc0d92b2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49343 being exploited?

There is no confirmed exploitation: CVE-2022-49343 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49343?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-49343?

Linux \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< e157c8f87e8fac112d6c955e69a60cdb9bc80a60; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< ff4cafa51762da3824881a9000ca421d4b78b138; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< d5a16a6df2c16eaf4de04948553ef0089dee463f; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 6084240bfc44bf265ab6ae7d96980469b05be0f1; \>= ac27a0ec112a089f1a5102bc8dffc79c8c815571, \< 3ba733f879c2a88910744647e41edeefbc0d92b2; Linux 2.6.19.

### Is there a fix for CVE-2022-49343?

Yes. Fixed in Linux 24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3, Linux 3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc, Linux 6084240bfc44bf265ab6ae7d96980469b05be0f1, Linux 3ba733f879c2a88910744647e41edeefbc0d92b2. Upgrade Linux to 3ba733f879c2a88910744647e41edeefbc0d92b2 or later.

### How do I check if I'm affected by CVE-2022-49343?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/24b8206fec1db21d7e82f21f0b2ff5e5672cf5b3>
- patch: <https://git.kernel.org/stable/c/b3ad9ff6f06c1dc6abf7437691c88ca3d6da3ac0>
- patch: <https://git.kernel.org/stable/c/e157c8f87e8fac112d6c955e69a60cdb9bc80a60>
- patch: <https://git.kernel.org/stable/c/ff4cafa51762da3824881a9000ca421d4b78b138>
- patch: <https://git.kernel.org/stable/c/3a3ce941645407cd0b0b7f01ad9e2ea3770f46cc>
- patch: <https://git.kernel.org/stable/c/d5a16a6df2c16eaf4de04948553ef0089dee463f>
- patch: <https://git.kernel.org/stable/c/6084240bfc44bf265ab6ae7d96980469b05be0f1>
- patch: <https://git.kernel.org/stable/c/3ba733f879c2a88910744647e41edeefbc0d92b2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49343>

HTML: <https://flawdb.com/CVE-2022-49343> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49343>
