# CVE-2026-139020: gfs2: reject invalid inode sizes

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:27:07.802Z
- Modified: 2026-11-30T14:18:05.613Z
- Assigned by: Linux

## Description

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

gfs2: reject invalid inode sizes

A corrupted GFS2 image can store a dinode size that is larger than what VFS
i_size can represent. gfs2_dinode_in() reads the on-disk di_size as a u64 and
writes it directly into inode->i_size. If the value is larger than S64_MAX, the
incore i_size becomes negative. That negative value can bypass the existing
stuffed inode size check:

inode->i_size > gfs2_max_stuffed_size(ip)

Later, gfs2_quotad may try to sync the quota file and unstuff the quota inode.
gfs2_unstuffer_folio() reads the negative i_size into an unsigned length and
passes it to memcpy(), turning it into a huge copy size and triggering a
out-of-bound issue.

Reject dinodes whose size exceeds sb->s_maxbytes before storing the value in
inode->i_size. Also make the stuffed inode check use the raw on-disk size while
it is still unsigned.

(As written by CVE List.)

## Affected

- Linux Linux: from 7c414f6f06e9a3934901b6edc3177ae5a1e07094 before 8db6c08e0da0e8f13845128bc975f1f2656060a5; from 46c9088cabd4d0469fdb61ac2a9c5003057fe94d before 8a76ac82ec1a5bd5f378d4174e0dfc8d35d89340; from d458a0984429c2d47e60254f5bc4119cbafe83a2 before 435cf27c40b01315e33918c20d529f4ace0c5f57; from 70376c7ff31221f1d21db5611d8209e677781d3a before 7a81c9cf915cc899db84e0fc02f5c6b545eaed4b; from 70376c7ff31221f1d21db5611d8209e677781d3a before bb88934553eb89573145cb01a413860771aed97f; from 70376c7ff31221f1d21db5611d8209e677781d3a before bd2919d4491068974c6348961d7af6dc0e7b9108; from 70376c7ff31221f1d21db5611d8209e677781d3a before 3f749d1755c1b82f7c102bd9522ea3b5039d3171; from 70376c7ff31221f1d21db5611d8209e677781d3a before 33ed0a0567e0abe66ea65e89dad2e35082890fbe; 45df749f827c286adbc951f2a4865b67f0442ba9; 4d4cb76636134bf9a0c9c3432dae936f99954586; from 5.10.177 before 5.10.275; from 5.15.93 before 5.15.226; and 4 more (not affected: before 6.2; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/8db6c08e0da0e8f13845128bc975f1f2656060a5>
- <https://git.kernel.org/stable/c/8a76ac82ec1a5bd5f378d4174e0dfc8d35d89340>
- <https://git.kernel.org/stable/c/435cf27c40b01315e33918c20d529f4ace0c5f57>
- <https://git.kernel.org/stable/c/7a81c9cf915cc899db84e0fc02f5c6b545eaed4b>
- <https://git.kernel.org/stable/c/bb88934553eb89573145cb01a413860771aed97f>
- <https://git.kernel.org/stable/c/bd2919d4491068974c6348961d7af6dc0e7b9108>
- <https://git.kernel.org/stable/c/3f749d1755c1b82f7c102bd9522ea3b5039d3171>
- <https://git.kernel.org/stable/c/33ed0a0567e0abe66ea65e89dad2e35082890fbe>

## Sources

- CVE List: [CVE-2026-139020](https://www.cve.org/CVERecord?id=CVE-2026-139020), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139020](https://nvd.nist.gov/vuln/detail/CVE-2026-139020), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139020 · Whole record: https://cve.day/CVE-2026-139020.json · Rebuilt by cve.day 2026-11-30T14:32:45.450Z
