# CVE-2022-49880: ext4: fix warning in 'ext4\_da\_release\_space'

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-05-01T14:10:27.947Z
- **Modified:** 2026-06-17T05:19:24.327Z

## Who should check

- Anyone running Linux \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 0de5ee103747fd3a24f1c010c79caabe35e8f0bb; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< c3bf1e95cfa7d950dc3c064d0c2e3d06b427bc63; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 890d738f569fa9412b70ba09f15407f17a52da20; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 72743d5598b9096950bbfd6a9b7f173d156eea97; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 5370b965b7a945bb8f48b9ee23d83a76a947902e; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 0a43c015e98121c91a76154edf42280ce1a8a883; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 89bee03d2fb8c54119b38ac6c24e7d60fae036b6; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 1b8f787ef547230a3249bcf897221ef0cc78481b
- Anyone running Linux 3.8

## Description

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

ext4: fix warning in 'ext4\_da\_release\_space'

Syzkaller report issue as follows:
EXT4-fs (loop0): Free/Dirty block details
EXT4-fs (loop0): free\_blocks=0
EXT4-fs (loop0): dirty\_blocks=0
EXT4-fs (loop0): Block reservation details
EXT4-fs (loop0): i\_reserved\_data\_blocks=0
EXT4-fs warning (device loop0): ext4\_da\_release\_space:1527: ext4\_da\_release\_space: ino 18, to\_free 1 with only 0 reserved data blocks
------------\[ cut here \]------------
WARNING: CPU: 0 PID: 92 at fs/ext4/inode.c:1528 ext4\_da\_release\_space+0x25e/0x370 fs/ext4/inode.c:1524
Modules linked in:
CPU: 0 PID: 92 Comm: kworker/u4:4 Not tainted 6.0.0-syzkaller-09423-g493ffd6605b2 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: writeback wb\_workfn (flush-7:0)
RIP: 0010:ext4\_da\_release\_space+0x25e/0x370 fs/ext4/inode.c:1528
RSP: 0018:ffffc900015f6c90 EFLAGS: 00010296
RAX: 42215896cd52ea00 RBX: 0000000000000000 RCX: 42215896cd52ea00
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 1ffff1100e907d96 R08: ffffffff816aa79d R09: fffff520002bece5
R10: fffff520002bece5 R11: 1ffff920002bece4 R12: ffff888021fd2000
R13: ffff88807483ecb0 R14: 0000000000000001 R15: ffff88807483e740
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555569ba628 CR3: 000000000c88e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 ext4\_es\_remove\_extent+0x1ab/0x260 fs/ext4/extents\_status.c:1461
 mpage\_release\_unused\_pages+0x24d/0xef0 fs/ext4/inode.c:1589
 ext4\_writepages+0x12eb/0x3be0 fs/ext4/inode.c:2852
 do\_writepages+0x3c3/0x680 mm/page-writeback.c:2469
 \_\_writeback\_single\_inode+0xd1/0x670 fs/fs-writeback.c:1587
 writeback\_sb\_inodes+0xb3b/0x18f0 fs/fs-writeback.c:1870
 wb\_writeback+0x41f/0x7b0 fs/fs-writeback.c:2044
 wb\_do\_writeback fs/fs-writeback.c:2187 \[inline\]
 wb\_workfn+0x3cb/0xef0 fs/fs-writeback.c:2227
 process\_one\_work+0x877/0xdb0 kernel/workqueue.c:2289
 worker\_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret\_from\_fork+0x1f/0x30 arch/x86/entry/entry\_64.S:306
 \</TASK\>

Above issue may happens as follows:
ext4\_da\_write\_begin
  ext4\_create\_inline\_data
    ext4\_clear\_inode\_flag(inode, EXT4\_INODE\_EXTENTS);
    ext4\_set\_inode\_flag(inode, EXT4\_INODE\_INLINE\_DATA);
\_\_ext4\_ioctl
  ext4\_ext\_migrate -\> will lead to eh-\>eh\_entries not zero, and set extent flag
ext4\_da\_write\_begin
  ext4\_da\_convert\_inline\_data\_to\_extent
    ext4\_da\_write\_inline\_data\_begin
      ext4\_da\_map\_blocks
        ext4\_insert\_delayed\_block
	  if (!ext4\_es\_scan\_clu(inode, &ext4\_es\_is\_delonly, lblk))
	    if (!ext4\_es\_scan\_clu(inode, &ext4\_es\_is\_mapped, lblk))
	      ext4\_clu\_mapped(inode, EXT4\_B2C(sbi, lblk)); -\> will return 1
	       allocated = true;
          ext4\_es\_insert\_delayed\_block(inode, lblk, allocated);
