fs/ntfs3: fix out-of-bounds read in read_log_rec_buf()
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: fix out-of-bounds read in read_log_rec_buf() read_log_rec_buf() copies a log record into a caller buffer starting at u32 off = lsn_to_page_off(log, lsn) + log->record_header_len; log->record_header_len (and log->data_off, used for the following pages) comes verbatim from the on-disk restart area and is only checked for 8-byte alignment in is_rst_area_valid(), so off can exceed log->page_size. "tail = log->page_size - off" then underflows and memcpy() reads past the page_size-sized buffer returned by read_log_page(), spilling adjacent slab memory into the replay buffer. This is reachable by mounting a crafted NTFS image: BUG: KASAN: slab-out-of-bounds in read_log_rec_buf+0x216/0x580 Read of size 64 at addr ffff88800a877ff8 by task exploit/127 read_log_rec_buf fs/ntfs3/fslog.c:2299 log_replay fs/ntfs3/fslog.c:4216 ntfs_loadlog_and_replay fs/ntfs3/fsntfs.c:324 ntfs_fill_super fs/ntfs3/super.c:1392 get_tree_bdev_flags fs/super.c:1694 __x64_sys_mount fs/namespace.c:4360 The buggy address is located 4088 bytes to the right of the 4096-byte region [ffff88800a876000, ffff88800a877000) Reject an in-page offset outside the current page before the copy. [almaz.alexandrovich@paragon-software.com: replaced the >= sign with >]
CVE-2026-89781
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-89781
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "b46acd6a6a627d876898e1c84d3f84902264b445",
"lessThan": "df099bfdb57773ba7f40f8a9dcc82e75af277922",
"versionType": "git"
},
{
"status": "affected",
"version": "b46acd6a6a627d876898e1c84d3f84902264b445",
"lessThan": "1b2d31f1083beb80c55d1152249f652c1445a559",
"versionType": "git"
},
{
"status": "affected",
"version": "b46acd6a6a627d876898e1c84d3f84902264b445",
"lessThan": "700973cc65db405bde0368ccf88699390150943e",
"versionType": "git"
},
{
"status": "affected",
"version": "b46acd6a6a627d876898e1c84d3f84902264b445",
"lessThan": "49f7cbc902b08b56eb7d2633163ecc57a0e7145a",
"versionType": "git"
},
{
"status": "affected",
"version": "b46acd6a6a627d876898e1c84d3f84902264b445",
"lessThan": "74a83aa05f73033af719771ab1f0c269928b4865",
"versionType": "git"
},
{
"status": "affected",
"version": "b46acd6a6a627d876898e1c84d3f84902264b445",
"lessThan": "53e56f7aa1d0f950a8bc2e4cdb3ba9fe45967531",
"versionType": "git"
},
{
"status": "affected",
"version": "b46acd6a6a627d876898e1c84d3f84902264b445",
"lessThan": "de603b9d377fab57a5e6432fa84a9f36b32c1636",
"versionType": "git"
}
],
"programFiles": [
"fs/ntfs3/fslog.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "5.15"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "5.15",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.15.221",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.188",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.157",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.110",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.52",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/ntfs3/fslog.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-89781
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #35248 · Revision 1
- Added to Heist Feed
- Publisher date