In the Linux kernel, the following vulnerability has been resolved:
PCI: endpoint: epf-mhi: Avoid NULL dereference if DT lacks 'mmio'
If platformgetresource_byname() fails and returns NULL because DT lacks an 'mmio' property for the MHI endpoint, dereferencing res->start will cause a NULL pointer access. Add a check to prevent it.
[kwilczynski: error message update per the review feedback] [bhelgaas: commit log]
[
{
"id": "CVE-2024-56689-1fcd8720",
"signature_type": "Line",
"digest": {
"line_hashes": [
"299198887138923488407206447190778831302",
"110640242628536114160746859707790948021",
"265709594839489118573590216921015536206",
"105982683329557431360703620394312430272",
"199782738412559860484755869858705409603",
"13162107021394831061621989204033341971",
"276662585344220263293259555737888736743",
"272580401321312276625436826528746374440"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef"
},
{
"id": "CVE-2024-56689-27f81361",
"signature_type": "Line",
"digest": {
"line_hashes": [
"299198887138923488407206447190778831302",
"110640242628536114160746859707790948021",
"265709594839489118573590216921015536206",
"105982683329557431360703620394312430272",
"199782738412559860484755869858705409603",
"13162107021394831061621989204033341971",
"276662585344220263293259555737888736743",
"272580401321312276625436826528746374440"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5089b3d874e9933d9842e90410d3af1520494757"
},
{
"id": "CVE-2024-56689-4a46f28b",
"signature_type": "Line",
"digest": {
"line_hashes": [
"299198887138923488407206447190778831302",
"110640242628536114160746859707790948021",
"265709594839489118573590216921015536206",
"105982683329557431360703620394312430272",
"199782738412559860484755869858705409603",
"13162107021394831061621989204033341971",
"276662585344220263293259555737888736743",
"272580401321312276625436826528746374440"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@242ee2b0ad9b23f47084904fce3f9f228068a1f9"
},
{
"id": "CVE-2024-56689-4f3b899f",
"signature_type": "Function",
"digest": {
"length": 536.0,
"function_hash": "180787737399564119593518048529820702374"
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c",
"function": "pci_epf_mhi_bind"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5089b3d874e9933d9842e90410d3af1520494757"
},
{
"id": "CVE-2024-56689-6b5a8785",
"signature_type": "Line",
"digest": {
"line_hashes": [
"299198887138923488407206447190778831302",
"110640242628536114160746859707790948021",
"265709594839489118573590216921015536206",
"105982683329557431360703620394312430272",
"199782738412559860484755869858705409603",
"13162107021394831061621989204033341971",
"276662585344220263293259555737888736743",
"272580401321312276625436826528746374440"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e6d92e3b973de78eb7015154cf1197af9fac5c9"
},
{
"id": "CVE-2024-56689-85c42398",
"signature_type": "Function",
"digest": {
"length": 536.0,
"function_hash": "180787737399564119593518048529820702374"
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c",
"function": "pci_epf_mhi_bind"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c8b9d6b7d62a444e0bca5b9ae28f9f2b0f52feef"
},
{
"id": "CVE-2024-56689-ce3563ee",
"signature_type": "Function",
"digest": {
"length": 536.0,
"function_hash": "180787737399564119593518048529820702374"
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c",
"function": "pci_epf_mhi_bind"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0e6d92e3b973de78eb7015154cf1197af9fac5c9"
},
{
"id": "CVE-2024-56689-e51420f5",
"signature_type": "Function",
"digest": {
"length": 536.0,
"function_hash": "180787737399564119593518048529820702374"
},
"target": {
"file": "drivers/pci/endpoint/functions/pci-epf-mhi.c",
"function": "pci_epf_mhi_bind"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@242ee2b0ad9b23f47084904fce3f9f228068a1f9"
}
]