# CVE-2026-45961: gfs2: fix memory leaks in gfs2\_fill\_super error path

> 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, NVD) `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.16% (percentile 3, 2026-11-30)
- **CWE:** CWE-401
- **Published:** 2026-05-27T12:18:17.637Z
- **Modified:** 2026-11-06T16:18:54.343Z

## Who should check

- Anyone running Linux \>= c2191e507147b1a22e9170ebb2aaa0f2902fcbfa, \< 1fcca0f021ac8e2d19efddb6a733e8b6d4a3fb72; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< 4db5e4c8f1103b21005ab9e7fe9a5d2554438b74; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< d049ba2c1723110f82227eaf521427980811169b; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< 4456be93464a599eac0eb2afa63b5d662e1599d8; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< e54229ecf49add8451d5f765a32c86ab4446e06c; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< da6f5bbc2e7902f578b503f2a4c3d8d09ca4b102; 2f8623377f3e0cfaa80558631b8694d02a492b4c; c713ebf2fe3f469e4af4de60a3427689ffb7c5d7; 9fc32dad3cdba18669c71893f3e6d96905b39b3f; \>= 6.1.16, \< 6.1.191; …
- Anyone running Linux 6.3

## Description

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

gfs2: fix memory leaks in gfs2\_fill\_super error path

Fix two memory leaks in the gfs2\_fill\_super() error handling path when
transitioning a filesystem to read-write mode fails.

First leak: kthread objects (thread\_struct, task\_struct, etc.)
When gfs2\_freeze\_lock\_shared() fails after init\_threads() succeeds, the
created kernel threads (logd and quotad) are never destroyed. This
occurs because the fail\_per\_node label doesn't call
gfs2\_destroy\_threads().

Second leak: quota bitmap buffer (8192 bytes)
When gfs2\_make\_fs\_rw() fails after gfs2\_quota\_init() succeeds but
before other operations complete, the allocated quota bitmap is never
freed.

The fix moves thread cleanup to the fail\_per\_node label to handle all
error paths uniformly. gfs2\_destroy\_threads() is safe to call
unconditionally as it checks for NULL pointers. Quota cleanup is added
in gfs2\_make\_fs\_rw() to properly handle the withdrawal case where
quota initialization succeeds but the filesystem is then withdrawn.

Thread leak backtrace (gfs2\_freeze\_lock\_shared failure):
  unreferenced object 0xffff88801d7bca80 (size 4480):
    copy\_process+0x3a1/0x4670 kernel/fork.c:2422
    kernel\_clone+0xf3/0x6e0 kernel/fork.c:2779
    kthread\_create\_on\_node+0x100/0x150 kernel/kthread.c:478
    init\_threads+0xab/0x350 fs/gfs2/ops\_fstype.c:611
    gfs2\_fill\_super+0xe5c/0x1240 fs/gfs2/ops\_fstype.c:1265

Quota leak backtrace (gfs2\_make\_fs\_rw failure):
  unreferenced object 0xffff88812de7c000 (size 8192):
    gfs2\_quota\_init+0xe5/0x820 fs/gfs2/quota.c:1409
    gfs2\_make\_fs\_rw+0x7a/0xe0 fs/gfs2/super.c:149
    gfs2\_fill\_super+0xfbb/0x1240 fs/gfs2/ops\_fstype.c:1275

## Affected and fixed versions

- Linux: \>= c2191e507147b1a22e9170ebb2aaa0f2902fcbfa, \< 1fcca0f021ac8e2d19efddb6a733e8b6d4a3fb72; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< 4db5e4c8f1103b21005ab9e7fe9a5d2554438b74; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< d049ba2c1723110f82227eaf521427980811169b; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< 4456be93464a599eac0eb2afa63b5d662e1599d8; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< e54229ecf49add8451d5f765a32c86ab4446e06c; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< da6f5bbc2e7902f578b503f2a4c3d8d09ca4b102; 2f8623377f3e0cfaa80558631b8694d02a492b4c; c713ebf2fe3f469e4af4de60a3427689ffb7c5d7; 9fc32dad3cdba18669c71893f3e6d96905b39b3f; \>= 6.1.16, \< 6.1.191; … (cvelist)
- Linux: 6.3 (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-45961. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45961.md
Affected: Linux >= c2191e507147b1a22e9170ebb2aaa0f2902fcbfa, < 1fcca0f021ac8e2d19efddb6a733e8b6d4a3fb72; >= b66f723bb552ad59c2acb5d45ea45c890f84498b, < 4db5e4c8f1103b21005ab9e7fe9a5d2554438b74; >= b66f723bb552ad59c2acb5d45ea45c890f84498b, < d049ba2c1723110f82227eaf521427980811169b; >= b66f723bb552ad59c2acb5d…
Fixed in: Linux 1fcca0f021ac8e2d19efddb6a733e8b6d4a3fb72, Linux 4db5e4c8f1103b21005ab9e7fe9a5d2554438b74, Linux 4456be93464a599eac0eb2afa63b5d662e1599d8, Linux 6.1.191

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

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

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

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

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

Linux \>= c2191e507147b1a22e9170ebb2aaa0f2902fcbfa, \< 1fcca0f021ac8e2d19efddb6a733e8b6d4a3fb72; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< 4db5e4c8f1103b21005ab9e7fe9a5d2554438b74; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< d049ba2c1723110f82227eaf521427980811169b; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< 4456be93464a599eac0eb2afa63b5d662e1599d8; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< e54229ecf49add8451d5f765a32c86ab4446e06c; \>= b66f723bb552ad59c2acb5d45ea45c890f84498b, \< da6f5bbc2e7902f578b503f2a4c3d8d09ca4b102; 2f8623377f3e0cfaa80558631b8694d02a492b4c; c713ebf2fe3f469e4af4de60a3427689ffb7c5d7; 9fc32dad3cdba18669c71893f3e6d96905b39b3f; \>= 6.1.16, \< 6.1.191; …; Linux 6.3.

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

Yes. Fixed in Linux 1fcca0f021ac8e2d19efddb6a733e8b6d4a3fb72, Linux 4db5e4c8f1103b21005ab9e7fe9a5d2554438b74, Linux 4456be93464a599eac0eb2afa63b5d662e1599d8, Linux 6.1.191. No fix listed yet: follow the vendor advisory.

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

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/e54229ecf49add8451d5f765a32c86ab4446e06c>
- patch: <https://git.kernel.org/stable/c/da6f5bbc2e7902f578b503f2a4c3d8d09ca4b102>
- other: <https://git.kernel.org/stable/c/1fcca0f021ac8e2d19efddb6a733e8b6d4a3fb72>
- other: <https://git.kernel.org/stable/c/4db5e4c8f1103b21005ab9e7fe9a5d2554438b74>
- other: <https://git.kernel.org/stable/c/d049ba2c1723110f82227eaf521427980811169b>
- other: <https://git.kernel.org/stable/c/4456be93464a599eac0eb2afa63b5d662e1599d8>

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

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