of: overlay: Call of_changeset_init() early
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 01bb96ad38089f5cc6de7746dac13437d35eb1dc, Kernel 3fb210cd521c9efcb211e9f5ce40fc907200bf13, Kernel a9515ff4fb142b690a0d2b58782b15903b990dba and 2 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.15, >=f948d6d8b792bb90041edc12eac35faf83030994 <01bb96ad38089f5cc6de7746dac13437d35eb1dc, >=f948d6d8b792bb90041edc12eac35faf83030994 <3fb210cd521c9efcb211e9f5ce40fc907200bf13, >=f948d6d8b792bb90041edc12eac35faf83030994 <a9515ff4fb142b690a0d2b58782b15903b990dba, >=f948d6d8b792bb90041edc12eac35faf83030994 <be86241bf5d1efd16d8a7231c13b33459c5d755d, >=f948d6d8b792bb90041edc12eac35faf83030994 <c403c81b577a67fe9ec6a2e89d143256487be50f | 01bb96ad38089f5cc6de7746dac13437d35eb1dc, 3fb210cd521c9efcb211e9f5ce40fc907200bf13, a9515ff4fb142b690a0d2b58782b15903b990dba, be86241bf5d1efd16d8a7231c13b33459c5d755d, c403c81b577a67fe9ec6a2e89d143256487be50f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket