Lucene search

K
cvelistLinuxCVELIST:CVE-2024-43823
HistoryAug 17, 2024 - 9:21 a.m.

CVE-2024-43823 PCI: keystone: Fix NULL pointer dereference in case of DT error in ks_pcie_setup_rc_app_regs()

2024-08-1709:21:43
Linux
www.cve.org
1
linux kernel
pci
keystone
null pointer
vulnerability
fix
device tree
bug
linux verification center
svace

EPSS

0

Percentile

5.1%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/pci/controller/dwc/pci-keystone.c"
    ],
    "versions": [
      {
        "version": "0f71c60ffd26",
        "lessThan": "bbba48ad67c5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0f71c60ffd26",
        "lessThan": "0a6f1b5fe8ef",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0f71c60ffd26",
        "lessThan": "dbcdd1863ba2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0f71c60ffd26",
        "lessThan": "a231707a91f3",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/pci/controller/dwc/pci-keystone.c"
    ],
    "versions": [
      {
        "version": "5.10",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.10",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.103",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.44",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10.3",
        "lessThanOrEqual": "6.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.11",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.1%