# CVE-2023-53564: ocfs2: fix defrag path triggering jbd2 ASSERT

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-617
- **Published:** 2025-10-04T15:17:07.114Z
- **Modified:** 2026-06-17T06:45:36.937Z

## Who should check

- Anyone running Linux \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 5f43d34a51ed30e6a60f7e59d224a63014fe2cd5; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 7f3b1c28e2908755fb248d3ee8ff56826f2387db; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 669134a66d37258e1c4a5cfbd5b82f547ae30fca; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 2c559b3ba8e0b9e3c4bb08159a28ccadc698410f; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 33665d1042666f2e5c736a3df1f453e31f030663; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 8163ea90d89b7012dd1fa4b28edf5db0c641eca7; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 590507ebabd33cd93324c04f9a5538309a5ba934; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 60eed1e3d45045623e46944ebc7c42c30a4350f0
- Anyone running Linux 3.0

## Description

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

ocfs2: fix defrag path triggering jbd2 ASSERT

code path:

ocfs2\_ioctl\_move\_extents
 ocfs2\_move\_extents
  ocfs2\_defrag\_extent
   \_\_ocfs2\_move\_extent
    + ocfs2\_journal\_access\_di
    + ocfs2\_split\_extent  //sub-paths call jbd2\_journal\_restart
    + ocfs2\_journal\_dirty //crash by jbs2 ASSERT

crash stacks:

PID: 11297  TASK: ffff974a676dcd00  CPU: 67  COMMAND: "defragfs.ocfs2"
 \#0 \[ffffb25d8dad3900\] machine\_kexec at ffffffff8386fe01
 \#1 \[ffffb25d8dad3958\] \_\_crash\_kexec at ffffffff8395959d
 \#2 \[ffffb25d8dad3a20\] crash\_kexec at ffffffff8395a45d
 \#3 \[ffffb25d8dad3a38\] oops\_end at ffffffff83836d3f
 \#4 \[ffffb25d8dad3a58\] do\_trap at ffffffff83833205
 \#5 \[ffffb25d8dad3aa0\] do\_invalid\_op at ffffffff83833aa6
 \#6 \[ffffb25d8dad3ac0\] invalid\_op at ffffffff84200d18
    \[exception RIP: jbd2\_journal\_dirty\_metadata+0x2ba\]
    RIP: ffffffffc09ca54a  RSP: ffffb25d8dad3b70  RFLAGS: 00010207
    RAX: 0000000000000000  RBX: ffff9706eedc5248  RCX: 0000000000000000
    RDX: 0000000000000001  RSI: ffff97337029ea28  RDI: ffff9706eedc5250
    RBP: ffff9703c3520200   R8: 000000000f46b0b2   R9: 0000000000000000
    R10: 0000000000000001  R11: 00000001000000fe  R12: ffff97337029ea28
    R13: 0000000000000000  R14: ffff9703de59bf60  R15: ffff9706eedc5250
    ORIG\_RAX: ffffffffffffffff  CS: 0010  SS: 0018
 \#7 \[ffffb25d8dad3ba8\] ocfs2\_journal\_dirty at ffffffffc137fb95 \[ocfs2\]
 \#8 \[ffffb25d8dad3be8\] \_\_ocfs2\_move\_extent at ffffffffc139a950 \[ocfs2\]
 \#9 \[ffffb25d8dad3c80\] ocfs2\_defrag\_extent at ffffffffc139b2d2 \[ocfs2\]

Analysis

This bug has the same root cause of 'commit 7f27ec978b0e ("ocfs2: call
ocfs2\_journal\_access\_di() before ocfs2\_journal\_dirty() in
ocfs2\_write\_end\_nolock()")'.  For this bug, jbd2\_journal\_restart() is
called by ocfs2\_split\_extent() during defragmenting.

How to fix

For ocfs2\_split\_extent() can handle journal operations totally by itself. 
Caller doesn't need to call journal access/dirty pair, and caller only
needs to call journal start/stop pair.  The fix method is to remove
journal access/dirty from \_\_ocfs2\_move\_extent().

The discussion for this patch:
https://oss.oracle.com/pipermail/ocfs2-devel/2023-February/000647.html

## Affected and fixed versions

