CVE-2022-48670

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48670
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48670.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48670
Downstream
Published
2024-05-03T14:49:54Z
Modified
2025-10-21T07:48:25.987834Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
peci: cpu: Fix use-after-free in adev_release()
Details

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

peci: cpu: Fix use-after-free in adev_release()

When auxiliarydeviceadd() returns an error, auxiliarydeviceuninit() is called, which causes refcount for device to be decremented and .release callback will be triggered.

Because adevrelease() re-calls auxiliarydeviceuninit(), it will cause use-after-free: [ 1269.455172] WARNING: CPU: 0 PID: 14267 at lib/refcount.c:28 refcountwarnsaturate+0x110/0x15 [ 1269.464007] refcountt: underflow; use-after-free.

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
6523d3b2ffa238ac033c34a726617061d6a744aa
Fixed
c87f1f99e26ea4ae08cabe753ae98e5626bdba89
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6523d3b2ffa238ac033c34a726617061d6a744aa
Fixed
1c11289b34ab67ed080bbe0f1855c4938362d9cf

Affected versions

v5.*

v5.17
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.19.9

v6.*

v6.0-rc1

Database specific

vanir_signatures

[
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "254464290862184663440037274929038336383",
                "105766924253394591361193594524118811165",
                "304583667576893948620000242878568931463",
                "248573562490047208196975832652653025442",
                "141689538253564816294535149787625168378",
                "79139169116204878254376565345145902805",
                "292939201025082319758709268500939018881",
                "309116369447979713190197687362766118612"
            ]
        },
        "target": {
            "file": "drivers/peci/cpu.c"
        },
        "id": "CVE-2022-48670-2d350874",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c87f1f99e26ea4ae08cabe753ae98e5626bdba89",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "1102493259372039685231241929194861625",
            "length": 143.0
        },
        "target": {
            "function": "adev_release",
            "file": "drivers/peci/cpu.c"
        },
        "id": "CVE-2022-48670-5ca632c1",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c87f1f99e26ea4ae08cabe753ae98e5626bdba89",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "135383396929270487917349302842651548806",
            "length": 84.0
        },
        "target": {
            "function": "unregister_adev",
            "file": "drivers/peci/cpu.c"
        },
        "id": "CVE-2022-48670-7e5dc146",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c11289b34ab67ed080bbe0f1855c4938362d9cf",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "254464290862184663440037274929038336383",
                "105766924253394591361193594524118811165",
                "304583667576893948620000242878568931463",
                "248573562490047208196975832652653025442",
                "141689538253564816294535149787625168378",
                "79139169116204878254376565345145902805",
                "292939201025082319758709268500939018881",
                "309116369447979713190197687362766118612"
            ]
        },
        "target": {
            "file": "drivers/peci/cpu.c"
        },
        "id": "CVE-2022-48670-9a56b02a",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c11289b34ab67ed080bbe0f1855c4938362d9cf",
        "signature_type": "Line"
    },
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "1102493259372039685231241929194861625",
            "length": 143.0
        },
        "target": {
            "function": "adev_release",
            "file": "drivers/peci/cpu.c"
        },
        "id": "CVE-2022-48670-a6b0a31f",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c11289b34ab67ed080bbe0f1855c4938362d9cf",
        "signature_type": "Function"
    },
    {
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "135383396929270487917349302842651548806",
            "length": 84.0
        },
        "target": {
            "function": "unregister_adev",
            "file": "drivers/peci/cpu.c"
        },
        "id": "CVE-2022-48670-fd6ed159",
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c87f1f99e26ea4ae08cabe753ae98e5626bdba89",
        "signature_type": "Function"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
5.19.10