PCI: keystone: Fix NULL pointer dereference in case of DT error in ks_pcie_setup_rc_app_regs() (Linux Linux)

CVE-2024-43823
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: PCI: keystone: Fix NULL pointer dereference in case of DT error in ks_pcie_setup_rc_app_regs() If IORESOURCE_MEM is not provided in Device Tree due to any error, resource_list_first_type() will return NULL and pci_parse_request_of_pci_ranges() will just emit a warning. This will cause a NULL pointer dereference. Fix this bug by adding NULL return check. Found by Linux Verification Center (linuxtesting.org) with SVACE.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0f71c60ffd26943fa9646aa73ad7889ace116ce2 < bbba48ad67c53feea05936ea1e029dcca8057506 ; affected 0f71c60ffd26943fa9646aa73ad7889ace116ce2 < 0a6f1b5fe8ef8268aaa069035639968ceeea0a23 ; affected 0f71c60ffd26943fa9646aa73ad7889ace116ce2 < dbcdd1863ba2ec9b76ec131df25d797709e05597 ; affected 0f71c60ffd26943fa9646aa73ad7889ace116ce2 < a231707a91f323af1e5d9f1722055ec2fc1c7775
Linux · Linuxaffected 5.10 ; unaffected 0 < 5.10 ; unaffected 6.1.103 ≤ 6.1.* ; unaffected 6.6.44 ≤ 6.6.* ; unaffected 6.10.3 ≤ 6.10.* ; unaffected 6.11 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD