UnratedFix available
ocfs2: fix double free in user_cluster_connect()
Type: advisorySources: OSV
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.246, 5.15.195, 5.4.301, 6.1.156, 6.12.53, 6.17.3, 6.6.112
- CVEs
- CVE-2025-40055
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:25 UTC · Revision 1
Source evidence
ocfs2: fix double free in user_cluster_connect()
core-osv · Original sourcePublished 28 Oct 2025, 11:48 UTC
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.
osv:CVE-2025-40055
Kernel
Fixed versions: 5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112, 6.12.53, 6.17.3
Complete source record
{
"id": "22485ba90a16d56693311974602020f137ecabc8cead07ec2059ee117ff88067",
"url": "https://osv.dev/vulnerability/CVE-2025-40055",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ocfs2: fix double free in user_cluster_connect()",
"summary": "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.",
"evidence": "osv:CVE-2025-40055",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.301",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.246",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.195",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.156",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.112",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.53",
"evidence": "/affected/1/ranges"
},
{
"value": "6.17.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-40055",
"aliases": [
"CVE-2025-40055"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c994c2ebdbbc391a42f177c8eb7882ebf3f142d8"
},
{
"fixed": "283333079d96c84baa91f0c62b5e0cbec246b7a2"
},
{
"fixed": "f992bc72f681c32a682d474a29c2135a64d4f4e5"
},
{
"fixed": "827c8efa0d1afe817b90f3618afff552e88348d2"
},
{
"fixed": "bfe011297ddd2d0cd64752978baaa0c04cd20573"
},
{
"fixed": "7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2"
},
{
"fixed": "694d5b401036a614f8080085a9de6f86ff0742dc"
},
{
"fixed": "892f41e12c8689130d552a9eb2b77bafd26484ab"
},
{
"fixed": "8f45f089337d924db24397f55697cda0e6960516"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40055.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.14.0"
},
{
"fixed": "5.4.301"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.246"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.195"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.156"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.112"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.53"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.17.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40055.json"
}
}
],
"modified": "2026-10-28T02:30:22.010347846Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/283333079d96c84baa91f0c62b5e0cbec246b7a2",
"https://git.kernel.org/stable/c/694d5b401036a614f8080085a9de6f86ff0742dc",
"https://git.kernel.org/stable/c/7e76fe9dfadbc00364d7523d5a109e9d3e4a7db2",
"https://git.kernel.org/stable/c/827c8efa0d1afe817b90f3618afff552e88348d2",
"https://git.kernel.org/stable/c/892f41e12c8689130d552a9eb2b77bafd26484ab",
"https://git.kernel.org/stable/c/8f45f089337d924db24397f55697cda0e6960516",
"https://git.kernel.org/stable/c/bfe011297ddd2d0cd64752978baaa0c04cd20573",
"https://git.kernel.org/stable/c/f992bc72f681c32a682d474a29c2135a64d4f4e5",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40055.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-40055",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40055.json"
}
},
"related_cves": [
{
"value": "CVE-2025-40055",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 488334,
"published_at": "2025-10-28T11:48:29.665+00:00"
}