{"id":"CVE-2024-43824","state":"PUBLISHED","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_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]","publishedAt":"2024-08-17T09:21:44.483Z","updatedAt":"2026-10-30T12:19:03.404Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"5c71be3476088ab490d48a468b54d791f91241b8","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"97cee643a825808711cc78475fd61a30824b7a0f","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"af4ad016abb1632ff7ee598a6037952b495e5b80","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"5a5095a8bd1bd349cce1c879e5e44407a34dda8a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-test.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-test.c"]}],"references":["https://git.kernel.org/stable/c/5c71be3476088ab490d48a468b54d791f91241b8","https://git.kernel.org/stable/c/97cee643a825808711cc78475fd61a30824b7a0f","https://git.kernel.org/stable/c/af4ad016abb1632ff7ee598a6037952b495e5b80","https://git.kernel.org/stable/c/5a5095a8bd1bd349cce1c879e5e44407a34dda8a"],"weaknesses":[],"ingestedAt":"2026-10-30T12:36:04.432Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/43xxx/CVE-2024-43824.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-43824","state":"PUBLISHED","datePublished":"2024-08-17T09:21:44.483Z","dateUpdated":"2026-10-30T12:19:03.404Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-17T09:11:59.272Z"},"containers":{"cna":{"title":"PCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init()","descriptions":[{"lang":"en","value":"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]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"5c71be3476088ab490d48a468b54d791f91241b8","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"97cee643a825808711cc78475fd61a30824b7a0f","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"af4ad016abb1632ff7ee598a6037952b495e5b80","versionType":"git"},{"version":"5e50ee27d4a52a817ab152128c48690ec7c5cdf1","status":"affected","lessThan":"5a5095a8bd1bd349cce1c879e5e44407a34dda8a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-test.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-test.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5c71be3476088ab490d48a468b54d791f91241b8"},{"url":"https://git.kernel.org/stable/c/97cee643a825808711cc78475fd61a30824b7a0f"},{"url":"https://git.kernel.org/stable/c/af4ad016abb1632ff7ee598a6037952b495e5b80"},{"url":"https://git.kernel.org/stable/c/5a5095a8bd1bd349cce1c879e5e44407a34dda8a"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:19:03.404Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.10.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-43824","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:08:51.186456Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:33:24.560Z"}}]}}}