CVE-2024-50021

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50021
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50021.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-50021
Downstream
Related
Published
2024-10-21T19:39:27Z
Modified
2025-10-17T15:00:01.919345Z
Summary
ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins()
Details

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

ice: Fix improper handling of refcount in icedpllinitrclkpins()

This patch addresses a reference count handling issue in the icedpllinitrclkpins() function. The function calls icedpllgetpins(), which increments the reference count of the relevant resources. However, if the condition WARNON((!vsi || !vsi->netdev)) is met, the function currently returns an error without properly releasing the resources acquired by icedpllget_pins(), leading to a reference count leak.

To resolve this, the check has been moved to the top of the function. This ensures that the function verifies the state before any resources are acquired, avoiding the need for additional resource management in the error path.

This bug was identified by an experimental static analysis tool developed by our team. The tool specializes in analyzing reference count operations and detecting potential issues where resources are not properly managed. In this case, the tool flagged the missing release operation as a potential problem, which led to the development of this patch.

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
d7999f5ea64bb10d2857b8cbfe973be373bac7c9
Fixed
aefecead9d08f4a35ab6f51ba2e408d2cef4e31d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d7999f5ea64bb10d2857b8cbfe973be373bac7c9
Fixed
ccca30a18e36a742e606d5bf0630e75be7711d0a

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.6
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.7
v6.7-rc1
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.7.0
Fixed
6.11.4