NetSight
high7.8

CVE-2024-36940

In the Linux kernel, the following vulnerability has been resolved: pinctrl: core: delete incorrect free in pinctrl_enable() The "pctldev" struct is allocated …

Impact

In the Linux kernel, the following vulnerability has been resolved: pinctrl: core: delete incorrect free in pinctrl_enable() The "pctldev" struct is allocated in devm_pinctrl_register_and_init(). It's a devm_ managed pointer that is freed by devm_pinctrl_dev_release(), so freeing it in pinctrl_enable() will lead to a double free. The devm_pinctrl_dev_release() function frees the pindescs and destroys the mutex as well.

Affected products

VendorProductAffected versions
LinuxLinux Kernel
from 4.11 before 4.19.314
from 4.20 before 5.4.276
from 5.5 before 5.10.217
from 5.11 before 5.15.159
from 5.16 before 6.1.91
from 6.2 before 6.6.31
DebianDebian Linux
Version 10.0

Weakness classification

References