CVE-2023-53616
kernel: jfs: fix invalid free of JFS_IP(ipimap)->i_imap in diUnmount
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 4, 2025
Updated · August 5, 2026
Description
A double-free vulnerability was found in the Linux kernel JFS filesystem's inode map cleanup. A local user with privileges to mount filesystems can mount a JFS filesystem, perform a remount operation that fails after freeing internal structures, then unmount the filesystem, causing the cleanup code to free the same memory twice, which results in memory corruption and denial of service through kernel crash.
Statement
During JFS filesystem cleanup, diUnmount() fails to set JFS_IP(ipimap)->i_imap to NULL after freeing it. When jfs_remount() frees this structure but then diMount() fails during remount processing, the pointer remains non-NULL. On subsequent filesystem unmount, diUnmount() executes again and attempts to free the already-freed pointer, causing a double-free detected by KASAN.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-1341 · Multiple Releases of Same Resource or Handle