CVE-2022-49512

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49512
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49512.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49512
Downstream
Related
Published
2025-02-26T02:13:42Z
Modified
2025-10-21T10:47:16.430780Z
Summary
mtd: rawnand: denali: Use managed device resources
Details

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

mtd: rawnand: denali: Use managed device resources

All of the resources used by this driver has managed interfaces, so use them. Otherwise we will get the following splat:

[ 4.472703] denali-nand-pci 0000:00:05.0: timeout while waiting for irq 0x1000 [ 4.474071] denali-nand-pci: probe of 0000:00:05.0 failed with error -5 [ 4.473538] nand: No NAND device found [ 4.474068] BUG: unable to handle page fault for address: ffffc90005000410 [ 4.475169] #PF: supervisor write access in kernel mode [ 4.475579] #PF: errorcode(0x0002) - not-present page [ 4.478362] RIP: 0010:iowrite32+0x9/0x50 [ 4.486068] Call Trace: [ 4.486269] <IRQ> [ 4.486443] denaliisr+0x15b/0x300 [denali] [ 4.486788] ? denalidirectwrite+0x50/0x50 [denali] [ 4.487189] _handleirqeventpercpu+0x161/0x3b0 [ 4.487571] handleirqevent+0x7d/0x1b0 [ 4.487884] handlefasteoiirq+0x2b0/0x770 [ 4.488219] _commoninterrupt+0xc8/0x1b0 [ 4.488549] common_interrupt+0x9a/0xc0

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
93db446a424cee9387b532995e6b516667079555
Fixed
3c68daf4a368cd9e63ae5a2145c9e4a6f838c166
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
93db446a424cee9387b532995e6b516667079555
Fixed
3830dbdfb9a4aec680e43ed80b9f23db7a88eac9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
93db446a424cee9387b532995e6b516667079555
Fixed
87149cf9186201a63f0e0b93d9fa93d480bcb771
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
93db446a424cee9387b532995e6b516667079555
Fixed
efea1dd176edd17c8252051b7de6957f06efc394
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
93db446a424cee9387b532995e6b516667079555
Fixed
3a745b51cddafade99aaea1b93aad31e9614e230

Affected versions

v4.*

v4.16
v4.16-rc2
v4.16-rc3
v4.16-rc4
v4.16-rc5
v4.16-rc6
v4.16-rc7
v4.17
v4.17-rc1
v4.17-rc2
v4.17-rc3
v4.17-rc4
v4.17-rc5
v4.17-rc6
v4.17-rc7
v4.18
v4.18-rc1
v4.18-rc2
v4.18-rc3
v4.18-rc4
v4.18-rc5
v4.18-rc6
v4.18-rc7
v4.18-rc8
v4.19
v4.19-rc1
v4.19-rc2
v4.19-rc3
v4.19-rc4
v4.19-rc5
v4.19-rc6
v4.19-rc7
v4.19-rc8
v4.20
v4.20-rc1
v4.20-rc2
v4.20-rc3
v4.20-rc4
v4.20-rc5
v4.20-rc6
v4.20-rc7

v5.*

