Descrizione
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: bound NTFS_DE view.data_off in UpdateRecordData{Root,Allocation} In do_action()'s UpdateRecordDataRoot (fslog.c:3489) and UpdateRecordDataAllocation (fslog.c:3697) cases, the memmove destination is `Add2Ptr(e, le16_to_cpu(e->view.data_off))`, where e->view.data_off comes from an on-disk NTFS_DE inside an INDEX_ROOT or INDEX_BUFFER. Neither case validates view.data_off + dlen against e->size; the existing check_if_index_root / check_if_alloc_index helpers walk the entry chain and validate the entry's offset, but not its internal view fields. The neighbouring read sites (e.g., fs/ntfs3/index.c when iterating view entries) check view.data_off + view.data_size <= e->size. Apply the same bound at the two memmove sites. Reproduced under UML+KASAN on mainline 8d90b09e6741 via pr_warn-only probe instrumentation: with view.data_off forced to 0xFFFC, the memmove writes 32 bytes past the end of the NTFS_DE. This is similar in shape to Pavitra Jha's 2026-05-02 patch "fs/ntfs3: prevent oob in case UpdateRecordDataRoot" (<20260502105008.21827-1-jhapavitra98@gmail.com>) which proposes calling ntfs3_bad_de_range(); that helper does not exist in mainline. This patch uses inline checks.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.15precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.97→ aggiornare alla6.12.97o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.40→ aggiornare alla6.18.40o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.5→ aggiornare alla7.1.5o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/315d3a9a48b49f889da3d858a93…
- Patch: git.kernel.org/stable/c/36feda687afebae24c472202694…
- Patch: git.kernel.org/stable/c/3e127829e57f5190f612412ece4…
- Patch: git.kernel.org/stable/c/429d653ca641d38a78609b8f62e…
- Patch: git.kernel.org/stable/c/b20e5a709d8bd190d6e46456067…
- Patch: git.kernel.org/stable/c/be306b8d9143a9c076c804a7ca0…
- Patch: git.kernel.org/stable/c/d41b382068ca4e64e421f736cdd…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 5.15 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.97 | 6.12.97 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.40 | 6.18.40 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.5 | 7.1.5 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/315d3a9a48b49f889da3d858a9307e677cb9e1bd
- Patchhttps://git.kernel.org/stable/c/36feda687afebae24c472202694448738809c411
- Patchhttps://git.kernel.org/stable/c/3e127829e57f5190f612412ece4541cb96d5ec7a
- Patchhttps://git.kernel.org/stable/c/429d653ca641d38a78609b8f62e81a0a5c780a2d
- Patchhttps://git.kernel.org/stable/c/b20e5a709d8bd190d6e4645606763c7423e694c1
- Patchhttps://git.kernel.org/stable/c/be306b8d9143a9c076c804a7ca025d69caf9c448
- Patchhttps://git.kernel.org/stable/c/d41b382068ca4e64e421f736cdd700095464b6ac