# CVE-2023-54127: fs/jfs: prevent double-free in dbUnmount() after failed jfs\_remount()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **Published:** 2025-12-24T13:06:45.380Z
- **Modified:** 2026-08-05T09:17:27.521Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 798c5f6f98bc9045593d4b3a65c32f05d97bd0e6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aef6507e85475e30831c30405d785c7ed976ea4a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b12ccbfdf6539ef0157868f69fcae0b7f7a072b3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6f8b34458948ffca2fe90cd8c614e3fa2ebe0b27; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aa5b019a3e0f7f54f4e5370c1af827f6b00fd26b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f7a36448f51d08d3a83f1514abcca4b680bcd3c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f71c4bb3ec08dfcbd201350a6a0a914c4e6a9e3f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cade5397e5461295f3cb87880534b6a07cafa427
- Anyone running Linux 2.6.12

## Description

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

fs/jfs: prevent double-free in dbUnmount() after failed jfs\_remount()

Syzkaller reported the following issue:
==================================================================
BUG: KASAN: double-free in slab\_free mm/slub.c:3787 \[inline\]
BUG: KASAN: double-free in \_\_kmem\_cache\_free+0x71/0x110 mm/slub.c:3800
Free of addr ffff888086408000 by task syz-executor.4/12750
\[...\]
Call Trace:
 \<TASK\>
\[...\]
 kasan\_report\_invalid\_free+0xac/0xd0 mm/kasan/report.c:482
 \_\_\_\_kasan\_slab\_free+0xfb/0x120
 kasan\_slab\_free include/linux/kasan.h:177 \[inline\]
 slab\_free\_hook mm/slub.c:1781 \[inline\]
 slab\_free\_freelist\_hook+0x12e/0x1a0 mm/slub.c:1807
 slab\_free mm/slub.c:3787 \[inline\]
 \_\_kmem\_cache\_free+0x71/0x110 mm/slub.c:3800
 dbUnmount+0xf4/0x110 fs/jfs/jfs\_dmap.c:264
 jfs\_umount+0x248/0x3b0 fs/jfs/jfs\_umount.c:87
 jfs\_put\_super+0x86/0x190 fs/jfs/super.c:194
 generic\_shutdown\_super+0x130/0x310 fs/super.c:492
 kill\_block\_super+0x79/0xd0 fs/super.c:1386
 deactivate\_locked\_super+0xa7/0xf0 fs/super.c:332
 cleanup\_mnt+0x494/0x520 fs/namespace.c:1291
 task\_work\_run+0x243/0x300 kernel/task\_work.c:179
 resume\_user\_mode\_work include/linux/resume\_user\_mode.h:49 \[inline\]
 exit\_to\_user\_mode\_loop+0x124/0x150 kernel/entry/common.c:171
 exit\_to\_user\_mode\_prepare+0xb2/0x140 kernel/entry/common.c:203
 \_\_syscall\_exit\_to\_user\_mode\_work kernel/entry/common.c:285 \[inline\]
 syscall\_exit\_to\_user\_mode+0x26/0x60 kernel/entry/common.c:296
 do\_syscall\_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[...\]
 \</TASK\>

Allocated by task 13352:
 kasan\_save\_stack mm/kasan/common.c:45 \[inline\]
 kasan\_set\_track+0x3d/0x60 mm/kasan/common.c:52
 \_\_\_\_kasan\_kmalloc mm/kasan/common.c:371 \[inline\]
 \_\_kasan\_kmalloc+0x97/0xb0 mm/kasan/common.c:380
 kmalloc include/linux/slab.h:580 \[inline\]
 dbMount+0x54/0x980 fs/jfs/jfs\_dmap.c:164
 jfs\_mount+0x1dd/0x830 fs/jfs/jfs\_mount.c:121
 jfs\_fill\_super+0x590/0xc50 fs/jfs/super.c:556
 mount\_bdev+0x26c/0x3a0 fs/super.c:1359
 legacy\_get\_tree+0xea/0x180 fs/fs\_context.c:610
 vfs\_get\_tree+0x88/0x270 fs/super.c:1489
 do\_new\_mount+0x289/0xad0 fs/namespace.c:3145
 do\_mount fs/namespace.c:3488 \[inline\]
 \_\_do\_sys\_mount fs/namespace.c:3697 \[inline\]
 \_\_se\_sys\_mount+0x2d3/0x3c0 fs/namespace.c:3674
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

