Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · net nu 118 bronnen 1 kritiek 30 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-64510

HIGH · 7.0 CVSS Gepubliceerd: CWE-401

Beschrijving NL

In de Linux kernel is de volgende kwetsbaarheid verholpen:

ACPI: NFIT: Core: Fix acpi_nfit_init() foutopruiming

Als acpi_nfit_init() mislukt na het toevoegen van het acpi_DESC-object aan de
acpi_descs lijst, dat object wordt nooit van die lijst verwijderd omdat
de acpi_nfit_shutdown() devm-actie is niet toegevoegd voor het NFIT-apparaat
in dat geval. Vervolgens veroorzaakt de acpi_nfit_init() fout
acpi_nfit_probe() mislukt, het acpi_DESC-object wordt vrijgegeven en een
bungelende wijzer blijft achter in de acpi_descs. Elke volgende
ACPI-machinecontrole-uitzondering activeert nfit_handle_mce() die
itereert over acpi_descs en dus zal er een use-after-free optreden. Bovendien, als acpi_nfit_probe() 0 retourneert na het installeren van een notificatie
handler voor het NFIT-apparaat en zonder toewijzing van de acpi_DESC
object en het instellen van de drivergegevenspointer van het NFIT-apparaat, de
acpi_DESC-object wordt toegewezen door acpi_nfit_update_notify()
en acpi_nfit_init() wordt aangeroepen om het te initialiseren. Hoe dan ook
van het al dan niet falen van acpi_nfit_init() in dat geval, de
acpi_nfit_shutdown() devm-actie is niet toegevoegd voor het NFIT-apparaat
en acpi_DESC wordt nooit verwijderd uit de acpi_descs lijst. Als de
acpi_DESC object wordt vervolgens vrijgegeven bij het verwijderen van de bestuurder,
volgende ACPI MCE zal leiden tot een use-after-free zoals in de
vorige geval. Om het eerste probleem dat hierboven is vermeld aan te pakken, maakt u acpi_nfit_probe()
call acpi_nfit_shutdown() direct op acpi_nfit_init() storingen en
om de andere aan te pakken, voeg je een verwijder callback toe aan de chauffeur en
make it call acpi_nfit_shutdown(). Ook, aangezien het nu mogelijk is om
geef NULL door aan acpi_nfit_shutdown() of het acpi_DESC-object dat eraan is doorgegeven
is mogelijk niet geïnitialiseerd, voeg controles toe tegen NULL voor acpi_DESC en
zijn nvdimm_bus veld naar die functie en maak acpi_nfit_unregister()
het laatste wissen na het uitschrijven van de NVDIMM-bus.

Origineel (Engels) tonen

In the Linux kernel, the following vulnerability has been resolved:

ACPI: NFIT: core: Fix acpi_nfit_init() error cleanup

If acpi_nfit_init() fails after adding the acpi_desc object to the
acpi_descs list, that object is never removed from that list because
the acpi_nfit_shutdown() devm action is not added for the NFIT device
in that case. Next, the acpi_nfit_init() failure causes
acpi_nfit_probe() to fail, the acpi_desc object is freed, and a
dangling pointer is left behind in the acpi_descs. Any subsequent
ACPI Machine Check Exception will trigger nfit_handle_mce() which
iterates over acpi_descs and so a use-after-free will occur.

Moreover, if acpi_nfit_probe() returns 0 after installing a notify
handler for the NFIT device and without allocating the acpi_desc
object and setting the NFIT device's driver data pointer, the
acpi_desc object will be allocated by acpi_nfit_update_notify()
and acpi_nfit_init() will be called to initialize it. Regardless
of whether or not acpi_nfit_init() fails in that case, the
acpi_nfit_shutdown() devm action is not added for the NFIT device
and acpi_desc is never removed from the acpi_descs list. If the
acpi_desc object is freed subsequently on driver removal, any
subsequent ACPI MCE will lead to a use-after-free like in the
previous case.

To address the first issue mentioned above, make acpi_nfit_probe()
call acpi_nfit_shutdown() directly on acpi_nfit_init() failures and
to address the other one, add a remove callback to the driver and
make it call acpi_nfit_shutdown(). Also, since it is now possible to
pass NULL to acpi_nfit_shutdown() or the acpi_desc object passed to it
may not have been initialized, add checks against NULL for acpi_desc and
its nvdimm_bus field to that function and make acpi_nfit_unregister()
clear the latter after unregistering the NVDIMM bus.

Vendors

Linux

Affected products

Linux Kernel

References