{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-43824","id":"CVE-2024-43824","title":"PCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init()\n\nInstead of getting the epc_features from pci_epc_get_features() API, use\nthe cached pci_epf_test::epc_features value to avoid the NULL check. Since\nthe NULL check is already performed in pci_epf_test_bind(), having one more\ncheck in pci_ep","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init()\n\nInstead of getting the epc_features from pci_epc_get_features() API, use\nthe cached pci_epf_test::epc_features value to avoid the NULL check. Since\nthe NULL check is already performed in pci_epf_test_bind(), having one more\ncheck in pci_epf_test_core_init() is redundant and it is not possible to\nhit the NULL pointer dereference.\n\nAlso with commit a01e7214bef9 (\"PCI: endpoint: Remove \"core_init_notifier\"\nflag\"), 'epc_features' got dereferenced without the NULL check, leading to\nthe following false positive Smatch warning:\n\n  drivers/pci/endpoint/functions/pci-epf-test.c:784 pci_epf_test_core_init() error: we previously assumed 'epc_features' could be null (see line 747)\n\nThus, remove the redundant NULL check and also use the epc_features::\n{msix_capable/msi_capable} flags directly to avoid local variables.\n\n[kwilczynski: commit log]","published":"2024-08-17T09:21:44.483Z","updated":"2026-11-01T02:30:17.706462625Z","reserved":"2024-08-17T09:11:59.272Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","lessThan":"5c71be3476088ab490d48a468b54d791f91241b8","status":"affected","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","lessThan":"97cee643a825808711cc78475fd61a30824b7a0f","status":"affected","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","lessThan":"af4ad016abb1632ff7ee598a6037952b495e5b80","status":"affected","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","lessThan":"5a5095a8bd1bd349cce1c879e5e44407a34dda8a","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.10.3","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/5c71be3476088ab490d48a468b54d791f91241b8","tags":["web"]},{"url":"https://git.kernel.org/stable/c/97cee643a825808711cc78475fd61a30824b7a0f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/af4ad016abb1632ff7ee598a6037952b495e5b80","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5a5095a8bd1bd349cce1c879e5e44407a34dda8a","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43824.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43824","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0027,"epssPercentile":0.19554,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-43824","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43824","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-43824","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-43824","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}