CVE-2022-48703

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48703
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48703.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48703
Downstream
Related
Published
2024-05-03T15:14:07Z
Modified
2025-10-21T08:05:49.931072Z
Summary
thermal/int340x_thermal: handle data_vault when the value is ZERO_SIZE_PTR
Details

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

thermal/int340xthermal: handle datavault when the value is ZEROSIZEPTR

In some case, the GDDV returns a package with a buffer which has zero length. It causes that kmemdup() returns ZEROSIZEPTR (0x10).

Then the datavaultread() got NULL point dereference problem when accessing the 0x10 value in data_vault.

[ 71.024560] BUG: kernel NULL pointer dereference, address: 0000000000000010

This patch uses ZEROORNULLPTR() for checking ZEROSIZEPTR or NULL value in datavault.

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
0ba13c763aacb27ab32bde5d559bf40e88465921
Fixed
39d5137085a6c37ace4680ee4d24020a4a03e7dc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0ba13c763aacb27ab32bde5d559bf40e88465921
Fixed
dae42083b045a4ddf71c57cf350cb2412b5915c2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0ba13c763aacb27ab32bde5d559bf40e88465921
Fixed
7931e28098a4c1a2a6802510b0cbe57546d2049d

Affected versions

v5.*

v5.10
v5.10-rc1
v5.10-rc2
v5.10-rc3
v5.10-rc4
v5.10-rc5
v5.10-rc6
v5.10-rc7
v5.11
v5.11-rc1
v5.11-rc2
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.15.1
v5.15.10
v5.15.100
v5.15.101
v5.15.102
v5.15.103
v5.15.104
v5.15.105
v5.15.106
v5.15.107
v5.15.108
v5.15.109
v5.15.11
v5.15.110
v5.15.111
v5.15.112
v5.15.113
v5.15.114
v5.15.115
v5.15.116
v5.15.117
v5.15.118
v5.15.119
v5.15.12
v5.15.120
v5.15.121
v5.15.122
v5.15.123
v5.15.124
v5.15.125
v5.15.126
v5.15.127
v5.15.128
v5.15.129
v5.15.13
v5.15.130
v5.15.131
v5.15.132
v5.15.133
v5.15.134
v5.15.135
v5.15.136
v5.15.137
v5.15.138
v5.15.139
v5.15.14
v5.15.140
v5.15.141
v5.15.142
v5.15.143
v5.15.144
v5.15.145
v5.15.146
v5.15.147
v5.15.148
v5.15.149
v5.15.15
v5.15.150
v5.15.151
v5.15.152
v5.15.153
v5.15.154
v5.15.155
v5.15.156
v5.15.157
v5.15.158
v5.15.159
v5.15.16
v5.15.160
v5.15.161
v5.15.162
v5.15.163
v5.15.164
v5.15.165
v5.15.166
v5.15.167
v5.15.168
v5.15.169
v5.15.17
v5.15.170
v5.15.171
v5.15.172
v5.15.173
v5.15.174
v5.15.175
v5.15.176
v5.15.177
v5.15.178
v5.15.179
v5.15.18
v5.15.180
v5.15.181
v5.15.182
v5.15.183
v5.15.184
v5.15.185
v5.15.186
v5.15.187
v5.15.188
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.25
v5.15.26
v5.15.27
v5.15.28
v5.15.29
v5.15.3
v5.15.30
v5.15.31
v5.15.32
v5.15.33
v5.15.34
v5.15.35
v5.15.36
v5.15.37
v5.15.38
v5.15.39
v5.15.4
v5.15.40
v5.15.41
v5.15.42
v5.15.43
v5.15.44
v5.15.45
v5.15.46
v5.15.47
v5.15.48
v5.15.49
v5.15.5
v5.15.50
v5.15.51
v5.15.52
v5.15.53
v5.15.54
v5.15.55
v5.15.56
v5.15.57
v5.15.58
v5.15.59
v5.15.6
v5.15.60
v5.15.61
v5.15.62
v5.15.63
v5.15.64
v5.15.65
v5.15.66
v5.15.67
v5.15.68
v5.15.69
v5.15.7
v5.15.70
v5.15.71
v5.15.72
v5.15.73
v5.15.74
v5.15.75
v5.15.76
v5.15.77
v5.15.78
v5.15.79
v5.15.8
v5.15.80
v5.15.81
v5.15.82
v5.15.83
v5.15.84
v5.15.85
v5.15.86
v5.15.87
v5.15.88
v5.15.89
v5.15.9
v5.15.90
v5.15.91
v5.15.92
v5.15.93
v5.15.94
v5.15.95
v5.15.96
v5.15.97
v5.15.98
v5.15.99
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1
v5.19.2
v5.19.3
v5.19.4
v5.19.5
v5.19.6
v5.19.7
v5.19.8
v5.7
v5.7-rc2
v5.7-rc3
v5.7-rc4
v5.7-rc5
v5.7-rc6
v5.7-rc7
v5.8
v5.8-rc1
v5.8-rc2
v5.8-rc3
v5.8-rc4
v5.8-rc5
v5.8-rc6
v5.8-rc7
v5.9
v5.9-rc1
v5.9-rc2
v5.9-rc3
v5.9-rc4
v5.9-rc5
v5.9-rc6
v5.9-rc7
v5.9-rc8

