CVE-2024-43823 PCI: keystone: Fix NULL pointer dereference in case of DT error in ks_pcie_setup_rc_app_regs()
A NULL pointer dereference in the Linux kernel PCI Keystone driver can cause a system crash if Device Tree resources are missing.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-43823?
CVE-2024-43823 is a medium-severity vulnerability in Linux kernel, published on 17 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2024-43823?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-43823?
Apply the vendor's patch.
Is CVE-2024-43823 being exploited?
There is no known exploitation of CVE-2024-43823 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-48492, BELL-CVE-2024-43823, DEBIAN-CVE-2024-43823, GHSA-g223-xxpm-2vv4, ROOT-OS-DEBIAN-11-CVE-2024-43823, ROOT-OS-UBUNTU-2204-CVE-2024-43823 and 1 more.