Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-138875

jbd2: don't advance j_fc_off before the buffer is recorded

No exploitation reported by the sources we read.

  • Published2026-11-30
  • Fixed in7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

In the Linux kernel, the following vulnerability has been resolved: jbd2: don't advance j_fc_off before the buffer is recorded jbd2_fc_get_buf() increments journal->j_fc_off before jbd2_journal_bmap() and __getblk() have had a chance to fail. When either does, the slot j_fc_wbuf[fc_off] is never assigned, but j_fc_off already counts it. ext4 then fails the fast commit and falls back, and the fallback path reaches jbd2_fc_release_bufs() via ext4_fc_commit -> jbd2_fc_end_commit_fallback -> __jbd2_fc_end_commit -> ext4_fc_cleanup. That walks down from j_fc_off - 1 and put_bh()es every slot until it sees NULL, so it also touches the slot that was never written. j_fc_wbuf comes from a plain kmalloc() and is never zeroed, so a slot used for the first time holds uninitialised heap data. Advance j_fc_off only after the buffer head has been stored. That restores the invariant that j_fc_off covers exactly the filled slots, which is what jbd2_fc_release_bufs() relies on: the live buffers of the current fast commit sit above the NULLs the previous one released, so stopping at the first NULL is correct. Reproduced on a KASAN kernel with an ext4 fast_commit filesystem on a loop device, truncating the backing file under the live mount so that only the journal's fast-commit region falls past the end of the device. __getblk() then fails for the first fast-commit block while the rest of the journal is still addressable, so the journal is not aborted and the fast commit reaches the fallback path. j_fc_wbuf was poisoned to make the read of the never-written slot visible: BUG: KASAN: wild-memory-access in jbd2_fc_release_bufs+0x6b/0xd0 Write of size 4 at addr 5a5a5a5a5a5a5ab2 by task sync/961 jbd2_fc_release_bufs+0x6b/0xd0 ext4_fc_cleanup+0x97/0x830 __jbd2_fc_end_commit+0x37/0xc0 ext4_fc_commit+0x524/0x560 ext4_sync_file+0x3c4/0x4b0 __x64_sys_fsync+0x20/0x30 With this patch the same run leaves j_fc_off at 0 across repeated __getblk() failures and completes cleanly.

Timeline

dates in UTC
  1. 2026-11-3013:25CVE publishedCNA

Versions per branch

OSV
Linux kernel
BranchAffectedFixed in
7.3≥ 6.19.0, < 7.3.47.3.4
6.x≥ 6.13.0, < 6.18.636.18.63
6.x≥ 6.7.0, < 6.12.1176.12.117
6.x≥ 6.2.0, < 6.6.1636.6.163
6.1≥ 5.16.0, < 6.1.1936.1.193
5.x≥ 5.11.0, < 5.15.2265.15.226
5.10≥ 5.10.0, < 5.10.2755.10.275

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Linuxother versions: not affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < a24113bd984afc0b34a8fd2eb396791cfe511305fixed in a24113bd984afc0b34a8fd2eb396791cfe511305git
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < 8b960600223b27487ab9f134e53ab71ecb1a1476fixed in 8b960600223b27487ab9f134e53ab71ecb1a1476git
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < 1ce33de62647f30bdef832e0fbe49de0c6b1bb12fixed in 1ce33de62647f30bdef832e0fbe49de0c6b1bb12git
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < b55a8a037bed09b574771bc3c177131e21914c71fixed in b55a8a037bed09b574771bc3c177131e21914c71git
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < 65185848035e2c6b8561c8afeb8ef0098fb18c21fixed in 65185848035e2c6b8561c8afeb8ef0098fb18c21git
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < ab41325c105db07cebc9cd7ba2716a93b6946426fixed in ab41325c105db07cebc9cd7ba2716a93b6946426git
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < 8c2401753d2ccad29807d249946f4b4482196f9bfixed in 8c2401753d2ccad29807d249946f4b4482196f9bgit
    • ≥ ff780b91efe901b8eecd8114785abae5341820ad, < 9f359c031885bb50add7d23c7a5a0e9755b134c9fixed in 9f359c031885bb50add7d23c7a5a0e9755b134c9git
  • Linuxother versions: affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • = 5.10no fix stated

    Not affected < 5.10 · ≥ 5.10.275, ≤ 5.10.* · ≥ 5.15.226, ≤ 5.15.* · ≥ 6.1.193, ≤ 6.1.* · ≥ 6.6.163, ≤ 6.6.* · ≥ 6.12.117, ≤ 6.12.* · ≥ 6.18.63, ≤ 6.18.*

    2 more version lines in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-30

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • linuxDebian:14all versions · fixed in 7.3.4-1
  • linuxDebian:13all versions · fixed in 6.12.117-1
  • linuxDebian:12all versions · no fixed version listed

Full record on NVD

Fix

  1. Update Linux kernel to 7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226 · 5.10.275

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-11-30
  • CNACVSS 3.17.82026-12-01
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2026-11-30
Last modified
2026-11-30
NVD status
Received

Frequently asked questions

What is CVE-2026-138875?

In the Linux kernel, the following vulnerability has been resolved: jbd2: don't advance j_fc_off before the buffer is recorded jbd2_fc_get_buf() increments journal->j_fc_off before jbd2_journal_bmap() and __getblk() have had a chance to fail. When either does, the slot j_fc_wbuf[fc_off] is never assigned, but j_fc_off already counts it. ext4 then fails the fast commit and falls back, and the fallback path reaches jbd2_fc_release_bufs() via ext4_fc_commit -> jbd2_fc_end_commit_fallback -> __jbd2_fc_end_commit -> ext4_fc_cleanup. That walks down from j_fc_off - 1 and put_bh()es every slot until it sees NULL, so it also touches the slot that was never written. j_fc_wbuf comes from a plain kmalloc() and is never zeroed, so a slot used for the first time holds uninitialised heap data. Advance j_fc_off only after the buffer head has been stored. That restores the invariant that j_fc_off covers exactly the filled slots, which is what jbd2_fc_release_bufs() relies on: the live buffers of the current fast commit sit above the NULLs the previous one released, so stopping at the first NULL is correct. Reproduced on a KASAN kernel with an ext4 fast_commit filesystem on a loop device, truncating the backing file under the live mount so that only the journal's fast-commit region falls past the end of the device. __getblk() then fails for the first fast-commit block while the rest of the journal is still addressable, so the journal is not aborted and the fast commit reaches the fallback path. j_fc_wbuf was poisoned to make the read of the never-written slot visible: BUG: KASAN: wild-memory-access in jbd2_fc_release_bufs+0x6b/0xd0 Write of size 4 at addr 5a5a5a5a5a5a5ab2 by task sync/961 jbd2_fc_release_bufs+0x6b/0xd0 ext4_fc_cleanup+0x97/0x830 __jbd2_fc_end_commit+0x37/0xc0 ext4_fc_commit+0x524/0x560 ext4_sync_file+0x3c4/0x4b0 __x64_sys_fsync+0x20/0x30 With this patch the same run leaves j_fc_off at 0 across repeated __getblk() failures and completes cleanly.

Is CVE-2026-138875 actively exploited?

Active exploitation of CVE-2026-138875 has not been confirmed.

What is the CVSS score for CVE-2026-138875?

CVE-2026-138875 has a CVSS v3 base score of 7.8 (High severity), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record