# CVE-2025-40055: ocfs2: fix double free in user\_cluster\_connect()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-28T11:48:29.665Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 283333079d96c84baa91f0c62b5e0cbec246b7a2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< f992bc72f681c32a682d474a29c2135a64d4f4e5; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 827c8efa0d1afe817b90f3618afff552e88348d2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< bfe011297ddd2d0cd64752978baaa0c04cd20573; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 694d5b401036a614f8080085a9de6f86ff0742dc; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 892f41e12c8689130d552a9eb2b77bafd26484ab; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 8f45f089337d924db24397f55697cda0e6960516
- Anyone running Linux 3.14

## Description

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

ocfs2: fix double free in user\_cluster\_connect()

user\_cluster\_disconnect() frees "conn-\>cc\_private" which is "lc" but then
the error handling frees "lc" a second time.  Set "lc" to NULL on this
path to avoid a double free.

## Affected and fixed versions

- Linux: \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 283333079d96c84baa91f0c62b5e0cbec246b7a2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< f992bc72f681c32a682d474a29c2135a64d4f4e5; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 827c8efa0d1afe817b90f3618afff552e88348d2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< bfe011297ddd2d0cd64752978baaa0c04cd20573; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 694d5b401036a614f8080085a9de6f86ff0742dc; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 892f41e12c8689130d552a9eb2b77bafd26484ab; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 8f45f089337d924db24397f55697cda0e6960516 (cvelist)
- Linux: 3.14 (cvelist)

## Mitigation

- Upgrade Linux to 8f45f089337d924db24397f55697cda0e6960516 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40055.md
Affected: Linux >= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, < 283333079d96c84baa91f0c62b5e0cbec246b7a2; >= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, < f992bc72f681c32a682d474a29c2135a64d4f4e5; >= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, < 827c8efa0d1afe817b90f3618afff552e88348d2; >= c994c2ebdbbc391a42f177c…
Fixed in: Linux 283333079d96c84baa91f0c62b5e0cbec246b7a2, Linux 827c8efa0d1afe817b90f3618afff552e88348d2, Linux 7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2, Linux 694d5b401036a614f8080085a9de6f86ff0742dc, Linux 892f41e12c8689130d552a9eb2b77bafd26484ab, Linux 8f45f089337d924db24397f55697cda0e6960516

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-2025-40055 being exploited?

There is no confirmed exploitation: CVE-2025-40055 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-2025-40055?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40055?

Linux \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 283333079d96c84baa91f0c62b5e0cbec246b7a2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< f992bc72f681c32a682d474a29c2135a64d4f4e5; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 827c8efa0d1afe817b90f3618afff552e88348d2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< bfe011297ddd2d0cd64752978baaa0c04cd20573; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 694d5b401036a614f8080085a9de6f86ff0742dc; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 892f41e12c8689130d552a9eb2b77bafd26484ab; \>= c994c2ebdbbc391a42f177c8eb7882ebf3f142d8, \< 8f45f089337d924db24397f55697cda0e6960516; Linux 3.14.

### Is there a fix for CVE-2025-40055?

Yes. Fixed in Linux 283333079d96c84baa91f0c62b5e0cbec246b7a2, Linux 827c8efa0d1afe817b90f3618afff552e88348d2, Linux 7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2, Linux 694d5b401036a614f8080085a9de6f86ff0742dc, Linux 892f41e12c8689130d552a9eb2b77bafd26484ab, Linux 8f45f089337d924db24397f55697cda0e6960516. Upgrade Linux to 8f45f089337d924db24397f55697cda0e6960516 or later.

### How do I check if I'm affected by CVE-2025-40055?

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

- other: <https://git.kernel.org/stable/c/283333079d96c84baa91f0c62b5e0cbec246b7a2>
- other: <https://git.kernel.org/stable/c/f992bc72f681c32a682d474a29c2135a64d4f4e5>
- other: <https://git.kernel.org/stable/c/827c8efa0d1afe817b90f3618afff552e88348d2>
- other: <https://git.kernel.org/stable/c/bfe011297ddd2d0cd64752978baaa0c04cd20573>
- other: <https://git.kernel.org/stable/c/7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2>
- other: <https://git.kernel.org/stable/c/694d5b401036a614f8080085a9de6f86ff0742dc>
- other: <https://git.kernel.org/stable/c/892f41e12c8689130d552a9eb2b77bafd26484ab>
- other: <https://git.kernel.org/stable/c/8f45f089337d924db24397f55697cda0e6960516>

## 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-2025-40055>

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