{"id":"CVE-2024-43824","revision":"9545b06a5ba048d0b7c4e1836b431b95","records":[{"revision":"9545b06a5ba048d0b7c4e1836b431b95","observedAt":"2026-10-30T13:45:33.454+00:00","statement":{"source":"cve-program","id":"CVE-2024-43824","aliases":[],"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]","state":0,"publishedAt":"2024-08-17T09:21:44.483+00:00","modifiedAt":"2026-10-30T12:19:03.404+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/pci/endpoint/functions/pci-epf-test.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5e50ee27d4a52a817ab152128c48690ec7c5cdf1\",\n                            \"lessThan\": \"5c71be3476088ab490d48a468b54d791f91241b8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5e50ee27d4a52a817ab152128c48690ec7c5cdf1\",\n                            \"lessThan\": \"97cee643a825808711cc78475fd61a30824b7a0f\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5e50ee27d4a52a817ab152128c48690ec7c5cdf1\",\n                            \"lessThan\": \"af4ad016abb1632ff7ee598a6037952b495e5b80\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"5e50ee27d4a52a817ab152128c48690ec7c5cdf1\",\n                            \"lessThan\": \"5a5095a8bd1bd349cce1c879e5e44407a34dda8a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/pci/endpoint/functions/pci-epf-test.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.7\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.191\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.160\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.10.3\",\n                            \"lessThanOrEqual\": \"6.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.11\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"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"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-43824","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-43824","identifiers":["CVE-2024-43824"]},"retained":false,"historicalAffected":[]}],"coverage":[]}