IM
IronMonkey Threat Research

CVE-2024-36940 HIGH

Published: 2024-05-30 | Last Modified: 2026-08-04 | Status: Modified

Description

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.

Additional Descriptions (1)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pinctrl: core: eliminar incorrecto gratis en pinctrl_enable() La estructura "pctldev" está asignada en devm_pinctrl_register_and_init(). Es un puntero administrado por devm_ que se libera mediante devm_pinctrl_dev_release(), por lo que liberarlo en pinctrl_enable() generará una doble liberación. La función devm_pinctrl_dev_release() libera los pindescs y también destruye el mutex.

CVSS Metrics

Base Score: 7.8 (HIGH)

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack VectorLOCAL
Attack ComplexityLOW
Privileges RequiredLOW
User InteractionNONE
ScopeUNCHANGED
Confidentiality ImpactHIGH
Integrity ImpactHIGH
Availability ImpactHIGH

Source: [email protected]

Type: Primary

Exploitability Score: 1.8

Impact Score: 5.9

Weaknesses

Source Type Description
[email protected] Primary
en CWE-415

Affected Products

Vendor Product Version Update Type
linux linux_kernel * <built-in method update of dict object at 0x7fd36b4364c0> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd340af0600> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd36bd095c0> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd36be7b540> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd36b436b80> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd386774480> Operating System
linux linux_kernel * <built-in method update of dict object at 0x7fd384647b40> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd36b8f6e00> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd348fdb4c0> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd36b4343c0> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd340ad7300> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd340227d40> Operating System
linux linux_kernel 6.9 <built-in method update of dict object at 0x7fd340ad4880> Operating System
debian debian_linux 10.0 <built-in method update of dict object at 0x7fd340af1680> Operating System

Affected Configurations

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*
Yes cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

References