1. Archivio CVE
  2. 2024
  3. CVE-2024-47674

CVE-2024-47674

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

Descrizione

In the Linux kernel, the following vulnerability has been resolved: mm: avoid leaving partial pfn mappings around in error case As Jann points out, PFN mappings are special, because unlike normal memory mappings, there is no lifetime information associated with the mapping - it is just a raw mapping of PFNs with no reference counting of a 'struct page'. That's all very much intentional, but it does mean that it's easy to mess up the cleanup in case of errors. Yes, a failed mmap() will always eventually clean up any partial mappings, but without any explicit lifetime in the page table mapping itself, it's very easy to do the error handling in the wrong order. In particular, it's easy to mistakenly free the physical backing store before the page tables are actually cleaned up and (temporarily) have stale dangling PTE entries. To make this situation less error-prone, just make sure that any partial pfn mapping is torn down early, before any other error handling.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
linux linux kernel < 5.15.168 –
linux linux kernel >= 5.16 < 6.1.111 –
linux linux kernel >= 6.2 < 6.6.52 –
linux linux kernel >= 6.7 < 6.10.11 –
linux linux kernel 6.11 rc1 –
linux linux kernel 6.11 rc2 –
linux linux kernel 6.11 rc3 –
linux linux kernel 6.11 rc4 –
linux linux kernel 6.11 rc5 –
linux linux kernel 6.11 rc6 –
linux linux kernel 6.11 rc7 –
Tutte le 24.085 vulnerabilità di Linux Kernel

Tipo di vulnerabilità

CWE-459 Incomplete Cleanup

The product does not properly clean up and remove temporary or supporting resources after they have been used.

Impatto sui sistemi

AmbitoImpatto
Altro, Riservatezza, Integrità Altro, Leggere i dati dell’applicazione, Modificare i dati dell’applicazione, Interruzione del servizio: esaurimento di risorse

Come si previene

Architettura e progettazione · Sviluppo Temporary files and other supporting resources should be deleted/released immediately after they are no longer needed.

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

Tutte le 255 CVE di tipo CWE-459, con andamento e prevenzione

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