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",
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-43875-08659145"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d368de78b60088ec9031c60c88976c0063ea4c0",
"digest": {
"length": 215.0,
"function_hash": "249018003213958949861045263786473495803"
},
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-43875-250dea90"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24414c842a24d0fd498f9db6d2a762a8dddf1832",
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-43875-4e3cbe23"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d368de78b60088ec9031c60c88976c0063ea4c0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"93534532156986339695710926267236209050",
"298622789433522490986405883320756690482",
"62595009716046382129006118771022151899",
"776332320914738848949257257737936398",
"88043166293547181646090046012904659478",
"252252471066546426463275695120234053582",
"169525203907983231880173388025030764261",
"6934770759059490262667949733524972525",
"191748890398190513262965557047725011976",
"219926289686593672798412214244593280992"
]
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"id": "CVE-2024-43875-73d40b14"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9e8695246bcfc028341470cbf92630cdc1ba36b",
"digest": {
"length": 215.0,
"function_hash": "249018003213958949861045263786473495803"
},
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-43875-7ae75b79"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d368de78b60088ec9031c60c88976c0063ea4c0",
"digest": {
"length": 992.0,
"function_hash": "132127492166930659435875729615109217137"
},
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-43875-97177f37"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24414c842a24d0fd498f9db6d2a762a8dddf1832",
"digest": {
"length": 980.0,
"function_hash": "222653102413129218989504500696547624658"
},
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-43875-9940f1ef"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9e8695246bcfc028341470cbf92630cdc1ba36b",
"digest": {
"length": 992.0,
"function_hash": "132127492166930659435875729615109217137"
},
"target": {
"function": "epf_ntb_bind",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-43875-bed98468"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@24414c842a24d0fd498f9db6d2a762a8dddf1832",
"digest": {
"length": 215.0,
"function_hash": "249018003213958949861045263786473495803"
},
"target": {
"function": "vpci_scan_bus",
"file": "drivers/pci/endpoint/functions/pci-epf-vntb.c"
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"id": "CVE-2024-43875-e37bb223"
}
]