Skip to content
Heist/ feed
Back to feed
UnratedFix available

ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins() This patch addresses a reference count handling issue in the ice_dpll_init_rclk_pins() function. The function calls ice_dpll_get_pins(), which increments the reference count of the relevant resources. However, if the condition WARN_ON((!vsi || !vsi->netdev)) is met, the function currently returns an error without properly releasing the resources acquired by ice_dpll_get_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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.11.4
CVEs
CVE-2024-50021
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 00:58 UTC · Revision 1

Source evidence

ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins()

core-osv · Original source

Published 21 Oct 2024, 19:39 UTC

In the Linux kernel, the following vulnerability has been resolved: ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins() This patch addresses a reference count handling issue in the ice_dpll_init_rclk_pins() function. The function calls ice_dpll_get_pins(), which increments the reference count of the relevant resources. However, if the condition WARN_ON((!vsi || !vsi->netdev)) is met, the function currently returns an error without properly releasing the resources acquired by ice_dpll_get_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.

osv:CVE-2024-50021

Kernel

Fixed versions: 6.11.4

Complete source record
{
  "id": "e7fb2c9feb6470458e5b188e7ac21533b3be397ca12af74b5e578b21be8c02d5",
  "url": "https://osv.dev/vulnerability/CVE-2024-50021",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: ice: Fix improper handling of refcount in ice_dpll_init_rclk_pins() This patch addresses a reference count handling issue in the ice_dpll_init_rclk_pins() function. The function calls ice_dpll_get_pins(), which increments the reference count of the relevant resources. However, if the condition WARN_ON((!vsi || !vsi->netdev)) is met, the function currently returns an error without properly releasing the resources acquired by ice_dpll_get_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.",
    "evidence": "osv:CVE-2024-50021",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.11.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-50021",
      "aliases": [
        "CVE-2024-50021"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d7999f5ea64bb10d2857b8cbfe973be373bac7c9"
                },
                {
                  "fixed": "aefecead9d08f4a35ab6f51ba2e408d2cef4e31d"
                },
                {
                  "fixed": "ccca30a18e36a742e606d5bf0630e75be7711d0a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50021.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.11.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50021.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:41.109538878Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/aefecead9d08f4a35ab6f51ba2e408d2cef4e31d",
        "https://git.kernel.org/stable/c/ccca30a18e36a742e606d5bf0630e75be7711d0a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50021.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-50021",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50021.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-50021",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 508809,
  "published_at": "2024-10-21T19:39:27.212+00:00"
}