In the Linux kernel, the following vulnerability has been resolved:
reset: gpio: fix double free in reset_add_gpio_aux_device() error path
When __auxiliary_device_add() fails, reset_add_gpio_aux_device()
calls auxiliary_device_uninit(adev).
The device release callback reset_gpio_aux_device_release() frees
adev, but the current error path then calls kfree(adev) again,
causing a double free.
Keep kfree(adev) for the auxiliary_device_init() failure path, but
avoid freeing adev after auxiliary_device_uninit().
A double free vulnerability exists in the Linux kernel's GPIO reset driver when auxiliary device initialization fails. The error handling path incorrectly frees memory twice, potentially allowing denial of service or code execution.
تحتوي ثغرة في برنامج تشغيل إعادة تعيين GPIO بنواة لينكس على خطأ في معالجة الأخطاء حيث يتم تحرير الذاكرة مرتين عند فشل إضافة الجهاز المساعد. قد يؤدي هذا إلى حالة عدم استقرار النظام أو تنفيذ كود عشوائي.
A double free vulnerability in Linux kernel GPIO reset driver occurs during failed auxiliary device initialization. This could enable denial of service attacks or arbitrary code execution on affected Saudi systems.
Update the Linux kernel to the patched version that corrects the error handling in reset_add_gpio_aux_device() to avoid double free. Apply the fix that removes redundant kfree(adev) after auxiliary_device_uninit() call.
قم بتحديث نواة لينكس إلى الإصدار المصحح الذي يصحح معالجة الأخطاء في reset_add_gpio_aux_device() لتجنب التحرير المزدوج. طبق الإصلاح الذي يزيل استدعاء kfree(adev) الزائد بعد استدعاء auxiliary_device_uninit().