1. Archivio CVE
  2. 2022
  3. CVE-2022-29162

CVE-2022-29162

7.8 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 7.8 – Alta

Descrizione

runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. A bug was found in runc prior to version 1.1.2 where `runc exec --cap` created processes with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. This bug has been fixed in runc 1.1.2. This fix changes `runc exec --cap` behavior such that the additional capabilities granted to the process being executed (as specified via `--cap` arguments) do not include inheritable capabilities. In addition, `runc spec` is changed to not set any inheritable capabilities in the created example OCI spec (`config.json`) file.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
fedoraproject fedora 34 –
fedoraproject fedora 35 –
fedoraproject fedora 36 –
linuxfoundation runc < 1.1.2 –
Tutte le 17 vulnerabilità di Linuxfoundation Runc

Tipo di vulnerabilità

CWE-276 Permessi predefiniti errati

Durante l’installazione i file vengono creati con permessi che consentono a chiunque di modificarli.

Impatto sui sistemi

AmbitoImpatto
Riservatezza, Integrità Leggere i dati dell’applicazione, Modificare i dati dell’applicazione

Come si previene

Architettura e progettazione · Esercizio The architecture needs to access and modification attributes for files to only those users who actually require those actions.
Architettura e progettazione · Separazione dei privilegi Suddividi il sistema in compartimenti, con aree sicure i cui confini di fiducia siano tracciati senza ambiguità. Non lasciare uscire i dati sensibili da questi confini e presta sempre attenzione quando interagisci con un compartimento esterno all’area sicura. La suddivisione va prevista già in fase di progettazione e deve favorire la separazione dei privilegi; per decidere quando usare i privilegi e quando rinunciarvi, segui il principio del privilegio minimo.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 1.555 CVE di tipo CWE-276, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org