# CVE-2026-45984: gfs2: Fix use-after-free in iomap inline data write path

> 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:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; 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.47% (percentile 33, 2026-11-26)
- **CWE:** CWE-416, CWE-826
- **Published:** 2026-05-27T12:18:42.964Z
- **Modified:** 2026-10-19T20:18:23.040Z

## Who should check

- Anyone running Linux \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 1403989d1b502f4a2c0d0b42ccf1c25748442eff; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 1cae1bafdf9caa9b462b19af06b1a06902e4e142; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 764c3c84b5683e608f43735c803a5f415046686c; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< d87268326b277af3665237ac76a73dd9fa8e21b4; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 87d4954b5c59735a99ea98cb208d47130f6dce7d; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 6d76febba07c40bcf358f63216d36ea68cf1c215; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 815ddd27c0c7171a99fe802fdb19098ddef8b19d; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< faddeb848305e79db89ee0479bb0e33380656321
- Anyone running Linux 5.2

## Description

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

gfs2: Fix use-after-free in iomap inline data write path

The inline data buffer head (dibh) is being released prematurely in
gfs2\_iomap\_begin() via release\_metapath() while iomap-\>inline\_data
still points to dibh-\>b\_data. This causes a use-after-free when
iomap\_write\_end\_inline() later attempts to write to the inline data
area.

The bug sequence:
1. gfs2\_iomap\_begin() calls gfs2\_meta\_inode\_buffer() to read inode
   metadata into dibh
2. Sets iomap-\>inline\_data = dibh-\>b\_data + sizeof(struct gfs2\_dinode)
3. Calls release\_metapath() which calls brelse(dibh), dropping refcount
   to 0
4. kswapd reclaims the page (~39ms later in the syzbot report)
5. iomap\_write\_end\_inline() tries to memcpy() to iomap-\>inline\_data
6. KASAN detects use-after-free write to freed memory

Fix by storing dibh in iomap-\>private and incrementing its refcount
with get\_bh() in gfs2\_iomap\_begin(). The buffer is then properly
released in gfs2\_iomap\_end() after the inline write completes,
ensuring the page stays alive for the entire iomap operation.

Note: A C reproducer is not available for this issue. The fix is based
on analysis of the KASAN report and code review showing the buffer head
is freed before use.

\[agruenba: Take buffer head reference in gfs2\_iomap\_begin() to avoid
leaks in gfs2\_iomap\_get() and gfs2\_iomap\_alloc().\]

## Affected and fixed versions

- Linux: \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 1403989d1b502f4a2c0d0b42ccf1c25748442eff; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 1cae1bafdf9caa9b462b19af06b1a06902e4e142; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 764c3c84b5683e608f43735c803a5f415046686c; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< d87268326b277af3665237ac76a73dd9fa8e21b4; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 87d4954b5c59735a99ea98cb208d47130f6dce7d; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 6d76febba07c40bcf358f63216d36ea68cf1c215; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 815ddd27c0c7171a99fe802fdb19098ddef8b19d; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< faddeb848305e79db89ee0479bb0e33380656321 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-45984.md
Affected: Linux >= d0a22a4b03b8475b7aa3fa41243c26c291407844, < 1403989d1b502f4a2c0d0b42ccf1c25748442eff; >= d0a22a4b03b8475b7aa3fa41243c26c291407844, < 1cae1bafdf9caa9b462b19af06b1a06902e4e142; >= d0a22a4b03b8475b7aa3fa41243c26c291407844, < 764c3c84b5683e608f43735c803a5f415046686c; >= d0a22a4b03b8475b7aa3fa4…
Fixed in: Linux 1403989d1b502f4a2c0d0b42ccf1c25748442eff, Linux 1cae1bafdf9caa9b462b19af06b1a06902e4e142, Linux 764c3c84b5683e608f43735c803a5f415046686c, Linux 87d4954b5c59735a99ea98cb208d47130f6dce7d, Linux 6d76febba07c40bcf358f63216d36ea68cf1c215, Linux 815ddd27c0c7171a99fe802fdb19098ddef8b19d

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-2026-45984 being exploited?

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

### How serious is CVE-2026-45984?

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

### Which versions are affected by CVE-2026-45984?

Linux \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 1403989d1b502f4a2c0d0b42ccf1c25748442eff; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 1cae1bafdf9caa9b462b19af06b1a06902e4e142; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 764c3c84b5683e608f43735c803a5f415046686c; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< d87268326b277af3665237ac76a73dd9fa8e21b4; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 87d4954b5c59735a99ea98cb208d47130f6dce7d; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 6d76febba07c40bcf358f63216d36ea68cf1c215; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< 815ddd27c0c7171a99fe802fdb19098ddef8b19d; \>= d0a22a4b03b8475b7aa3fa41243c26c291407844, \< faddeb848305e79db89ee0479bb0e33380656321; Linux 5.2.

### Is there a fix for CVE-2026-45984?

Yes. Fixed in Linux 1403989d1b502f4a2c0d0b42ccf1c25748442eff, Linux 1cae1bafdf9caa9b462b19af06b1a06902e4e142, Linux 764c3c84b5683e608f43735c803a5f415046686c, Linux 87d4954b5c59735a99ea98cb208d47130f6dce7d, Linux 6d76febba07c40bcf358f63216d36ea68cf1c215, Linux 815ddd27c0c7171a99fe802fdb19098ddef8b19d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-45984?

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

- vendor: <https://access.redhat.com/errata/RHSA-2026:61692>
- vendor: <https://access.redhat.com/errata/RHSA-2026:63189>
- vendor: <https://access.redhat.com/errata/RHSA-2026:51603>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36767>
- vendor: <https://access.redhat.com/errata/RHSA-2026:38902>
- vendor: <https://access.redhat.com/errata/RHSA-2026:27789>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59143>
- vendor: <https://access.redhat.com/errata/RHSA-2026:33743>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59146>
- vendor: <https://access.redhat.com/errata/RHSA-2026:35894>
- vendor: <https://access.redhat.com/errata/RHSA-2026:55444>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59142>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59147>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59145>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59148>
- vendor: <https://access.redhat.com/errata/RHSA-2026:59149>
- vendor: <https://access.redhat.com/errata/RHSA-2026:36049>
- vendor: <https://access.redhat.com/errata/RHSA-2026:51604>
- patch: <https://git.kernel.org/stable/c/1403989d1b502f4a2c0d0b42ccf1c25748442eff>
- patch: <https://git.kernel.org/stable/c/1cae1bafdf9caa9b462b19af06b1a06902e4e142>
- patch: <https://git.kernel.org/stable/c/764c3c84b5683e608f43735c803a5f415046686c>
- patch: <https://git.kernel.org/stable/c/d87268326b277af3665237ac76a73dd9fa8e21b4>
- patch: <https://git.kernel.org/stable/c/87d4954b5c59735a99ea98cb208d47130f6dce7d>
- patch: <https://git.kernel.org/stable/c/6d76febba07c40bcf358f63216d36ea68cf1c215>
- patch: <https://git.kernel.org/stable/c/815ddd27c0c7171a99fe802fdb19098ddef8b19d>
- patch: <https://git.kernel.org/stable/c/faddeb848305e79db89ee0479bb0e33380656321>
- other: <https://access.redhat.com/security/cve/CVE-2026-45984>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2481922>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45984.json>

## 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-2026-45984>

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