CVE-2026-80672

Source
https://cve.org/CVERecord?id=CVE-2026-80672
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80672.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-80672
Downstream
Published
2026-08-28T06:49:12.340Z
Modified
2026-08-29T03:47:17.071909627Z
Summary
ntfs: fix u16 truncation of restart-area length check
Details

In the Linux kernel, the following vulnerability has been resolved:

ntfs: fix u16 truncation of restart-area length check

ntfscheckrestart_area() validates that the $LogFile restart area and its trailing log client record array fit within the system page size:

    u16 ra_ofs, ra_len, ca_ofs;
    ...
    ra_len = ca_ofs + le16_to_cpu(ra->log_clients) *
                    sizeof(struct log_client_record);
    if (ra_ofs + ra_len > le32_to_cpu(rp->system_page_size) || ...)
            return false;

ralen is u16, but the right-hand side is computed in sizet (sizeof(struct logclientrecord) == 160). Both caofs and logclients come straight from the on-disk restart area. With an on-disk logclients of 410 the product 410 * 160 = 65600; adding caofs and storing into the u16 ralen truncates modulo 65536 (e.g. caofs 64 gives ralen 128), so the "fits in the page" check passes even though the client array described by logclients extends far beyond the page.

ntfschecklogclientarray() then walks the array bounded only by the on-disk log_clients count:

    cr = ca + idx;
    if (cr->prev_client != LOGFILE_NO_CLIENT) ...

For logclients 410 it dereferences records up to ca + 409 * 160, ~64 KiB past the kvzalloc(systempagesize) restart-page buffer -- an out-of-bounds read of attacker-controlled extent, reachable when a crafted NTFS image is mounted (loadandchecklogfile() at mount time). This is the in-kernel analogue of CVE-2022-30789, fixed in the ntfs-3g userspace driver but never in this revived classic driver.

Compute the restart-area length in a u32 so the existing bounds check rejects an over-large client array instead of being defeated by the truncation. Widen raofs and caofs to u32 as well: both are loaded from _le16 on-disk fields and every comparison already promotes to int/sizet, so this changes no result and keeps the declaration uniform.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80672.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1e9ea7e04472d4e5e12e58c881eaacfb3e49b669
Fixed
07a4751ef3ccc8bfd17bfbb16e5003c03161790d
Fixed
390936fb15053d8d8991ca3a22776e251a5a7f2f

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80672.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80672.json"