{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-138875",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-11-30T13:22:15.900Z",
        "datePublished": "2026-11-30T13:25:48.260Z",
        "dateUpdated": "2026-11-30T13:25:48.260Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:25:48.260Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: don't advance j_fc_off before the buffer is recorded\n\njbd2_fc_get_buf() increments journal->j_fc_off before jbd2_journal_bmap()\nand __getblk() have had a chance to fail.  When either does, the slot\nj_fc_wbuf[fc_off] is never assigned, but j_fc_off already counts it.\n\next4 then fails the fast commit and falls back, and the fallback path\nreaches jbd2_fc_release_bufs() via ext4_fc_commit ->\njbd2_fc_end_commit_fallback -> __jbd2_fc_end_commit -> ext4_fc_cleanup.\nThat walks down from j_fc_off - 1 and put_bh()es every slot until it\nsees NULL, so it also touches the slot that was never written.\nj_fc_wbuf comes from a plain kmalloc() and is never zeroed, so a slot\nused for the first time holds uninitialised heap data.\n\nAdvance j_fc_off only after the buffer head has been stored.  That\nrestores the invariant that j_fc_off covers exactly the filled slots,\nwhich is what jbd2_fc_release_bufs() relies on: the live buffers of the\ncurrent fast commit sit above the NULLs the previous one released, so\nstopping at the first NULL is correct.\n\nReproduced on a KASAN kernel with an ext4 fast_commit filesystem on a\nloop device, truncating the backing file under the live mount so that\nonly the journal's fast-commit region falls past the end of the device.\n__getblk() then fails for the first fast-commit block while the rest of\nthe journal is still addressable, so the journal is not aborted and the\nfast commit reaches the fallback path.  j_fc_wbuf was poisoned to make\nthe read of the never-written slot visible:\n\n  BUG: KASAN: wild-memory-access in jbd2_fc_release_bufs+0x6b/0xd0\n  Write of size 4 at addr 5a5a5a5a5a5a5ab2 by task sync/961\n   jbd2_fc_release_bufs+0x6b/0xd0\n   ext4_fc_cleanup+0x97/0x830\n   __jbd2_fc_end_commit+0x37/0xc0\n   ext4_fc_commit+0x524/0x560\n   ext4_sync_file+0x3c4/0x4b0\n   __x64_sys_fsync+0x20/0x30\n\nWith this patch the same run leaves j_fc_off at 0 across repeated\n__getblk() failures and completes cleanly."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/jbd2/journal.c"
                    ],
                    "versions": [
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "a24113bd984afc0b34a8fd2eb396791cfe511305",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "8b960600223b27487ab9f134e53ab71ecb1a1476",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "1ce33de62647f30bdef832e0fbe49de0c6b1bb12",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "b55a8a037bed09b574771bc3c177131e21914c71",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "65185848035e2c6b8561c8afeb8ef0098fb18c21",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "ab41325c105db07cebc9cd7ba2716a93b6946426",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "8c2401753d2ccad29807d249946f4b4482196f9b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "ff780b91efe901b8eecd8114785abae5341820ad",
                            "lessThan": "9f359c031885bb50add7d23c7a5a0e9755b134c9",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/jbd2/journal.c"
                    ],
                    "versions": [
                        {
                            "version": "5.10",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.10",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/a24113bd984afc0b34a8fd2eb396791cfe511305"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8b960600223b27487ab9f134e53ab71ecb1a1476"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1ce33de62647f30bdef832e0fbe49de0c6b1bb12"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b55a8a037bed09b574771bc3c177131e21914c71"
                },
                {
                    "url": "https://git.kernel.org/stable/c/65185848035e2c6b8561c8afeb8ef0098fb18c21"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ab41325c105db07cebc9cd7ba2716a93b6946426"
                },
                {
                    "url": "https://git.kernel.org/stable/c/8c2401753d2ccad29807d249946f4b4482196f9b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/9f359c031885bb50add7d23c7a5a0e9755b134c9"
                }
            ],
            "title": "jbd2: don't advance j_fc_off before the buffer is recorded",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}