In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: Clean up error handling in vpciscanbus()
Smatch complains about inconsistent NULL checking in vpciscanbus():
drivers/pci/endpoint/functions/pci-epf-vntb.c:1024 vpci_scan_bus() error: we previously assumed 'vpci_bus' could be null (see line 1021)
Instead of printing an error message and then crashing we should return an error code and clean up.
Also the NULL check is reversed so it prints an error for success instead of failure.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9e8695246bcfc028341470cbf92630cdc1ba36b",
"id": "CVE-2024-43875-08659145",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e27e2e8697b8ce96cdef43f135426525d9d1f8f",
"id": "CVE-2024-43875-10b67239",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "249018003213958949861045263786473495803",
"length": 215.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d368de78b60088ec9031c60c88976c0063ea4c0",
"id": "CVE-2024-43875-250dea90",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "249018003213958949861045263786473495803",
"length": 215.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e0f5a96c534f781e8c57ca30459448b3bfe5429",
"id": "CVE-2024-43875-414e880c",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24414c842a24d0fd498f9db6d2a762a8dddf1832",
"id": "CVE-2024-43875-4e3cbe23",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e0f5a96c534f781e8c57ca30459448b3bfe5429",
"id": "CVE-2024-43875-532ea8a4",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "132127492166930659435875729615109217137",
"length": 992.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d368de78b60088ec9031c60c88976c0063ea4c0",
"id": "CVE-2024-43875-73d40b14",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9e8695246bcfc028341470cbf92630cdc1ba36b",
"id": "CVE-2024-43875-7ae75b79",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "249018003213958949861045263786473495803",
"length": 215.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d368de78b60088ec9031c60c88976c0063ea4c0",
"id": "CVE-2024-43875-97177f37",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "132127492166930659435875729615109217137",
"length": 992.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24414c842a24d0fd498f9db6d2a762a8dddf1832",
"id": "CVE-2024-43875-9940f1ef",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "222653102413129218989504500696547624658",
"length": 980.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e0f5a96c534f781e8c57ca30459448b3bfe5429",
"id": "CVE-2024-43875-b9345231",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "249018003213958949861045263786473495803",
"length": 215.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e27e2e8697b8ce96cdef43f135426525d9d1f8f",
"id": "CVE-2024-43875-bd542a7a",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "132127492166930659435875729615109217137",
"length": 992.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9e8695246bcfc028341470cbf92630cdc1ba36b",
"id": "CVE-2024-43875-bed98468",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "132127492166930659435875729615109217137",
"length": 992.0
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e27e2e8697b8ce96cdef43f135426525d9d1f8f",
"id": "CVE-2024-43875-dcf01165",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24414c842a24d0fd498f9db6d2a762a8dddf1832",
"id": "CVE-2024-43875-e37bb223",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"digest": {
"function_hash": "249018003213958949861045263786473495803",
"length": 215.0
}
}
]