Skip to content
Heist/ feed
Unrated

PCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init() Instead of getting the epc_features from pci_epc_get_features() API, use the cached pci_epf_test::epc_features value to avoid the NULL check. Since the NULL check is already performed in pci_epf_test_bind(), having one more check in pci_epf_test_core_init() is redundant and it is not possible to hit the NULL pointer dereference. Also with commit a01e7214bef9 ("PCI: endpoint: Remove "core_init_notifier" flag"), 'epc_features' got dereferenced without the NULL check, leading to the following false positive Smatch warning: 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) Thus, remove the redundant NULL check and also use the epc_features:: {msix_capable/msi_capable} flags directly to avoid local variables. [kwilczynski: commit log]

Announced Group revision 1
Original source ↗

CVE-2024-43824

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-43824

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5e50ee27d4a52a817ab152128c48690ec7c5cdf1",
        "lessThan": "97cee643a825808711cc78475fd61a30824b7a0f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5e50ee27d4a52a817ab152128c48690ec7c5cdf1",
        "lessThan": "af4ad016abb1632ff7ee598a6037952b495e5b80",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "5e50ee27d4a52a817ab152128c48690ec7c5cdf1",
        "lessThan": "5a5095a8bd1bd349cce1c879e5e44407a34dda8a",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/pci/endpoint/functions/pci-epf-test.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.7",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.10.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.10.*"
      },
      {
        "status": "unaffected",
        "version": "6.11",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/pci/endpoint/functions/pci-epf-test.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-43824

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#45897 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement