pinctrl: core: delete incorrect free in pinctrl_enable()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6118714275f0a313ecc296a87ed1af32d9691bed · < 558c8039fdf596a584a92c171cbf3298919c448c| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's pinctrl_enable() incorrectly frees a managed pctldev structure that is also freed during device release, causing a double free. The input does not establish how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions are not specified.