nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode() During unmount process of nilfs2, nothing holds nilfs_root structure after nilfs2 detaches its writer in nilfs_detach_log_writer(). However, since nilfs_evict_inode() uses nilfs_root for some cleanup operations, it may cause use-after-free read if inodes are left in "garbage_list" and released by nilfs_dispose_list() at the end of nilfs_detach_log_writer(). Fix this issue by modifying nilfs_evict_inode() to only clear inode without additional metadata changes that use nilfs_root if the file system is degraded to read-only or the writer is detached.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.14.316, 4.19.284, 5.10.181, 5.15.113, 5.4.244, 6.1.30, 6.3.4
- CVEs
- CVE-2023-53804
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:47 UTC · Revision 1
Source evidence
nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()
core-osv · Original sourcePublished 9 Dec 2025, 00:01 UTC
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode() During unmount process of nilfs2, nothing holds nilfs_root structure after nilfs2 detaches its writer in nilfs_detach_log_writer(). However, since nilfs_evict_inode() uses nilfs_root for some cleanup operations, it may cause use-after-free read if inodes are left in "garbage_list" and released by nilfs_dispose_list() at the end of nilfs_detach_log_writer(). Fix this issue by modifying nilfs_evict_inode() to only clear inode without additional metadata changes that use nilfs_root if the file system is degraded to read-only or the writer is detached.
osv:CVE-2023-53804
Kernel
Fixed versions: 4.14.316, 4.19.284, 5.4.244, 5.10.181, 5.15.113, 6.1.30, 6.3.4
Complete source record
{
"id": "9a20301dfd41fe46b10f75b2b52f3f035702736d1abc28259ad742c0bf2eebe6",
"url": "https://osv.dev/vulnerability/CVE-2023-53804",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode() During unmount process of nilfs2, nothing holds nilfs_root structure after nilfs2 detaches its writer in nilfs_detach_log_writer(). However, since nilfs_evict_inode() uses nilfs_root for some cleanup operations, it may cause use-after-free read if inodes are left in \"garbage_list\" and released by nilfs_dispose_list() at the end of nilfs_detach_log_writer(). Fix this issue by modifying nilfs_evict_inode() to only clear inode without additional metadata changes that use nilfs_root if the file system is degraded to read-only or the writer is detached.",
"evidence": "osv:CVE-2023-53804",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.14.316",
"evidence": "/affected/1/ranges"
},
{
"value": "4.19.284",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.244",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.181",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.113",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.30",
"evidence": "/affected/1/ranges"
},
{
"value": "6.3.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2023-53804",
"aliases": [
"CVE-2023-53804"
],
"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": "e912a5b66837ee89fb025e67b5efeaa11930c2ce"
},
{
"fixed": "f31e18131ee2ce80a4da5c808221d25b1ae9ad6d"
},
{
"fixed": "2a782ea8ebd712a458466e3103e2881b4f886cb5"
},
{
"fixed": "116d53f09ff52e6f98e3fe1f85d8898d6ba26c68"
},
{
"fixed": "6b4205ea97901f822004e6c8d59484ccfda03faa"
},
{
"fixed": "b8427b8522d9ede53015ba45a9978ba68d1162f5"
},
{
"fixed": "acc2a40e428f12780004e1e9fce4722d88f909fd"
},
{
"fixed": "fb8e8d58f116d069e5939e1f786ac84e7fa4533e"
},
{
"fixed": "9b5a04ac3ad9898c4745cba46ea26de74ba56a8e"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53804.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.6.37"
},
{
"fixed": "4.14.316"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.15.0"
},
{
"fixed": "4.19.284"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.244"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.181"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.113"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.30"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.3.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53804.json"
}
}
],
"modified": "2026-10-28T02:30:22.285325344Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/116d53f09ff52e6f98e3fe1f85d8898d6ba26c68",
"https://git.kernel.org/stable/c/2a782ea8ebd712a458466e3103e2881b4f886cb5",
"https://git.kernel.org/stable/c/6b4205ea97901f822004e6c8d59484ccfda03faa",
"https://git.kernel.org/stable/c/9b5a04ac3ad9898c4745cba46ea26de74ba56a8e",
"https://git.kernel.org/stable/c/acc2a40e428f12780004e1e9fce4722d88f909fd",
"https://git.kernel.org/stable/c/b8427b8522d9ede53015ba45a9978ba68d1162f5",
"https://git.kernel.org/stable/c/f31e18131ee2ce80a4da5c808221d25b1ae9ad6d",
"https://git.kernel.org/stable/c/fb8e8d58f116d069e5939e1f786ac84e7fa4533e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53804.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53804",
"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-53804.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53804",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488759,
"published_at": "2025-12-09T00:01:01.787+00:00"
}