ext4\_writepages
  mpage\_map\_and\_submit\_extent(handle, &mpd, &give\_up\_on\_write); -\> return -ENOSPC
  mpage\_release\_unused\_pages(&mpd, give\_up\_on\_write); -\> give\_up\_on\_write == 1
    ext4\_es\_remove\_extent
      ext4\_da\_release\_space(inode, reserved);
        if (unlikely(to\_free \> ei-\>i\_reserved\_data\_blocks))
	  -\> to\_free == 1  but ei-\>i\_reserved\_data\_blocks == 0
	  -\> then trigger warning as above

To solve above issue, forbid inode do migrate which has inline data.

## Affected and fixed versions

- Linux: \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 0de5ee103747fd3a24f1c010c79caabe35e8f0bb; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< c3bf1e95cfa7d950dc3c064d0c2e3d06b427bc63; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 890d738f569fa9412b70ba09f15407f17a52da20; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 72743d5598b9096950bbfd6a9b7f173d156eea97; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 5370b965b7a945bb8f48b9ee23d83a76a947902e; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 0a43c015e98121c91a76154edf42280ce1a8a883; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 89bee03d2fb8c54119b38ac6c24e7d60fae036b6; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 1b8f787ef547230a3249bcf897221ef0cc78481b (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- Upgrade Linux to 1b8f787ef547230a3249bcf897221ef0cc78481b 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-49880. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49880.md
Affected: Linux >= 67cf5b09a46f72e048501b84996f2f77bc42e947, < 0de5ee103747fd3a24f1c010c79caabe35e8f0bb; >= 67cf5b09a46f72e048501b84996f2f77bc42e947, < c3bf1e95cfa7d950dc3c064d0c2e3d06b427bc63; >= 67cf5b09a46f72e048501b84996f2f77bc42e947, < 890d738f569fa9412b70ba09f15407f17a52da20; >= 67cf5b09a46f72e048501b8…
Fixed in: Linux 0de5ee103747fd3a24f1c010c79caabe35e8f0bb, Linux 890d738f569fa9412b70ba09f15407f17a52da20, Linux 72743d5598b9096950bbfd6a9b7f173d156eea97, Linux 5370b965b7a945bb8f48b9ee23d83a76a947902e, Linux 0a43c015e98121c91a76154edf42280ce1a8a883, Linux 89bee03d2fb8c54119b38ac6c24e7d60fae036b6, Linux 1b8f7…

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-49880 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 0de5ee103747fd3a24f1c010c79caabe35e8f0bb; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< c3bf1e95cfa7d950dc3c064d0c2e3d06b427bc63; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 890d738f569fa9412b70ba09f15407f17a52da20; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 72743d5598b9096950bbfd6a9b7f173d156eea97; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 5370b965b7a945bb8f48b9ee23d83a76a947902e; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 0a43c015e98121c91a76154edf42280ce1a8a883; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 89bee03d2fb8c54119b38ac6c24e7d60fae036b6; \>= 67cf5b09a46f72e048501b84996f2f77bc42e947, \< 1b8f787ef547230a3249bcf897221ef0cc78481b; Linux 3.8.

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

Yes. Fixed in Linux 0de5ee103747fd3a24f1c010c79caabe35e8f0bb, Linux 890d738f569fa9412b70ba09f15407f17a52da20, Linux 72743d5598b9096950bbfd6a9b7f173d156eea97, Linux 5370b965b7a945bb8f48b9ee23d83a76a947902e, Linux 0a43c015e98121c91a76154edf42280ce1a8a883, Linux 89bee03d2fb8c54119b38ac6c24e7d60fae036b6, Linux 1b8f787ef547230a3249bcf897221ef0cc78481b. Upgrade Linux to 1b8f787ef547230a3249bcf897221ef0cc78481b or later.

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

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/0de5ee103747fd3a24f1c010c79caabe35e8f0bb>
- patch: <https://git.kernel.org/stable/c/c3bf1e95cfa7d950dc3c064d0c2e3d06b427bc63>
- patch: <https://git.kernel.org/stable/c/890d738f569fa9412b70ba09f15407f17a52da20>
- patch: <https://git.kernel.org/stable/c/72743d5598b9096950bbfd6a9b7f173d156eea97>
- patch: <https://git.kernel.org/stable/c/5370b965b7a945bb8f48b9ee23d83a76a947902e>
- patch: <https://git.kernel.org/stable/c/0a43c015e98121c91a76154edf42280ce1a8a883>
- patch: <https://git.kernel.org/stable/c/89bee03d2fb8c54119b38ac6c24e7d60fae036b6>
- patch: <https://git.kernel.org/stable/c/1b8f787ef547230a3249bcf897221ef0cc78481b>

## 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-49880>

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