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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 3.0 | 4.14.308 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.1.20-1 | — |
| Debian 13 | linux | 6.1.20-1 | — |
| Debian 12 | linux | 6.1.20-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | 5.15.0-1019.21 | — |
| Ubuntu 24.04 LTS | linux-intel +9 | No fix yet | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-75.82 | — |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1038.43 | — |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1040.47 | — |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1041.48.1 | — |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1036.44 | — |
| Ubuntu 22.04 LTS | linux-gke | 5.15.0-1036.41 | — |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1022.27 | — |
| Ubuntu 22.04 LTS | linux-ibm +1 | 5.15.0-1032.35 | — |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1033.38 | — |
| Ubuntu 22.04 LTS | linux-kvm | 5.15.0-1035.40 | — |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1027.27 | — |
| Ubuntu 22.04 LTS | linux-nvidia-tegra | 5.15.0-1015.15 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1037.43 | — |
| Ubuntu 22.04 LTS | linux-riscv +32 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-152.169 | — |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1104.112 | — |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1038.43~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1110.116 | — |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1040.47~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1065.71 | — |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1107.116 | — |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1036.44~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-75.82~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1051.56 | — |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1033.38~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1017.18 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1093.99 | — |
| Ubuntu 20.04 LTS | linux-nvidia-tegra-5.15 | 5.15.0-1015.15~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1103.112 | — |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1037.43~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1088.99 | — |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1035.39~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-xilinx-zynqmp | 5.4.0-1024.28 | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
Show 12 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-intel-iot-realtime | 5.15.0-1033.35 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime | 5.15.0-1040.45 | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1104.112+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1110.116+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1079.88 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1107.116+fips1 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +5 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux-aws-5.4 | 5.4.0-1104.112~18.04.1 | — |
| Ubuntu Pro 18.04 LTS | linux-azure-5.4 | 5.4.0-1110.116~18.04.1 | — |
| Ubuntu Pro 18.04 LTS | linux-gcp-5.4 | 5.4.0-1107.116~18.04.1 | — |
| Ubuntu Pro 18.04 LTS | linux-hwe-5.4 | 5.4.0-152.169~18.04.1 | — |
| Ubuntu Pro 18.04 LTS | linux-ibm-5.4 | 5.4.0-1051.56~18.04.1 | — |
| Ubuntu Pro 18.04 LTS | linux-oracle-5.4 | 5.4.0-1103.112~18.04.1 | — |
| Ubuntu Pro 18.04 LTS | linux-raspi-5.4 | 5.4.0-1088.99~18.04.1 | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | kernel-64kb +6 | 5.14.21-150500.55.127.1 | SUSE-SU-2025:4320-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.127.1.150500.6.61.1 | SUSE-SU-2025:4320-1 |
| SLES 15 SP4 | kernel-64kb +6 | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SLES 15 SP4 | kernel-default-base | 5.14.21-150400.24.184.1.150400.24.94.2 | SUSE-SU-2025:4111-1 |
| SLES 15 SP3 | kernel-64kb +5 | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SLES 15 SP3 | kernel-docs | 5.3.18-150300.59.226.3 | SUSE-SU-2025:4188-1 |
| SLES 15 SP3 | kernel-syms | 5.3.18-150300.59.226.1 | SUSE-SU-2025:4188-1 |
| SLES 12 SP5 | kernel-syms +2 | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
Show 17 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP5 | kernel-default-base | 5.14.21-150500.55.127.1.150500.6.61.1 | SUSE-SU-2025:4320-1 |
| SLES for SAP 15 SP5 | kernel-docs +4 | 5.14.21-150500.55.127.1 | SUSE-SU-2025:4320-1 |
| SLES for SAP 15 SP4 | kernel-default-base | 5.14.21-150400.24.184.1.150400.24.94.2 | SUSE-SU-2025:4111-1 |
| SLES for SAP 15 SP4 | kernel-docs +4 | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SLES for SAP 15 SP3 | kernel-default-base | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SLES for SAP 15 SP3 | kernel-docs | 5.3.18-150300.59.226.3 | SUSE-SU-2025:4188-1 |
| SLES for SAP 15 SP3 | kernel-source +3 | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SLES for SAP 15 SP3 | kernel-syms | 5.3.18-150300.59.226.1 | SUSE-SU-2025:4188-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.127.1.150500.6.61.1 | SUSE-SU-2025:4320-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.112.1 | SUSE-SU-2025:4149-1 |
| SLE Micro 5.5 | kernel-source +1 | 5.14.21-150500.55.127.1 | SUSE-SU-2025:4320-1 |
| SLE Micro 5.4 | kernel-default | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SLE Micro 5.4 | kernel-default-base | 5.14.21-150400.24.184.1.150400.24.94.2 | SUSE-SU-2025:4111-1 |
| SLE Micro 5.4 | kernel-rt +1 | 5.14.21-150400.15.136.1 | SUSE-SU-2025:4139-1 |
| SLE Micro 5.3 | kernel-default | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SLE Micro 5.3 | kernel-default-base | 5.14.21-150400.24.184.1.150400.24.94.2 | SUSE-SU-2025:4111-1 |
| SLE Micro 5.3 | kernel-rt +1 | 5.14.21-150400.15.136.1 | SUSE-SU-2025:4139-1 |
| SLE Micro 5.2 | kernel-default | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SLE Micro 5.2 | kernel-default-base | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SLE Micro 5.2 | kernel-rt +1 | 5.3.18-150300.226.1 | SUSE-SU-2025:4135-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.127.1 | SUSE-SU-2025:4320-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_32 | 1-150500.11.3.1 | SUSE-SU-2025:4320-1 |
| SLE Live Patching 15 SP4 | kernel-default | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SLE Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_46 | 1-150400.9.5.1 | SUSE-SU-2025:4111-1 |
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_63 | 1-150300.7.5.2 | SUSE-SU-2025:4188-1 |
| SLE Live Patching 12 SP5 | kernel-default | 4.12.14-122.280.1 | SUSE-SU-2025:4189-1 |
| SLE Live Patching 12 SP5 | kgraft-patch-SLE12-SP5_Update_74 | 1-8.5.1 | SUSE-SU-2025:4189-1 |
| SLE HPC 15 SP5 | kernel-64kb +5 | 5.14.21-150500.55.127.1 | SUSE-SU-2025:4320-1 |
| SLE HPC 15 SP5 | kernel-default-base | 5.14.21-150500.55.127.1.150500.6.61.1 | SUSE-SU-2025:4320-1 |
| SLE HPC 15 SP4 | kernel-64kb +5 | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SLE HPC 15 SP4 | kernel-default-base | 5.14.21-150400.24.184.1.150400.24.94.2 | SUSE-SU-2025:4111-1 |
| SLE HPC 15 SP3 | kernel-64kb +4 | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SLE HPC 15 SP3 | kernel-default-base | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SLE HPC 15 SP3 | kernel-docs | 5.3.18-150300.59.226.3 | SUSE-SU-2025:4188-1 |
| SLE HPC 15 SP3 | kernel-syms | 5.3.18-150300.59.226.1 | SUSE-SU-2025:4188-1 |
| SUSE Manager Server LTS 4.3 | kernel-default-base | 5.14.21-150400.24.184.1.150400.24.94.2 | SUSE-SU-2025:4111-1 |
| SUSE Manager Server LTS 4.3 | kernel-syms +3 | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SUSE Manager Proxy LTS 4.3 | kernel-default-base | 5.14.21-150400.24.184.1.150400.24.94.2 | SUSE-SU-2025:4111-1 |
| SUSE Manager Proxy LTS 4.3 | kernel-syms +2 | 5.14.21-150400.24.184.1 | SUSE-SU-2025:4111-1 |
| SUSE Enterprise Storage 7.1 | kernel-64kb +4 | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE Enterprise Storage 7.1 | kernel-default-base | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SUSE Enterprise Storage 7.1 | kernel-docs | 5.3.18-150300.59.226.3 | SUSE-SU-2025:4188-1 |
| SUSE Enterprise Storage 7.1 | kernel-syms | 5.3.18-150300.59.226.1 | SUSE-SU-2025:4188-1 |
Advisories 9
- WID-SEC-2025-2194 Linux Kernel: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 12, 2026
- WID-SEC-2026-0349 Dell Avamar und NetWorker: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 17, 2026
- SUSE-SU-2025:4139-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4149-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4189-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4111-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4188-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:4135-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:4320-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://git.kernel.org/stable/c/5f43d34a51ed30e6a60f7e59d224a63014fe2cd5
- https://git.kernel.org/stable/c/7f3b1c28e2908755fb248d3ee8ff56826f2387db
- https://git.kernel.org/stable/c/669134a66d37258e1c4a5cfbd5b82f547ae30fca
- https://git.kernel.org/stable/c/2c559b3ba8e0b9e3c4bb08159a28ccadc698410f
- https://git.kernel.org/stable/c/33665d1042666f2e5c736a3df1f453e31f030663
- https://git.kernel.org/stable/c/8163ea90d89b7012dd1fa4b28edf5db0c641eca7
- https://git.kernel.org/stable/c/590507ebabd33cd93324c04f9a5538309a5ba934
- https://git.kernel.org/stable/c/60eed1e3d45045623e46944ebc7c42c30a4350f0