Skip to content
Heist/ feed
Back to feed
MediumFix available

phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend Commit 413db06c05e7 ("phy: qcom-qmp-usb: clean up probe initialisation") removed most users of the platform device driver data from the qcom-qmp-usb driver, but mistakenly also removed the initialisation despite the data still being used in the runtime PM callbacks. This bug was later reproduced when the driver was copied to create the qmp-usb-legacy driver. Restore the driver data initialisation at probe to avoid a NULL-pointer dereference on runtime suspend. Apparently no one uses runtime PM, which currently needs to be enabled manually through sysfs, with these drivers.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.11.7, 6.6.60
CVEs
CVE-2024-50239
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 11:22 UTC · Revision 1

Source evidence

phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend

core-osv · Original source

Published 9 Nov 2024, 10:14 UTC

In the Linux kernel, the following vulnerability has been resolved: phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend Commit 413db06c05e7 ("phy: qcom-qmp-usb: clean up probe initialisation") removed most users of the platform device driver data from the qcom-qmp-usb driver, but mistakenly also removed the initialisation despite the data still being used in the runtime PM callbacks. This bug was later reproduced when the driver was copied to create the qmp-usb-legacy driver. Restore the driver data initialisation at probe to avoid a NULL-pointer dereference on runtime suspend. Apparently no one uses runtime PM, which currently needs to be enabled manually through sysfs, with these drivers.

osv:CVE-2024-50239

Kernel

Fixed versions: 6.6.60, 6.11.7

Complete source record
{
  "id": "bfa6f428100404d297e01d7eea9ddf18064469820ddbd806395a5a85997eccb9",
  "url": "https://osv.dev/vulnerability/CVE-2024-50239",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: phy: qcom: qmp-usb-legacy: fix NULL-deref on runtime suspend Commit 413db06c05e7 (\"phy: qcom-qmp-usb: clean up probe initialisation\") removed most users of the platform device driver data from the qcom-qmp-usb driver, but mistakenly also removed the initialisation despite the data still being used in the runtime PM callbacks. This bug was later reproduced when the driver was copied to create the qmp-usb-legacy driver. Restore the driver data initialisation at probe to avoid a NULL-pointer dereference on runtime suspend. Apparently no one uses runtime PM, which currently needs to be enabled manually through sysfs, with these drivers.",
    "evidence": "osv:CVE-2024-50239",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.60",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.11.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-50239",
      "aliases": [
        "CVE-2024-50239"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e464a3180a43b6596bd267f9f274e1793bfb8150"
                },
                {
                  "fixed": "7e8066811a2c43fbb5f53c2c26d389e4bab9da34"
                },
                {
                  "fixed": "b1cffd00daa9cf499b49a0da698eff5032914f6e"
                },
                {
                  "fixed": "29240130ab77c80bea1464317ae2a5fd29c16a0c"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50239.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.6.0"
                },
                {
                  "fixed": "6.6.60"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.11.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50239.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.006095329Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/29240130ab77c80bea1464317ae2a5fd29c16a0c",
        "https://git.kernel.org/stable/c/7e8066811a2c43fbb5f53c2c26d389e4bab9da34",
        "https://git.kernel.org/stable/c/b1cffd00daa9cf499b49a0da698eff5032914f6e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50239.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-50239",
        "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-50239.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-50239",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519118,
  "published_at": "2024-11-09T10:14:49.171+00:00"
}