CVE-2026-43328
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
cpufreq: governor: fix double free in het foutpad cpufreq_dbs_governor_init()
Wanneer kobject_init_and_add() mislukt, roept cpufreq_dbs_governor_init()
kobject_put(&dbs_data->attr_set.kobj). De kobject release callback cpufreq_dbs_data_release() roept
gov->exit(dbs_data) en kfree(dbs_data), maar het huidige foutpad
roept dan gov->exit(dbs_data) en kfree (dbs_data) opnieuw aan, waardoor een
dubbele free ontstaat. Houd de directe kfree(dbs_data) voor het gov- >init() foutpad, maar
nadat kobject_init_AND_add() is aangeroepen, laat kobject_put()
het opruimen via cpufreq_dbs_data_release().
Origineel (Engels) tonen
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: governor: fix double free in cpufreq_dbs_governor_init() error path
When kobject_init_and_add() fails, cpufreq_dbs_governor_init() calls
kobject_put(&dbs_data->attr_set.kobj).
The kobject release callback cpufreq_dbs_data_release() calls
gov->exit(dbs_data) and kfree(dbs_data), but the current error path
then calls gov->exit(dbs_data) and kfree(dbs_data) again, causing a
double free.
Keep the direct kfree(dbs_data) for the gov->init() failure path, but
after kobject_init_and_add() has been called, let kobject_put() handle
the cleanup through cpufreq_dbs_data_release().