- Linux: \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 5f43d34a51ed30e6a60f7e59d224a63014fe2cd5; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 7f3b1c28e2908755fb248d3ee8ff56826f2387db; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 669134a66d37258e1c4a5cfbd5b82f547ae30fca; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 2c559b3ba8e0b9e3c4bb08159a28ccadc698410f; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 33665d1042666f2e5c736a3df1f453e31f030663; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 8163ea90d89b7012dd1fa4b28edf5db0c641eca7; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 590507ebabd33cd93324c04f9a5538309a5ba934; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 60eed1e3d45045623e46944ebc7c42c30a4350f0 (cvelist)
- Linux: 3.0 (cvelist)

## Mitigation

- Upgrade Linux to 60eed1e3d45045623e46944ebc7c42c30a4350f0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53564.md
Affected: Linux >= 8f603e567aa7a243e68ca48b4f105b990851360f, < 5f43d34a51ed30e6a60f7e59d224a63014fe2cd5; >= 8f603e567aa7a243e68ca48b4f105b990851360f, < 7f3b1c28e2908755fb248d3ee8ff56826f2387db; >= 8f603e567aa7a243e68ca48b4f105b990851360f, < 669134a66d37258e1c4a5cfbd5b82f547ae30fca; >= 8f603e567aa7a243e68ca48…
Fixed in: Linux 5f43d34a51ed30e6a60f7e59d224a63014fe2cd5, Linux 7f3b1c28e2908755fb248d3ee8ff56826f2387db, Linux 669134a66d37258e1c4a5cfbd5b82f547ae30fca, Linux 2c559b3ba8e0b9e3c4bb08159a28ccadc698410f, Linux 33665d1042666f2e5c736a3df1f453e31f030663, Linux 8163ea90d89b7012dd1fa4b28edf5db0c641eca7, Linux 59050…

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-53564 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 5f43d34a51ed30e6a60f7e59d224a63014fe2cd5; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 7f3b1c28e2908755fb248d3ee8ff56826f2387db; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 669134a66d37258e1c4a5cfbd5b82f547ae30fca; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 2c559b3ba8e0b9e3c4bb08159a28ccadc698410f; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 33665d1042666f2e5c736a3df1f453e31f030663; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 8163ea90d89b7012dd1fa4b28edf5db0c641eca7; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 590507ebabd33cd93324c04f9a5538309a5ba934; \>= 8f603e567aa7a243e68ca48b4f105b990851360f, \< 60eed1e3d45045623e46944ebc7c42c30a4350f0; Linux 3.0.

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

Yes. Fixed in Linux 5f43d34a51ed30e6a60f7e59d224a63014fe2cd5, Linux 7f3b1c28e2908755fb248d3ee8ff56826f2387db, Linux 669134a66d37258e1c4a5cfbd5b82f547ae30fca, Linux 2c559b3ba8e0b9e3c4bb08159a28ccadc698410f, Linux 33665d1042666f2e5c736a3df1f453e31f030663, Linux 8163ea90d89b7012dd1fa4b28edf5db0c641eca7, Linux 590507ebabd33cd93324c04f9a5538309a5ba934, Linux 60eed1e3d45045623e46944ebc7c42c30a4350f0. Upgrade Linux to 60eed1e3d45045623e46944ebc7c42c30a4350f0 or later.

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

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

- patch: <https://git.kernel.org/stable/c/5f43d34a51ed30e6a60f7e59d224a63014fe2cd5>
- patch: <https://git.kernel.org/stable/c/7f3b1c28e2908755fb248d3ee8ff56826f2387db>
- patch: <https://git.kernel.org/stable/c/669134a66d37258e1c4a5cfbd5b82f547ae30fca>
- patch: <https://git.kernel.org/stable/c/2c559b3ba8e0b9e3c4bb08159a28ccadc698410f>
- patch: <https://git.kernel.org/stable/c/33665d1042666f2e5c736a3df1f453e31f030663>
- patch: <https://git.kernel.org/stable/c/8163ea90d89b7012dd1fa4b28edf5db0c641eca7>
- patch: <https://git.kernel.org/stable/c/590507ebabd33cd93324c04f9a5538309a5ba934>
- patch: <https://git.kernel.org/stable/c/60eed1e3d45045623e46944ebc7c42c30a4350f0>

## 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-53564>

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