{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-138947","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.905Z","datePublished":"2026-11-30T13:26:27.655Z","dateUpdated":"2026-11-30T13:26:27.655Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:26:27.655Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: fix integer overflow in find_log_rec() causing OOB read\n\nfind_log_rec() validates the on-disk LFS_RECORD_HDR.client_data_len\nfield (`len`, a raw u32 read straight from a mounted $LogFile page)\nagainst the log's total available space:\n\n    len = le32_to_cpu(rh->client_data_len);\n    rec_len = len + log->record_header_len;\n    if (rec_len >= log->total_avail)\n            return -EINVAL;\n\nThe addition is unchecked. For len in [0xffffffd0, 0xffffffff] (i.e.\nlog->record_header_len away from UINT_MAX), `rec_len` wraps to a small\nu32 value that trivially clears the `rec_len >= log->total_avail`\nguard, so a record whose declared length is actually ~4 GiB is\nreported as valid and in-page.\n\nBecause find_log_rec() wrongly accepts the record, its caller\nread_log_rec_lcb() hands it back to log_replay() as good. On the\ntransaction-table replay leg, log_replay() re-derives the record\nlength directly from the same raw, still-unclamped client_data_len\nfield and uses it to size the restart-table blob:\n\n    rec_len = le32_to_cpu(frh->client_data_len);   /* ~0xffffffff */\n    ...\n    t16 = le16_to_cpu(lrh->redo_off);\n    rt  = Add2Ptr(lrh, t16);\n    t32 = rec_len - t16;                            /* still ~4 GiB */\n    if (!check_rstbl(rt, t32))\n            return -EINVAL;\n\ncheck_rstbl()'s own `bytes < ts` bounds guard is defeated because the\ncaller-supplied `bytes` (t32) is itself the poisoned ~4 GiB value, so\nthe guard can never trigger. The subsequent entry-validation loop then\nwalks `rt->used` (also attacker-controlled) entries of\nsizeof(struct RESTART_TABLE) == 0x18 bytes each straight past the end\nof the kmalloc(log->page_size) log-page buffer allocated in\nread_log_page(), producing an out-of-bounds read that is reachable\nsimply by mounting a crafted $LogFile (no genuine dirty-page /\ncrash-recovery state is required). Confirmed via KASAN as a\nslab-out-of-bounds read in check_rstbl(), called from log_replay() ->\nntfs_loadlog_and_replay() -> ntfs_fill_super() -> mount(2).\n\nFix the root cause instead of hardening every downstream consumer of\nthe poisoned length: make the addition in find_log_rec() overflow-safe\nwith check_add_overflow(), mirroring the pattern fs/ntfs3/run.c\nalready uses to validate other attacker-controlled on-disk\nlength/offset arithmetic decoded from MAPPING_PAIRS runs, e.g.:\n\n    if (check_add_overflow(vcn64, len, &next_vcn))\n            return -EINVAL;\n    ...\n    if (check_add_overflow(lcn, len, &lcn_end))\n            return -EINVAL;\n\n(fs/ntfs3/run.c, run_unpack()).\n\nWith the overflow rejected instead of silently wrapped, `rec_len` is\nonly ever a true, non-wrapped sum, so the existing\n`rec_len >= log->total_avail` check now correctly rejects any\noversized record up front. log_replay()'s transaction-table leg then\nnever gets a chance to re-read the poisoned client_data_len, and\ncheck_rstbl() is never invoked with an attacker-inflated `bytes` for\nthis path.\n\nVerified on a v6.19 KASAN build: mounting a crafted $LogFile whose\nclient_data_len overflows trips a KASAN slab-out-of-bounds-read\nreport in check_rstbl() before this fix; with check_add_overflow()\napplied, the same image is cleanly rejected during log replay and no\nKASAN report fires."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ntfs3/fslog.c"],"versions":[{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","lessThan":"03f222fbeb55b5b3b95dd70dd1cdcb02895a7d86","status":"affected","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","lessThan":"fb9dd65b3bd11c3e26920e2e9ec1fd8fe63d3ba3","status":"affected","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","lessThan":"1921d296d3e79e188bed46592e0c84df6461cb99","status":"affected","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","lessThan":"89579415a00b776698334586e6ecf01efd00049c","status":"affected","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","lessThan":"5352e7447219bf7777aa0cffe0752f655d9a0060","status":"affected","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","lessThan":"3d5dbe7706a9d58b8356731aaafefb8053711b27","status":"affected","versionType":"git"},{"version":"b46acd6a6a627d876898e1c84d3f84902264b445","lessThan":"e2fcb0040b0b4097b2e97f3fbe77d3b66df9e816","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/ntfs3/fslog.c"],"versions":[{"version":"5.15","status":"affected"},{"version":"0","lessThan":"5.15","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.15","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/03f222fbeb55b5b3b95dd70dd1cdcb02895a7d86"},{"url":"https://git.kernel.org/stable/c/fb9dd65b3bd11c3e26920e2e9ec1fd8fe63d3ba3"},{"url":"https://git.kernel.org/stable/c/1921d296d3e79e188bed46592e0c84df6461cb99"},{"url":"https://git.kernel.org/stable/c/89579415a00b776698334586e6ecf01efd00049c"},{"url":"https://git.kernel.org/stable/c/5352e7447219bf7777aa0cffe0752f655d9a0060"},{"url":"https://git.kernel.org/stable/c/3d5dbe7706a9d58b8356731aaafefb8053711b27"},{"url":"https://git.kernel.org/stable/c/e2fcb0040b0b4097b2e97f3fbe77d3b66df9e816"}],"title":"fs/ntfs3: fix integer overflow in find_log_rec() causing OOB read","x_generator":{"engine":"bippy-1.2.0"}}}}