Descrizione
In the Linux kernel, the following vulnerability has been resolved: isofs: validate Rock Ridge CE continuation extent against volume size rock_continue() reads rs->cont_extent verbatim from the Rock Ridge CE record and passes it to sb_bread() without checking that the block number is within the mounted ISO 9660 volume. commit e595447e177b ("[PATCH] rock.c: handle corrupted directories") added cont_offset and cont_size rejection for the CE continuation but did not validate the extent block number itself. commit f54e18f1b831 ("isofs: Fix infinite looping over CE entries") later capped the CE chain length at RR_MAX_CE_ENTRIES = 32 but again left the block number unchecked. With a crafted ISO mounted via udisks2 (desktop optical auto-mount) or via CAP_SYS_ADMIN mount, rs->cont_extent can therefore point at an out-of-range block or at blocks belonging to an adjacent filesystem on the same block device. sb_bread() on an out-of-range block returns NULL cleanly via the block layer EIO path, so there is no memory-safety violation. For in-range reads of adjacent- filesystem data, the CE buffer is parsed as Rock Ridge records and only the text of SL sub-records reaches userspace through readlink(), which makes the info-leak channel narrow and difficult to exploit; still, rejecting the malformed CE outright matches the rejection shape already present in the same function for cont_offset and cont_size. Add an ISOFS_SB(sb)->s_nzones bounds check to rock_continue() next to the existing offset/size rejection, printing the same corrupted-directory-entry notice.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.2.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.32.66precedenti alla2.6.33→ aggiornare alla2.6.33o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
3.2.67precedenti alla3.3→ aggiornare alla3.3o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
3.4.107precedenti alla3.5→ aggiornare alla3.5o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
3.10.64precedenti alla3.11→ aggiornare alla3.11o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
3.12.36precedenti alla3.13→ aggiornare alla3.13o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
3.14.28precedenti alla3.15→ aggiornare alla3.15o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
3.17.8precedenti alla3.18→ aggiornare alla3.18o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
3.18.2precedenti alla5.10.258→ aggiornare alla5.10.258o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.209→ aggiornare alla5.15.209o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.175→ aggiornare alla6.1.175o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.140→ aggiornare alla6.6.140o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.88→ aggiornare alla6.12.88o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.30→ aggiornare alla6.18.30o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.7→ aggiornare alla7.0.7o successiva. - Linux Linux Kernel: vulnerabile la versione
7.1 rc1→ installare l'ultima release supportata dal vendor.
Patch e advisory
- Patch: git.kernel.org/stable/c/22b36fa081f38ab397c7697f9d5…
- Patch: git.kernel.org/stable/c/8356fb821016797f5677cbeee5d…
- Patch: git.kernel.org/stable/c/a36d990f591320e9dd379ab3006…
- Patch: git.kernel.org/stable/c/bf1bc673c587f5ef7e9c09b94ae…
- Patch: git.kernel.org/stable/c/c9b37c8b73f6368e4750e5ccb06…
- Patch: git.kernel.org/stable/c/d582e12378bc1637f337622feef…
- Patch: git.kernel.org/stable/c/e69da8eeab74b4f4505024c38a1…
- Patch: git.kernel.org/stable/c/ef048470c90bc8c1b8318bb2ce3…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
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 | ≥ 2.6.32.66 < 2.6.33 | 2.6.33 |
| Linux | Linux Kernel | ≥ 3.2.67 < 3.3 | 3.3 |
| Linux | Linux Kernel | ≥ 3.4.107 < 3.5 | 3.5 |
| Linux | Linux Kernel | ≥ 3.10.64 < 3.11 | 3.11 |
| Linux | Linux Kernel | ≥ 3.12.36 < 3.13 | 3.13 |
| Linux | Linux Kernel | ≥ 3.14.28 < 3.15 | 3.15 |
| Linux | Linux Kernel | ≥ 3.17.8 < 3.18 | 3.18 |
| Linux | Linux Kernel | ≥ 3.18.2 < 5.10.258 | 5.10.258 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.209 | 5.15.209 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.175 | 6.1.175 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.140 | 6.6.140 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.88 | 6.12.88 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.30 | 6.18.30 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.7 | 7.0.7 |
| Linux | Linux Kernel | 7.1 rc1 | — |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/22b36fa081f38ab397c7697f9d539211b51a0cfc
- Patchhttps://git.kernel.org/stable/c/8356fb821016797f5677cbeee5ddc0d32a95b4be
- Patchhttps://git.kernel.org/stable/c/a36d990f591320e9dd379ab30063ebfe91d47e1f
- Patchhttps://git.kernel.org/stable/c/bf1bc673c587f5ef7e9c09b94aea7c5a7847d4d9
- Patchhttps://git.kernel.org/stable/c/c9b37c8b73f6368e4750e5ccb0632c380b43c6e5
- Patchhttps://git.kernel.org/stable/c/d582e12378bc1637f337622feef762f53c43fd57
- Patchhttps://git.kernel.org/stable/c/e69da8eeab74b4f4505024c38a17bce060fe7df8
- Patchhttps://git.kernel.org/stable/c/ef048470c90bc8c1b8318bb2ce329da9ef64b9fe
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-457936.html
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-784472.html