Freed by task 13352:
 kasan\_save\_stack mm/kasan/common.c:45 \[inline\]
 kasan\_set\_track+0x3d/0x60 mm/kasan/common.c:52
 kasan\_save\_free\_info+0x27/0x40 mm/kasan/generic.c:518
 \_\_\_\_kasan\_slab\_free+0xd6/0x120 mm/kasan/common.c:236
 kasan\_slab\_free include/linux/kasan.h:177 \[inline\]
 slab\_free\_hook mm/slub.c:1781 \[inline\]
 slab\_free\_freelist\_hook+0x12e/0x1a0 mm/slub.c:1807
 slab\_free mm/slub.c:3787 \[inline\]
 \_\_kmem\_cache\_free+0x71/0x110 mm/slub.c:3800
 dbUnmount+0xf4/0x110 fs/jfs/jfs\_dmap.c:264
 jfs\_mount\_rw+0x545/0x740 fs/jfs/jfs\_mount.c:247
 jfs\_remount+0x3db/0x710 fs/jfs/super.c:454
 reconfigure\_super+0x3bc/0x7b0 fs/super.c:935
 vfs\_fsconfig\_locked fs/fsopen.c:254 \[inline\]
 \_\_do\_sys\_fsconfig fs/fsopen.c:439 \[inline\]
 \_\_se\_sys\_fsconfig+0xad5/0x1060 fs/fsopen.c:314
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
\[...\]

JFS\_SBI(ipbmap-\>i\_sb)-\>bmap wasn't set to NULL after kfree() in
dbUnmount().

Syzkaller uses faultinject to reproduce this KASAN double-free
warning. The issue is triggered if either diMount() or dbMount() fail
in jfs\_remount(), since diUnmount() or dbUnmount() already happened in
such a case - they will do double-free on next execution: jfs\_umount
or jfs\_remount.

Tested on both upstream and jfs-next by syzkaller.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 798c5f6f98bc9045593d4b3a65c32f05d97bd0e6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aef6507e85475e30831c30405d785c7ed976ea4a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b12ccbfdf6539ef0157868f69fcae0b7f7a072b3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6f8b34458948ffca2fe90cd8c614e3fa2ebe0b27; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aa5b019a3e0f7f54f4e5370c1af827f6b00fd26b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f7a36448f51d08d3a83f1514abcca4b680bcd3c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f71c4bb3ec08dfcbd201350a6a0a914c4e6a9e3f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cade5397e5461295f3cb87880534b6a07cafa427 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54127.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 798c5f6f98bc9045593d4b3a65c32f05d97bd0e6; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < aef6507e85475e30831c30405d785c7ed976ea4a; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b12ccbfdf6539ef0157868f69fcae0b7f7a072b3; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 798c5f6f98bc9045593d4b3a65c32f05d97bd0e6, Linux 6f8b34458948ffca2fe90cd8c614e3fa2ebe0b27, Linux 2f7a36448f51d08d3a83f1514abcca4b680bcd3c

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-2023-54127 being exploited?

There is no confirmed exploitation: CVE-2023-54127 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54127?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-54127?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 798c5f6f98bc9045593d4b3a65c32f05d97bd0e6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aef6507e85475e30831c30405d785c7ed976ea4a; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b12ccbfdf6539ef0157868f69fcae0b7f7a072b3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6f8b34458948ffca2fe90cd8c614e3fa2ebe0b27; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< aa5b019a3e0f7f54f4e5370c1af827f6b00fd26b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2f7a36448f51d08d3a83f1514abcca4b680bcd3c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f71c4bb3ec08dfcbd201350a6a0a914c4e6a9e3f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cade5397e5461295f3cb87880534b6a07cafa427; Linux 2.6.12.

### Is there a fix for CVE-2023-54127?

Yes. Fixed in Linux 798c5f6f98bc9045593d4b3a65c32f05d97bd0e6, Linux 6f8b34458948ffca2fe90cd8c614e3fa2ebe0b27, Linux 2f7a36448f51d08d3a83f1514abcca4b680bcd3c. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54127?

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/798c5f6f98bc9045593d4b3a65c32f05d97bd0e6>
- other: <https://git.kernel.org/stable/c/aef6507e85475e30831c30405d785c7ed976ea4a>
- other: <https://git.kernel.org/stable/c/b12ccbfdf6539ef0157868f69fcae0b7f7a072b3>
- other: <https://git.kernel.org/stable/c/6f8b34458948ffca2fe90cd8c614e3fa2ebe0b27>
- other: <https://git.kernel.org/stable/c/aa5b019a3e0f7f54f4e5370c1af827f6b00fd26b>
- other: <https://git.kernel.org/stable/c/2f7a36448f51d08d3a83f1514abcca4b680bcd3c>
- other: <https://git.kernel.org/stable/c/f71c4bb3ec08dfcbd201350a6a0a914c4e6a9e3f>
- other: <https://git.kernel.org/stable/c/cade5397e5461295f3cb87880534b6a07cafa427>

## 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-2023-54127>

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