CVE-2021-47005: PCI: endpoint: Fix NULL pointer dereference for ->get_features()
In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: Fix NULL pointer dereference for ->get_features()
get_features ops of pci_epc_ops may return NULL, causing NULL pointer
dereference in pci_epf_test_alloc_space function. Let us add a check for
pci_epc_feature pointer in pci_epf_test_bind before we access it to avoid
any such NULL pointer dereference and return -ENOTSUPP in case
pci_epc_feature is not found.
When the patch is not applied and EPC features is not implemented in the
platform driver, we see the following dump due to kernel NULL pointer
dereference.
Call trace:
pci_epf_test_bind+0xf4/0x388
pci_epf_bind+0x3c/0x80
pci_epc_epf_link+0xa8/0xcc
configfs_symlink+0x1a4/0x48c
vfs_symlink+0x104/0x184
do_symlinkat+0x80/0xd4
__arm64_sys_symlinkat+0x1c/0x24
el0_svc_common.constprop.3+0xb8/0x170
el0_svc_handler+0x70/0x88
el0_svc+0x8/0x640
Code: d2800581 b9403ab9 f9404ebb 8b394f60 (f9400400)
---[ end trace a438e3c5a24f9df0 ]---
Security readout for executives and security teams
Plain-English summary
This Linux kernel issue can crash a system in a specific PCI endpoint test path when the platform driver does not provide expected endpoint feature data. The source describes a NULL pointer dereference, not data theft or remote code execution. Business urgency depends on whether the kernel and PCI endpoint functionality are present in deployed devices.
Executive priority
Prioritize for embedded or hardware-facing Linux fleets where PCI endpoint functionality is used. For ordinary workloads without this feature, handle through normal kernel patch management unless vendor guidance raises urgency.
Technical view
CVE-2021-47005 fixes a NULL pointer dereference in the Linux PCI endpoint framework. pci_epc_ops->get_features() may return NULL, and pci_epf_test_bind accessed that pointer before checking it. The fix adds a NULL check and returns -ENOTSUPP when endpoint controller features are unavailable.
Likely exposure
Likely limited to Linux systems using PCI endpoint controller functionality and the endpoint test function, especially embedded, ARM64, or hardware-validation environments. General-purpose servers without PCI endpoint mode are less likely to be exposed based on the provided evidence.
Exploitation context
The bundle provides a kernel call trace triggered through configfs symlink handling, but no KEV listing, public exploitation claim, CVSS score, or proof of malicious exploitation. Treat active exploitation as unconfirmed.
Researcher notes
Evidence supports a reliability-impact kernel NULL dereference in a narrow PCI endpoint code path. The provided data does not establish privilege requirements, attacker reachability, CVSS impact, or exploitation in the wild. Validate exposure against actual kernel config, platform driver behavior, and backported patches.
Mitigation direction
Identify kernels matching the affected Linux version ranges in the CVE bundle.
Apply vendor or distribution kernel updates containing the linked stable fixes.
If patching is delayed, restrict access to PCI endpoint configuration interfaces.
Check vendor guidance for platform-specific mitigation or backport status.
Validation and detection
Confirm whether deployed kernels include the referenced stable commits or vendor backports.
Inventory systems that enable PCI endpoint controller and endpoint test functionality.
Review kernel logs for NULL pointer dereference traces involving pci_epf_test_bind.
Verify configfs access is limited to trusted administrators.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47005 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.