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

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-11-30 · Modified: 2026-11-30
- Aliases: DEBIAN-CVE-2026-139020, UBUNTU-CVE-2026-139020
- Record: https://cvemate.com/vulnerability/CVE-2026-139020 · JSON: https://cvemate.com/vulnerability/CVE-2026-139020/json

## Description

```text
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.
```

## Signals

- CVSS: none published
- EPSS: 0.222%, percentile 13.597%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 172)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.4-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded)

## 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>
- <https://security-tracker.debian.org/tracker/CVE-2026-139020>
- <https://ubuntu.com/security/CVE-2026-139020>
- <https://www.cve.org/CVERecord?id=CVE-2026-139020>

---

Data as of 2026-12-05T03:57:20.442Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
