CVE-2022-48774

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48774
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48774.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48774
Downstream
Related
Published
2024-07-16T11:13:13Z
Modified
2025-10-08T06:00:29.113752Z
Summary
dmaengine: ptdma: Fix the error handling path in pt_core_init()
Details

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

dmaengine: ptdma: Fix the error handling path in ptcoreinit()

In order to free resources correctly in the error handling path of ptcoreinit(), 2 goto's have to be switched. Otherwise, some resources will leak and we will try to release things that have not been allocated yet.

Also move a dev_err() to a place where it is more meaningful.

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
fa5d823b16a9442d609617abeec31da8b6afa224
Fixed
3e41445287afa3cf6d572778e5aab31d25e60a8d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fa5d823b16a9442d609617abeec31da8b6afa224
Fixed
d7de1e4820c5a42441ff7276174c8c0e63575c1b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fa5d823b16a9442d609617abeec31da8b6afa224
Fixed
3c62fd3406e0b2277c76a6984d3979c7f3f1d129

Affected versions

v5.*

v5.14
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.11
v5.15.12
v5.15.13
v5.15.14
v5.15.15
v5.15.16
v5.15.17
v5.15.18
v5.15.19
v5.15.2
v5.15.20
v5.15.21
v5.15.22
v5.15.23
v5.15.24
v5.15.3
v5.15.4
v5.15.5
v5.15.6
v5.15.7
v5.15.8
v5.15.9
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.16.1
v5.16.10
v5.16.2
v5.16.3
v5.16.4
v5.16.5
v5.16.6
v5.16.7
v5.16.8
v5.16.9
v5.17-rc1

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "51509638585180548166603609289825492617",
                    "309445653500953996932772764943130909075",
                    "158290357788415602873645020310587604720",
                    "187040850187775915244669344976336327188",
                    "153812117212954213703859614881711943384",
                    "229136921096843267907919076441898646485",
                    "304926174543940330919147636287245884301",
                    "136040313351354979224152909369472531356",
                    "198006018731867422515829126192632589158",
                    "100701307784962534474863988040699036867",
                    "185345387465568203699594641845107686194",
                    "158687133344166896787441170543328257224",
                    "198615219490613304472441403287110628447",
                    "217143122498445435682526775696543927215",
                    "154532333711431967131453258888182079100",
                    "89998759902545505546435383058807040040",
                    "15366550488166991558671607704482843353",
                    "336856984947282027509695902974009606896",
                    "244302984449005778017883010755017830716",
                    "306990442190053692271046006127658186831",
                    "139355432662355585141456097347386743619"
                ]
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e41445287afa3cf6d572778e5aab31d25e60a8d",
            "deprecated": false,
            "target": {
                "file": "drivers/dma/ptdma/ptdma-dev.c"
            },
            "signature_type": "Line",
            "id": "CVE-2022-48774-14867198"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 2268.0,
                "function_hash": "26539048428166399087402480368649033009"
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7de1e4820c5a42441ff7276174c8c0e63575c1b",
            "deprecated": false,
            "target": {
                "file": "drivers/dma/ptdma/ptdma-dev.c",
                "function": "pt_core_init"
            },
            "signature_type": "Function",
            "id": "CVE-2022-48774-43b36635"
        },
        {
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "51509638585180548166603609289825492617",
                    "309445653500953996932772764943130909075",
                    "158290357788415602873645020310587604720",
                    "187040850187775915244669344976336327188",
                    "153812117212954213703859614881711943384",
                    "229136921096843267907919076441898646485",
                    "304926174543940330919147636287245884301",
                    "136040313351354979224152909369472531356",
                    "198006018731867422515829126192632589158",
                    "100701307784962534474863988040699036867",
                    "185345387465568203699594641845107686194",
                    "158687133344166896787441170543328257224",
                    "198615219490613304472441403287110628447",
                    "217143122498445435682526775696543927215",
                    "154532333711431967131453258888182079100",
                    "89998759902545505546435383058807040040",
                    "15366550488166991558671607704482843353",
                    "336856984947282027509695902974009606896",
                    "244302984449005778017883010755017830716",
                    "306990442190053692271046006127658186831",
                    "139355432662355585141456097347386743619"
                ]
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7de1e4820c5a42441ff7276174c8c0e63575c1b",
            "deprecated": false,
            "target": {
                "file": "drivers/dma/ptdma/ptdma-dev.c"
            },
            "signature_type": "Line",
            "id": "CVE-2022-48774-5bfee37b"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 2268.0,
                "function_hash": "26539048428166399087402480368649033009"
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e41445287afa3cf6d572778e5aab31d25e60a8d",
            "deprecated": false,
            "target": {
                "file": "drivers/dma/ptdma/ptdma-dev.c",
                "function": "pt_core_init"
            },
            "signature_type": "Function",
            "id": "CVE-2022-48774-7818d10c"
        },
        {
            "signature_version": "v1",
            "digest": {
                "length": 2268.0,
                "function_hash": "26539048428166399087402480368649033009"
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c62fd3406e0b2277c76a6984d3979c7f3f1d129",
            "deprecated": false,
            "target": {
                "file": "drivers/dma/ptdma/ptdma-dev.c",
                "function": "pt_core_init"
            },
            "signature_type": "Function",
            "id": "CVE-2022-48774-7fe99040"
        },
        {
            "signature_version": "v1",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "51509638585180548166603609289825492617",
                    "309445653500953996932772764943130909075",
                    "158290357788415602873645020310587604720",
                    "187040850187775915244669344976336327188",
                    "153812117212954213703859614881711943384",
                    "229136921096843267907919076441898646485",
                    "304926174543940330919147636287245884301",
                    "136040313351354979224152909369472531356",
                    "198006018731867422515829126192632589158",
                    "100701307784962534474863988040699036867",
                    "185345387465568203699594641845107686194",
                    "158687133344166896787441170543328257224",
                    "198615219490613304472441403287110628447",
                    "217143122498445435682526775696543927215",
                    "154532333711431967131453258888182079100",
                    "89998759902545505546435383058807040040",
                    "15366550488166991558671607704482843353",
                    "336856984947282027509695902974009606896",
                    "244302984449005778017883010755017830716",
                    "306990442190053692271046006127658186831",
                    "139355432662355585141456097347386743619"
                ]
            },
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c62fd3406e0b2277c76a6984d3979c7f3f1d129",
            "deprecated": false,
            "target": {
                "file": "drivers/dma/ptdma/ptdma-dev.c"
            },
            "signature_type": "Line",
            "id": "CVE-2022-48774-a9626a8f"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.25
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.11