cifs: prevent use-after-free by freeing the cfile later
In the Linux kernel, the following vulnerability has been resolved: cifs: prevent use-after-free by freeing the cfile later In smb2_compound_op we have a possible use-after-free which can cause hard to debug problems later on. This was revealed during stress testing with KASAN enabled kernel. Fixing it by moving the cfile free call to a few lines below, after the usage.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.39, 6.3.13, 6.4.4
- CVEs
- CVE-2023-53377
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 17:47 UTC · Revision 1
Source evidence
cifs: prevent use-after-free by freeing the cfile later
core-osv · Original sourcePublished 18 Sept 2025, 13:33 UTC
In the Linux kernel, the following vulnerability has been resolved: cifs: prevent use-after-free by freeing the cfile later In smb2_compound_op we have a possible use-after-free which can cause hard to debug problems later on. This was revealed during stress testing with KASAN enabled kernel. Fixing it by moving the cfile free call to a few lines below, after the usage.
osv:CVE-2023-53377
Kernel
Fixed versions: 6.1.39, 6.3.13, 6.4.4
Complete source record
{
"id": "73b1a983b0ed30bd62a10db0c16463c2b40b36b650ef2f794d57953daa61315c",
"url": "https://osv.dev/vulnerability/CVE-2023-53377",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "cifs: prevent use-after-free by freeing the cfile later",
"summary": "In the Linux kernel, the following vulnerability has been resolved: cifs: prevent use-after-free by freeing the cfile later In smb2_compound_op we have a possible use-after-free which can cause hard to debug problems later on. This was revealed during stress testing with KASAN enabled kernel. Fixing it by moving the cfile free call to a few lines below, after the usage.",
"evidence": "osv:CVE-2023-53377",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.39",
"evidence": "/affected/1/ranges"
},
{
"value": "6.3.13",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2023-53377",
"aliases": [
"CVE-2023-53377"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "76894f3e2f71177747b8b4763fb180e800279585"
},
{
"fixed": "4fe07d55a5461e66a55fbefb57f85ff0facea32b"
},
{
"fixed": "b6353518ef8180816e863aa23b06456f395404d6"
},
{
"fixed": "d017880782cf71f8820ee4a2002843893176501d"
},
{
"fixed": "33f736187d08f6bc822117629f263b97d3df4165"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.0.16"
},
{
"fixed": "6.1"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2d046892a493d9760c35fdaefc3017f27f91b621"
}
]
}
],
"versions": [
"v6.0.19",
"v6.0.18",
"v6.0.17",
"v6.0.16"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53377.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.39"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.3.13"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.4.0"
},
{
"fixed": "6.4.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53377.json"
}
}
],
"modified": "2026-10-28T02:30:22.001228830Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/33f736187d08f6bc822117629f263b97d3df4165",
"https://git.kernel.org/stable/c/4fe07d55a5461e66a55fbefb57f85ff0facea32b",
"https://git.kernel.org/stable/c/b6353518ef8180816e863aa23b06456f395404d6",
"https://git.kernel.org/stable/c/d017880782cf71f8820ee4a2002843893176501d",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53377.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53377",
"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/2023/53xxx/CVE-2023-53377.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53377",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487945,
"published_at": "2025-09-18T13:33:23.162+00:00"
}