CVE-2023-53118

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53118
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53118.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53118
Downstream
Related
Published
2025-05-02T15:55:56Z
Modified
2025-10-15T06:50:57.518412Z
Summary
scsi: core: Fix a procfs host directory removal regression
Details

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

scsi: core: Fix a procfs host directory removal regression

scsiprochostdirrm() decreases a reference counter and hence must only be called once per host that is removed. This change does not require a scsiaddhostwithdma() change since scsiaddhostwithdma() will return 0 (success) if scsiprochostadd() is called.

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
891a3cba425cf483d96facca55aebd6ff1da4338
Fixed
88c3d3bb6469cea929ac68fd326bdcbefcdfdd83
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6b223e32d66ca9db1f252f433514783d8b22a8e1
Fixed
68c665bb185037e7eb66fb792c61da9d7151e99c
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
e471e928de97b00f297ad1015cc14f9459765713
Fixed
2a764d55e938743efa7c2cba7305633bcf227f09
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
17e98a5ede81b7696bec421f7afa2dfe467f5e6b
Fixed
7e0ae8667fcdd99d1756922e1140cac75f5fa279
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1ec363599f8346d5a8d08c71a0d9860d6c420ec0
Fixed
73f030d4ef6d1ad17f824a0a2eb637ef7a9c7d51
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fc663711b94468f4e1427ebe289c9f05669699c9
Fixed
be03df3d4bfe7e8866d4aa43d62e648ffe884f5f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
13daafe1e209b03e9bda16ff2bd2b2da145a139b

Affected versions

v4.*

v4.19.278
v4.19.279
v4.19.280
v4.19.281
v4.19.282
v4.19.283
v4.19.284
v4.19.285
v4.19.286
v4.19.287
v4.19.288
v4.19.289
v4.19.290
v4.19.291
v4.19.292
v4.19.293
v4.19.294
v4.19.295
v4.19.296
v4.19.297
v4.19.298
v4.19.299
v4.19.300
v4.19.301
v4.19.302
v4.19.303
v4.19.304
v4.19.305
v4.19.306
v4.19.307
v4.19.308
v4.19.309
v4.19.310
v4.19.311
v4.19.312
v4.19.313
v4.19.314
v4.19.315
v4.19.316
v4.19.317
v4.19.318
v4.19.319
v4.19.320
v4.19.321
v4.19.322
v4.19.323
v4.19.324
v4.19.325

v5.*

v5.10.175
v5.15.103
v5.4.237

v6.*

v6.1.20
v6.2
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.2.7
v6.3-rc1

Database specific

{
    "vanir_signatures": [
        {
            "signature_version": "v1",
            "target": {
                "function": "scsi_host_dev_release",
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a764d55e938743efa7c2cba7305633bcf227f09",
            "deprecated": false,
            "digest": {
                "length": 617.0,
                "function_hash": "155537044022047826320720390234281937104"
            },
            "id": "CVE-2023-53118-2e3984d5"
        },
        {
            "signature_version": "v1",
            "target": {
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Line",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@73f030d4ef6d1ad17f824a0a2eb637ef7a9c7d51",
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "142008957320214615395788529129557706143",
                    "126384955495000840497874751003620337359",
                    "264048455571963537622865175278966257201",
                    "178288187705551364459830909943432852676"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2023-53118-4675e5dc"
        },
        {
            "signature_version": "v1",
            "target": {
                "function": "scsi_host_dev_release",
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be03df3d4bfe7e8866d4aa43d62e648ffe884f5f",
            "deprecated": false,
            "digest": {
                "length": 569.0,
                "function_hash": "239879769239441650155824884303565270871"
            },
            "id": "CVE-2023-53118-48807dcb"
        },
        {
            "signature_version": "v1",
            "target": {
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Line",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2a764d55e938743efa7c2cba7305633bcf227f09",
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "142008957320214615395788529129557706143",
                    "126384955495000840497874751003620337359",
                    "264048455571963537622865175278966257201",
                    "178288187705551364459830909943432852676"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2023-53118-4eca0e18"
        },
        {
            "signature_version": "v1",
            "target": {
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Line",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@be03df3d4bfe7e8866d4aa43d62e648ffe884f5f",
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "142008957320214615395788529129557706143",
                    "126384955495000840497874751003620337359",
                    "264048455571963537622865175278966257201",
                    "178288187705551364459830909943432852676"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2023-53118-5ccea76d"
        },
        {
            "signature_version": "v1",
            "target": {
                "function": "scsi_host_dev_release",
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68c665bb185037e7eb66fb792c61da9d7151e99c",
            "deprecated": false,
            "digest": {
                "length": 617.0,
                "function_hash": "155537044022047826320720390234281937104"
            },
            "id": "CVE-2023-53118-60aff1fa"
        },
        {
            "signature_version": "v1",
            "target": {
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Line",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68c665bb185037e7eb66fb792c61da9d7151e99c",
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "142008957320214615395788529129557706143",
                    "126384955495000840497874751003620337359",
                    "264048455571963537622865175278966257201",
                    "178288187705551364459830909943432852676"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2023-53118-73d9b66c"
        },
        {
            "signature_version": "v1",
            "target": {
                "function": "scsi_host_dev_release",
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88c3d3bb6469cea929ac68fd326bdcbefcdfdd83",
            "deprecated": false,
            "digest": {
                "length": 617.0,
                "function_hash": "155537044022047826320720390234281937104"
            },
            "id": "CVE-2023-53118-8cd1ca3f"
        },
        {
            "signature_version": "v1",
            "target": {
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Line",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@88c3d3bb6469cea929ac68fd326bdcbefcdfdd83",
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "142008957320214615395788529129557706143",
                    "126384955495000840497874751003620337359",
                    "264048455571963537622865175278966257201",
                    "178288187705551364459830909943432852676"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2023-53118-bcd380b1"
        },
        {
            "signature_version": "v1",
            "target": {
                "function": "scsi_host_dev_release",
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e0ae8667fcdd99d1756922e1140cac75f5fa279",
            "deprecated": false,
            "digest": {
                "length": 569.0,
                "function_hash": "239879769239441650155824884303565270871"
            },
            "id": "CVE-2023-53118-e2a6269f"
        },
        {
            "signature_version": "v1",
            "target": {
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Line",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e0ae8667fcdd99d1756922e1140cac75f5fa279",
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "142008957320214615395788529129557706143",
                    "126384955495000840497874751003620337359",
                    "264048455571963537622865175278966257201",
                    "178288187705551364459830909943432852676"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2023-53118-ee5659ef"
        },
        {
            "signature_version": "v1",
            "target": {
                "function": "scsi_host_dev_release",
                "file": "drivers/scsi/hosts.c"
            },
            "signature_type": "Function",
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@73f030d4ef6d1ad17f824a0a2eb637ef7a9c7d51",
            "deprecated": false,
            "digest": {
                "length": 569.0,
                "function_hash": "239879769239441650155824884303565270871"
            },
            "id": "CVE-2023-53118-fb1eea66"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.4.237
Fixed
5.4.238
Type
ECOSYSTEM
Events
Introduced
5.10.175
Fixed
5.10.176
Type
ECOSYSTEM
Events
Introduced
5.15.103
Fixed
5.15.104
Type
ECOSYSTEM
Events
Introduced
6.1.20
Fixed
6.1.21
Type
ECOSYSTEM
Events
Introduced
6.2.7
Fixed
6.2.8