v5.0
v5.0-rc1
v5.0-rc2
v5.0-rc3
v5.0-rc4
v5.0-rc5
v5.0-rc6
v5.0-rc7
v5.0-rc8
v5.1
v5.1-rc1
v5.1-rc2
v5.1-rc3
v5.1-rc4
v5.1-rc5
v5.1-rc6
v5.1-rc7
v5.10
v5.10-rc1
v5.10-rc2
v5.10-rc3
v5.10-rc4
v5.10-rc5
v5.10-rc6
v5.10-rc7
v5.10.1
v5.10.10
v5.10.100
v5.10.101
v5.10.102
v5.10.103
v5.10.104
v5.10.105
v5.10.106
v5.10.107
v5.10.108
v5.10.109
v5.10.11
v5.10.110
v5.10.111
v5.10.112
v5.10.113
v5.10.114
v5.10.115
v5.10.116
v5.10.117
v5.10.118
v5.10.119
v5.10.12
v5.10.120
v5.10.13
v5.10.14
v5.10.15
v5.10.16
v5.10.17
v5.10.18
v5.10.19
v5.10.2
v5.10.20
v5.10.21
v5.10.22
v5.10.23
v5.10.24
v5.10.25
v5.10.26
v5.10.27
v5.10.28
v5.10.29
v5.10.3
v5.10.30
v5.10.31
v5.10.32
v5.10.33
v5.10.34
v5.10.35
v5.10.36
v5.10.37
v5.10.38
v5.10.39
v5.10.4
v5.10.40
v5.10.41
v5.10.42
v5.10.43
v5.10.44
v5.10.45
v5.10.46
v5.10.47
v5.10.48
v5.10.49
v5.10.5
v5.10.50
v5.10.51
v5.10.52
v5.10.53
v5.10.54
v5.10.55
v5.10.56
v5.10.57
v5.10.58
v5.10.59
v5.10.6
v5.10.60
v5.10.61
v5.10.62
v5.10.63
v5.10.64
v5.10.65
v5.10.66
v5.10.67
v5.10.68
v5.10.69
v5.10.7
v5.10.70
v5.10.71
v5.10.72
v5.10.73
v5.10.74
v5.10.75
v5.10.76
v5.10.77
v5.10.78
v5.10.79
v5.10.8
v5.10.80
v5.10.81
v5.10.82
v5.10.83
v5.10.84
v5.10.85
v5.10.86
v5.10.87
v5.10.88
v5.10.89
v5.10.9
v5.10.90
v5.10.91
v5.10.92
v5.10.93
v5.10.94
v5.10.95
v5.10.96
v5.10.97
v5.10.98
v5.10.99
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.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.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.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.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.17.1
v5.17.10
v5.17.11
v5.17.12
v5.17.13
v5.17.2
v5.17.3
v5.17.4
v5.17.5
v5.17.6
v5.17.7
v5.17.8
v5.17.9
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.18.1
v5.18.2
v5.2
v5.2-rc1
v5.2-rc2
v5.2-rc3
v5.2-rc4
v5.2-rc5
v5.2-rc6
v5.2-rc7
v5.3
v5.3-rc1
v5.3-rc2
v5.3-rc3
v5.3-rc4
v5.3-rc5
v5.3-rc6
v5.3-rc7
v5.3-rc8
v5.4
v5.4-rc1
v5.4-rc2
v5.4-rc3
v5.4-rc4
v5.4-rc5
v5.4-rc6
v5.4-rc7
v5.4-rc8
v5.5
v5.5-rc1
v5.5-rc2
v5.5-rc3
v5.5-rc4
v5.5-rc5
v5.5-rc6
v5.5-rc7
v5.6
v5.6-rc1
v5.6-rc2
v5.6-rc3
v5.6-rc4
v5.6-rc5
v5.6-rc6
v5.6-rc7
v5.7
v5.7-rc1
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

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efea1dd176edd17c8252051b7de6957f06efc394",
        "target": {
            "function": "denali_pci_remove",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-1969f622",
        "signature_type": "Function",
        "digest": {
            "function_hash": "41897166204156677369702378030417102166",
            "length": 150.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3830dbdfb9a4aec680e43ed80b9f23db7a88eac9",
        "target": {
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-3351b718",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "298723966409929826005720405417529385594",
                "313620225380516347128692913099594735820",
                "49496188417127062626406910672492589002",
                "264680119253414394797410579106507745552",
                "121537029995333715066171939138000968707",
                "257125948635163122332354203535425152827",
                "76333701090029089883293313834735538905",
                "23423450195933595731370959682879608379",
                "252091712943456681248893840164703096359",
                "307151265778118534349553193538300375567",
                "330458559974278054977068114372311284598",
                "29466083393465619911270384680177605312",
                "154650873234129283447879272041086209307",
                "243599634480560230625410696422978375336",
                "70764206741569335521746568247819382350",
                "262945053098794709280608017674906474794",
                "6318145436841849689365075722479285095",
                "122321030445883782002302858277981203206",
                "302026189738153637703775100356345678929",
                "148916582615095644552744973460194989499",
                "136650377578626782256970574570125300176",
                "333794959217794458555192344210770960150",
                "237415418400312938792970498399217778956",
                "14173654546641039927590793957412072423",
                "272823316245331399395346128483938739316",
                "22075025806925670504550984018475873716",
                "44254413429743061805307061945504300691",
                "54782213702051351156975601086060448422",
                "267256873816752358221556749574925207776"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efea1dd176edd17c8252051b7de6957f06efc394",
        "target": {
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-63f5d850",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "298723966409929826005720405417529385594",
                "313620225380516347128692913099594735820",
                "49496188417127062626406910672492589002",
                "264680119253414394797410579106507745552",
                "121537029995333715066171939138000968707",
                "257125948635163122332354203535425152827",
                "76333701090029089883293313834735538905",
                "23423450195933595731370959682879608379",
                "252091712943456681248893840164703096359",
                "307151265778118534349553193538300375567",
                "330458559974278054977068114372311284598",
                "29466083393465619911270384680177605312",
                "154650873234129283447879272041086209307",
                "243599634480560230625410696422978375336",
                "70764206741569335521746568247819382350",
                "262945053098794709280608017674906474794",
                "6318145436841849689365075722479285095",
                "122321030445883782002302858277981203206",
                "302026189738153637703775100356345678929",
                "148916582615095644552744973460194989499",
                "136650377578626782256970574570125300176",
                "333794959217794458555192344210770960150",
                "237415418400312938792970498399217778956",
                "14173654546641039927590793957412072423",
                "272823316245331399395346128483938739316",
                "22075025806925670504550984018475873716",
                "44254413429743061805307061945504300691",
                "54782213702051351156975601086060448422",
                "267256873816752358221556749574925207776"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3a745b51cddafade99aaea1b93aad31e9614e230",
        "target": {
            "function": "denali_pci_probe",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-65946ce2",
        "signature_type": "Function",
        "digest": {
            "function_hash": "6981675958717430046265120337120051205",
            "length": 2032.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c68daf4a368cd9e63ae5a2145c9e4a6f838c166",
        "target": {
            "function": "denali_pci_probe",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-7bb515b5",
        "signature_type": "Function",
        "digest": {
            "function_hash": "6981675958717430046265120337120051205",
            "length": 2032.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c68daf4a368cd9e63ae5a2145c9e4a6f838c166",
        "target": {
            "function": "denali_pci_remove",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-890cc85c",
        "signature_type": "Function",
        "digest": {
            "function_hash": "41897166204156677369702378030417102166",
            "length": 150.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@efea1dd176edd17c8252051b7de6957f06efc394",
        "target": {
            "function": "denali_pci_probe",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-8b0fefcf",
        "signature_type": "Function",
        "digest": {
            "function_hash": "6981675958717430046265120337120051205",
            "length": 2032.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87149cf9186201a63f0e0b93d9fa93d480bcb771",
        "target": {
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-9a41eefa",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "298723966409929826005720405417529385594",
                "313620225380516347128692913099594735820",
                "49496188417127062626406910672492589002",
                "264680119253414394797410579106507745552",
                "121537029995333715066171939138000968707",
                "257125948635163122332354203535425152827",
                "76333701090029089883293313834735538905",
                "23423450195933595731370959682879608379",
                "252091712943456681248893840164703096359",
                "307151265778118534349553193538300375567",
                "330458559974278054977068114372311284598",
                "29466083393465619911270384680177605312",
                "154650873234129283447879272041086209307",
                "243599634480560230625410696422978375336",
                "70764206741569335521746568247819382350",
                "262945053098794709280608017674906474794",
                "6318145436841849689365075722479285095",
                "122321030445883782002302858277981203206",
                "302026189738153637703775100356345678929",
                "148916582615095644552744973460194989499",
                "136650377578626782256970574570125300176",
                "333794959217794458555192344210770960150",
                "237415418400312938792970498399217778956",
                "14173654546641039927590793957412072423",
                "272823316245331399395346128483938739316",
                "22075025806925670504550984018475873716",
                "44254413429743061805307061945504300691",
                "54782213702051351156975601086060448422",
                "267256873816752358221556749574925207776"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3a745b51cddafade99aaea1b93aad31e9614e230",
        "target": {
            "function": "denali_pci_remove",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-a29c9f2b",
        "signature_type": "Function",
        "digest": {
            "function_hash": "41897166204156677369702378030417102166",
            "length": 150.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3830dbdfb9a4aec680e43ed80b9f23db7a88eac9",
        "target": {
            "function": "denali_pci_remove",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-b3388208",
        "signature_type": "Function",
        "digest": {
            "function_hash": "41897166204156677369702378030417102166",
            "length": 150.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c68daf4a368cd9e63ae5a2145c9e4a6f838c166",
        "target": {
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-cea8579e",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "298723966409929826005720405417529385594",
                "313620225380516347128692913099594735820",
                "49496188417127062626406910672492589002",
                "264680119253414394797410579106507745552",
                "121537029995333715066171939138000968707",
                "257125948635163122332354203535425152827",
                "76333701090029089883293313834735538905",
                "23423450195933595731370959682879608379",
                "252091712943456681248893840164703096359",
                "307151265778118534349553193538300375567",
                "330458559974278054977068114372311284598",
                "29466083393465619911270384680177605312",
                "154650873234129283447879272041086209307",
                "243599634480560230625410696422978375336",
                "70764206741569335521746568247819382350",
                "262945053098794709280608017674906474794",
                "6318145436841849689365075722479285095",
                "122321030445883782002302858277981203206",
                "302026189738153637703775100356345678929",
                "148916582615095644552744973460194989499",
                "136650377578626782256970574570125300176",
                "333794959217794458555192344210770960150",
                "237415418400312938792970498399217778956",
                "14173654546641039927590793957412072423",
                "272823316245331399395346128483938739316",
                "22075025806925670504550984018475873716",
                "44254413429743061805307061945504300691",
                "54782213702051351156975601086060448422",
                "267256873816752358221556749574925207776"
            ],
            "threshold": 0.9
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3830dbdfb9a4aec680e43ed80b9f23db7a88eac9",
        "target": {
            "function": "denali_pci_probe",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-e99afa53",
        "signature_type": "Function",
        "digest": {
            "function_hash": "6981675958717430046265120337120051205",
            "length": 2032.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87149cf9186201a63f0e0b93d9fa93d480bcb771",
        "target": {
            "function": "denali_pci_probe",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-ee88d538",
        "signature_type": "Function",
        "digest": {
            "function_hash": "6981675958717430046265120337120051205",
            "length": 2032.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@87149cf9186201a63f0e0b93d9fa93d480bcb771",
        "target": {
            "function": "denali_pci_remove",
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-f78b5aa3",
        "signature_type": "Function",
        "digest": {
            "function_hash": "41897166204156677369702378030417102166",
            "length": 150.0
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3a745b51cddafade99aaea1b93aad31e9614e230",
        "target": {
            "file": "drivers/mtd/nand/raw/denali_pci.c"
        },
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2022-49512-f929da93",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "298723966409929826005720405417529385594",
                "313620225380516347128692913099594735820",
                "49496188417127062626406910672492589002",
                "264680119253414394797410579106507745552",
                "121537029995333715066171939138000968707",
                "257125948635163122332354203535425152827",
                "76333701090029089883293313834735538905",
                "23423450195933595731370959682879608379",
                "252091712943456681248893840164703096359",
                "307151265778118534349553193538300375567",
                "330458559974278054977068114372311284598",
                "29466083393465619911270384680177605312",
                "154650873234129283447879272041086209307",
                "243599634480560230625410696422978375336",
                "70764206741569335521746568247819382350",
                "262945053098794709280608017674906474794",
                "6318145436841849689365075722479285095",
                "122321030445883782002302858277981203206",
                "302026189738153637703775100356345678929",
                "148916582615095644552744973460194989499",
                "136650377578626782256970574570125300176",
                "333794959217794458555192344210770960150",
                "237415418400312938792970498399217778956",
                "14173654546641039927590793957412072423",
                "272823316245331399395346128483938739316",
                "22075025806925670504550984018475873716",
                "44254413429743061805307061945504300691",
                "54782213702051351156975601086060448422",
                "267256873816752358221556749574925207776"
            ],
            "threshold": 0.9
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.17.0
Fixed
5.10.121
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.46
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.17.14
Type
ECOSYSTEM
Events
Introduced
5.18.0
Fixed
5.18.3