v6.*

v6.0-rc1
v6.0-rc2

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39d5137085a6c37ace4680ee4d24020a4a03e7dc",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_thermal_probe"
        },
        "digest": {
            "length": 2080.0,
            "function_hash": "259488864097159231245084544735428677478"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-2e6d6292"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dae42083b045a4ddf71c57cf350cb2412b5915c2",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_thermal_remove"
        },
        "digest": {
            "length": 600.0,
            "function_hash": "326735531709575172907595059707415871824"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-31de1dbd"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39d5137085a6c37ace4680ee4d24020a4a03e7dc",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_thermal_remove"
        },
        "digest": {
            "length": 600.0,
            "function_hash": "326735531709575172907595059707415871824"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-6feef3a7"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dae42083b045a4ddf71c57cf350cb2412b5915c2",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "47402156133892638453212492777629854516",
                "60251463454047663781179303896588093487",
                "193748929203801279933248625435499013103",
                "140366250238995265823401346334951937642",
                "181286507721266221490302131677087351903",
                "220394382633218086232090831109860340320",
                "129562004585403583785773042165059574205",
                "83292995723424177759464548226599393522",
                "87476074521999643368051144420905471997",
                "197716838922155596042865355447276927491",
                "25183817745320300348702786540347491645",
                "208473734870369827152272542330043181908",
                "76885115221212363052322280258311957644",
                "315508452371571620262082598208286613271",
                "166692207614492416208877513395183891507",
                "24113034769012915373853133457938539519"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-48703-7db43641"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7931e28098a4c1a2a6802510b0cbe57546d2049d",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_setup_gddv"
        },
        "digest": {
            "length": 770.0,
            "function_hash": "315871660685546590564487363089561422497"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-b0f14cd3"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7931e28098a4c1a2a6802510b0cbe57546d2049d",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "47402156133892638453212492777629854516",
                "60251463454047663781179303896588093487",
                "193748929203801279933248625435499013103",
                "140366250238995265823401346334951937642",
                "181286507721266221490302131677087351903",
                "220394382633218086232090831109860340320",
                "129562004585403583785773042165059574205",
                "83292995723424177759464548226599393522",
                "87476074521999643368051144420905471997",
                "197716838922155596042865355447276927491",
                "25183817745320300348702786540347491645",
                "208473734870369827152272542330043181908",
                "76885115221212363052322280258311957644",
                "315508452371571620262082598208286613271",
                "166692207614492416208877513395183891507",
                "24113034769012915373853133457938539519"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-48703-bc999e3c"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7931e28098a4c1a2a6802510b0cbe57546d2049d",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_thermal_remove"
        },
        "digest": {
            "length": 600.0,
            "function_hash": "326735531709575172907595059707415871824"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-beeb83a5"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39d5137085a6c37ace4680ee4d24020a4a03e7dc",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_setup_gddv"
        },
        "digest": {
            "length": 811.0,
            "function_hash": "274758787933427700217174079017904432783"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-c4563044"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dae42083b045a4ddf71c57cf350cb2412b5915c2",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_setup_gddv"
        },
        "digest": {
            "length": 770.0,
            "function_hash": "315871660685546590564487363089561422497"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-df740017"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7931e28098a4c1a2a6802510b0cbe57546d2049d",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_thermal_probe"
        },
        "digest": {
            "length": 2080.0,
            "function_hash": "259488864097159231245084544735428677478"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-f02215b6"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@39d5137085a6c37ace4680ee4d24020a4a03e7dc",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "152067126694815270128945680070558500902",
                "186829156200694260552578899199611759847",
                "251109189262066365533812277217231698444",
                "238881752234285882730825776153059534252",
                "181286507721266221490302131677087351903",
                "220394382633218086232090831109860340320",
                "129562004585403583785773042165059574205",
                "83292995723424177759464548226599393522",
                "87476074521999643368051144420905471997",
                "197716838922155596042865355447276927491",
                "25183817745320300348702786540347491645",
                "208473734870369827152272542330043181908",
                "76885115221212363052322280258311957644",
                "315508452371571620262082598208286613271",
                "166692207614492416208877513395183891507",
                "24113034769012915373853133457938539519"
            ]
        },
        "deprecated": false,
        "signature_type": "Line",
        "id": "CVE-2022-48703-f424304d"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dae42083b045a4ddf71c57cf350cb2412b5915c2",
        "signature_version": "v1",
        "target": {
            "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c",
            "function": "int3400_thermal_probe"
        },
        "digest": {
            "length": 2080.0,
            "function_hash": "259488864097159231245084544735428677478"
        },
        "deprecated": false,
        "signature_type": "Function",
        "id": "CVE-2022-48703-ff558f46"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.8.0
Fixed
5.15.189
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.9