of: overlay: Call of_changeset_init() early (Linux Linux)

CVE-2023-53856
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.23 % · centile 14 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

Description

In the Linux kernel, the following vulnerability has been resolved: of: overlay: Call of_changeset_init() early When of_overlay_fdt_apply() fails, the changeset may be partially applied, and the caller is still expected to call of_overlay_remove() to clean up this partial state. However, of_overlay_apply() calls of_resolve_phandles() before init_overlay_changeset(). Hence if the overlay fails to apply due to an unresolved symbol, the overlay_changeset.cset.entries list is still uninitialized, and cleanup will crash with a NULL-pointer dereference in overlay_removal_is_ok(). Fix this by moving the call to of_changeset_init() from init_overlay_changeset() to of_overlay_fdt_apply(), where all other early initialization is done.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected f948d6d8b792bb90041edc12eac35faf83030994 < 01bb96ad38089f5cc6de7746dac13437d35eb1dc ; affected f948d6d8b792bb90041edc12eac35faf83030994 < 3fb210cd521c9efcb211e9f5ce40fc907200bf13 ; affected f948d6d8b792bb90041edc12eac35faf83030994 < be86241bf5d1efd16d8a7231c13b33459c5d755d ; affected f948d6d8b792bb90041edc12eac35faf83030994 < c403c81b577a67fe9ec6a2e89d143256487be50f ; affected f948d6d8b792bb90041edc12eac35faf83030994 < a9515ff4fb142b690a0d2b58782b15903b990dba
Linux · Linuxaffected 4.15 ; unaffected 0 < 4.15 ; unaffected 5.15.132 ≤ 5.15.* ; unaffected 6.1.53 ≤ 6.1.* ; unaffected 6.4.16 ≤ 6.4.* ; unaffected 6.5.3 ≤ 6.5.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD