CVE-2024-57799

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-57799
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-57799.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-57799
Downstream
Related
Published
2025-01-11T12:39:48.936Z
Modified
2025-11-20T07:28:23.356869Z
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
phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM
Details

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

phy: rockchip: samsung-hdptx: Set drvdata before enabling runtime PM

In some cases, rkhdptxphyruntimeresume() may be invoked before platformsetdrvdata() is executed in ->probe(), leading to a NULL pointer dereference when using the return of devgetdrvdata().

Ensure platformsetdrvdata() is called before devmpmruntime_enable().

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
553be2830c5f33308483e8118de748a2c69fe593
Fixed
7061849a4a1752a06944a819dd1f7bfd58df7383
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
553be2830c5f33308483e8118de748a2c69fe593
Fixed
9d23e48654620fdccfcc74cc2cef04eaf7353d07

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.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.2
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.13-rc1
v6.8
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

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "target": {
            "file": "drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "18886521669018329915030249217710651314",
                "230632805712475630332971363273693392865",
                "64872937168035776606303465586648938882",
                "212727503228795392892175102790604090530",
                "20532756178500834670808499194748236623",
                "328847607404307486179020094737015929659",
                "239545391338656834037344494665047080799"
            ]
        },
        "id": "CVE-2024-57799-030259a8",
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7061849a4a1752a06944a819dd1f7bfd58df7383",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c",
            "function": "rk_hdptx_phy_probe"
        },
        "digest": {
            "length": 1907.0,
            "function_hash": "197225736752788395226177897280184940973"
        },
        "id": "CVE-2024-57799-09a83a26",
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d23e48654620fdccfcc74cc2cef04eaf7353d07",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "18886521669018329915030249217710651314",
                "230632805712475630332971363273693392865",
                "64872937168035776606303465586648938882",
                "212727503228795392892175102790604090530",
                "20532756178500834670808499194748236623",
                "328847607404307486179020094737015929659",
                "239545391338656834037344494665047080799"
            ]
        },
        "id": "CVE-2024-57799-87b20eaf",
        "signature_type": "Line",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9d23e48654620fdccfcc74cc2cef04eaf7353d07",
        "signature_version": "v1"
    },
    {
        "deprecated": false,
        "target": {
            "file": "drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c",
            "function": "rk_hdptx_phy_probe"
        },
        "digest": {
            "length": 2032.0,
            "function_hash": "99146629036468312316842015872400360636"
        },
        "id": "CVE-2024-57799-e9723c38",
        "signature_type": "Function",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7061849a4a1752a06944a819dd1f7bfd58df7383",
        "signature_version": "v1"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.12.8