CVE-2024-50197

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50197
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50197.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-50197
Downstream
Related
Published
2024-11-08T05:54:11Z
Modified
2025-10-15T17:36:27.067572Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
pinctrl: intel: platform: fix error path in device_for_each_child_node()
Details

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: intel: platform: fix error path in deviceforeachchildnode()

The deviceforeachchildnode() loop requires calls to fwnodehandleput() upon early returns to decrement the refcount of the child node and avoid leaking memory if that error path is triggered.

There is one early returns within that loop in intelplatformpinctrlpreparecommunity(), but fwnodehandleput() is missing.

Instead of adding the missing call, the scoped version of the loop can be used to simplify the code and avoid mistakes in the future if new early returns are added, as the child node is only used for parsing, and it is never assigned.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c5860e4a2737a8b29dc426c800d01c5be6aad811
Fixed
be3f7b9f995a6c2ee02767a0319929a2a98adf69
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c5860e4a2737a8b29dc426c800d01c5be6aad811
Fixed
16a6d2e685e8f9a2f51dd5a363d3f97fcad35e22

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.11.1
v6.11.2
v6.11.3
v6.11.4
v6.12-rc1
v6.7
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.11.5