CVE-2021-47005: PCI: endpoint: Fix NULL pointer dereference for ->get_features()
Vulnerability summary
CVE-2021-47005 is a medium (CVSS 5.5) NULL Pointer Dereference vulnerability in linux. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.6% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 28-02-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
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 ]---
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.24% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu6 products
- linux-aws-fipsAll versions (No fix recorded)
- linux-azure-fipsAll versions (No fix recorded)
- linux-gcp-fipsAll versions (No fix recorded)
- linux-intel-iot-realtimeAll versions (No fix recorded)
- linux-raspi-realtimeAll versions (No fix recorded)
Linux2 products
- linux≥ 2c04c5b8eef797dca99699cfb55ff42dd3c12c23, < bbed83d7060e07a5d309104d25a00f0a24441428 | ≥ 2c04c5b8eef797dca99699cfb55ff42dd3c12c23, < 679ebad058b8168f10e63876d63b0877fd2fe784 | ≥ 2c04c5b8eef797dca99699cfb55ff42dd3c12c23, < 0169d4f0bee44fdfef908c13ed21fcb326c38695 | ≥ 2c04c5b8eef797dca99699cfb55ff42dd3c12c23, < 6613bc2301ba291a1c5a90e1dc24cf3edf223c03 | 5.1
- linux_kernel≥ 5.1, < 5.10.38 | ≥ 5.11, < 5.11.22 | ≥ 5.12, < 5.12.5
Debian1 product
- linux< 5.10.38-1
3 vendors · 9 products