CVE-2024-27068

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-27068
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27068.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-27068
Downstream
Published
2024-05-01T13:04:19Z
Modified
2025-10-17T02:30:56.426362Z
Summary
thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path
Details

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

thermal/drivers/mediatek/lvts_thermal: Fix a memory leak in an error handling path

If devm_krealloc() fails, then 'efuse' is leaking. So free it to avoid a leak.

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
f5f633b18234cecb0e6ee6e5fbb358807dda15c3
Fixed
2db869da91afd48e5b9ec76814709be49662b07d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f5f633b18234cecb0e6ee6e5fbb358807dda15c3
Fixed
a37f3652bee468f879d35fe2da9ede3f1dcbb7be
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f5f633b18234cecb0e6ee6e5fbb358807dda15c3
Fixed
9b02197596671800dd934609384b1aca7c6ad218
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f5f633b18234cecb0e6ee6e5fbb358807dda15c3
Fixed
ca93bf607a44c1f009283dac4af7df0d9ae5e357

Affected versions

v6.*

v6.2
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.6
v6.6-rc1
v6.6-rc2
v6.6-rc3
v6.6-rc4
v6.6-rc5
v6.6-rc6
v6.6-rc7
v6.6.1
v6.6.10
v6.6.11
v6.6.12
v6.6.13
v6.6.14
v6.6.15
v6.6.16
v6.6.17
v6.6.18
v6.6.19
v6.6.2
v6.6.20
v6.6.21
v6.6.22
v6.6.3
v6.6.4
v6.6.5
v6.6.6
v6.6.7
v6.6.8
v6.6.9
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.7.1
v6.7.10
v6.7.2
v6.7.3
v6.7.4
v6.7.5
v6.7.6
v6.7.7
v6.7.8
v6.7.9
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.8.1

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "target": {
            "function": "lvts_calibration_read",
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2db869da91afd48e5b9ec76814709be49662b07d",
        "digest": {
            "function_hash": "44439490018161727281337130500802421590",
            "length": 827.0
        },
        "id": "CVE-2024-27068-0703ee51",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "target": {
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2db869da91afd48e5b9ec76814709be49662b07d",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "124828400582705892459340240817713278546",
                "169515832784651760089936072187454664696",
                "59487556560400854861793486844598846523",
                "41724673964152609707187029100011067554",
                "226005632376215300342206349136648307643"
            ]
        },
        "id": "CVE-2024-27068-1b2f1bda",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "target": {
            "function": "lvts_calibration_read",
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ca93bf607a44c1f009283dac4af7df0d9ae5e357",
        "digest": {
            "function_hash": "44439490018161727281337130500802421590",
            "length": 827.0
        },
        "id": "CVE-2024-27068-4281ec44",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "target": {
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ca93bf607a44c1f009283dac4af7df0d9ae5e357",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "124828400582705892459340240817713278546",
                "169515832784651760089936072187454664696",
                "59487556560400854861793486844598846523",
                "41724673964152609707187029100011067554",
                "226005632376215300342206349136648307643"
            ]
        },
        "id": "CVE-2024-27068-516b7366",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "target": {
            "function": "lvts_calibration_read",
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a37f3652bee468f879d35fe2da9ede3f1dcbb7be",
        "digest": {
            "function_hash": "44439490018161727281337130500802421590",
            "length": 827.0
        },
        "id": "CVE-2024-27068-9c09f066",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "target": {
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b02197596671800dd934609384b1aca7c6ad218",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "124828400582705892459340240817713278546",
                "169515832784651760089936072187454664696",
                "59487556560400854861793486844598846523",
                "41724673964152609707187029100011067554",
                "226005632376215300342206349136648307643"
            ]
        },
        "id": "CVE-2024-27068-b764ebcd",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "target": {
            "function": "lvts_calibration_read",
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9b02197596671800dd934609384b1aca7c6ad218",
        "digest": {
            "function_hash": "44439490018161727281337130500802421590",
            "length": 827.0
        },
        "id": "CVE-2024-27068-e3011091",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "target": {
            "file": "drivers/thermal/mediatek/lvts_thermal.c"
        },
        "signature_version": "v1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a37f3652bee468f879d35fe2da9ede3f1dcbb7be",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "124828400582705892459340240817713278546",
                "169515832784651760089936072187454664696",
                "59487556560400854861793486844598846523",
                "41724673964152609707187029100011067554",
                "226005632376215300342206349136648307643"
            ]
        },
        "id": "CVE-2024-27068-fa36610b",
        "signature_type": "Line"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.6.23
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.7.11
Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.8.2