CVE-2021-47503

Source
https://cve.org/CVERecord?id=CVE-2021-47503
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47503.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-47503
Downstream
Related
Published
2024-05-24T15:15:10.567Z
Modified
2026-03-13T05:16:32.726209Z
Severity
  • 6.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

scsi: pm80xx: Do not call scsiremovehost() in pm8001_alloc()

Calling scsiremovehost() before scsiaddhost() results in a crash:

BUG: kernel NULL pointer dereference, address: 0000000000000108 RIP: 0010:devicedel+0x63/0x440 Call Trace: deviceunregister+0x17/0x60 scsiremovehost+0xee/0x2a0 pm8001pciprobe+0x6ef/0x1b90 [pm80xx] localpciprobe+0x3f/0x90

We cannot call scsiremovehost() in pm8001alloc() because scsiadd_host() has not been called yet at that point in time.

Function call tree:

pm8001pciprobe() | - pm8001_pci_alloc() | | |- pm8001alloc() | | | - scsi_remove_host() | - scsiadd_host()

References

Affected packages

Git /

Affected ranges

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47503.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "5.10"
            },
            {
                "fixed": "5.10.85"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.11"
            },
            {
                "fixed": "5.15.8"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.16-rc1"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.16-rc2"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.16-rc3"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.16-rc4"
            }
        ]
    }
]